Changes between Version 2 and Version 3 of Features/RightClick
- Timestamp:
- 03/25/11 14:01:35 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Features/RightClick
v2 v3 8 8 == Menu Items == 9 9 10 '' Undo'' and ''Redo'' are always listed but they might be grayed out. They are the same as in '''Edit -> Undo and Redo'''10 '''Undo''' and '''Redo''' are always listed but they might be grayed out. They are the same as in ''Edit -> Undo and Redo'' 11 11 12 '' Open Selection'' is show if there is a selection12 '''Open Selection''' is show if there is a selection 13 13 14 '' Open File in Browser'' will open the File Explorer of Windows or Nautilus on Ubuntu at the directory where the current file can be found14 '''Open File in Browser''' will open the File Explorer of Windows or Nautilus on Ubuntu at the directory where the current file can be found 15 15 16 '' Find in Files'' will open that menu in '''Search -> Find in Files...'''16 '''Find in Files''' will open that menu in ''Search -> Find in Files...'' 17 17 18 '' Copy'' and ''Cut'', ''Paste'', 'Select All'' the standard menu options18 '''Copy''' and '''Cut''', '''Paste''', '''Select All''' the standard menu options 19 19 20 '''Toggle Comment''', '''Comment''' and '''Uncomment''' can comment out one or more lines at a time 20 21 22 If the ''Show Code Folding'' is enabled and the mouse is over the folding margin on the left then 23 you can see another two menu options to '''Fold All''' and '''Unfold All'''. 24 25 In addition each document type can add its own menu items by implementing the ''event_on_right_down'' method. 26 For example the Perl document class [http://padre.perlide.org/trac/browser/trunk/Padre/lib/Padre/Document/Perl.pm Padre::Document::Perl] adds 27 '''Find Variable''', '''Rename Variable''' and the whole '''Change Variable stye''' submenu if the mouse is over a variable name. 28 '''Find Method Declaration''' if the mouse is over a subroutine or method name. 29 If something is selected then it will also show '''Introduce Temporary Variable''' and '''Edit with Regex Editor'''. 30 31 Finally the plugins can also add extra menu options. (See on_context_menu of the Plugin Manager) 32 33 == Test == 21 34 22 35 == Implementation == … … 29 42 * Allow plug-ins to add items 30 43 * Allow the user to configure what's in the right-click menu 31 44 * The Perl document should be able to recognize when the mouse is in a regex and show the '''Edit with Regex Editor''' only if it is and be able to paste the new regex back to the same location.
