This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Add support for 'transpose' action to NetBeans editor | ||
---|---|---|---|
Product: | editor | Reporter: | tomwheeler <tomwheeler> |
Component: | Actions/Menu/Toolbar | Assignee: | Miloslav Metelka <mmetelka> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
tomwheeler
2009-11-09 17:57:12 UTC
What about using the spellchecker module? Transposing letters is nice, but you have to know that the spelling is wrong in the first place. No, I don't think the spellchecker module could do what I request. It's mainly for mistakes in human language, whereas mine can fix mistakes in human or programming language. To be clear, let me give an example. If you type this: ArrayList x = new ArryaList(); You could put the cursor between the 'y' and the 'a' in the class name and press Ctrl+T. That would flip the position of those two letters and correct the class name. Since transposition is a common mistake (for me, anyway) it would be handy to have this feature in NetBeans, just like it already exists in emacs and bash. Ok, I understand, so I'll make a new action: Name: "transpose-letters" Localized name: "Transpose Letters" Shortcut: Ctrl+T I'll attempt to finish it within 7.1 timeframe, it should be easy. Oops. Although it's already past feature freeze, I've added it into 7.1. http://hg.netbeans.org/jet-main/rev/b713954c7149 Integrated into 'main-golden', will be available in build *201109040600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b713954c7149 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #176314 - Add support for 'transpose' action to NetBeans editor. Perfect -- I just verified that this feature works exactly as I'd intended using a nightly build: Product Version: NetBeans IDE Dev (Build 201109040600) Java: 1.6.0_25; Java HotSpot(TM) Client VM 20.0-b11 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Thank you for implementing it! |