Changes between Version 2 and Version 3 of Features/RightClick


Ignore:
Timestamp:
Mar 25, 2011, 2:01:35 PM (4 years ago)
Author:
szabgab
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Features/RightClick

    v2 v3  
    88== Menu Items == 
    99 
    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'' 
    1111 
    12 ''Open Selection'' is show if there is a selection 
     12'''Open Selection''' is show if there is a selection 
    1313 
    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 found 
     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 found 
    1515 
    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...'' 
    1717 
    18 ''Copy'' and ''Cut'', ''Paste'', 'Select All'' the standard menu options 
     18'''Copy''' and '''Cut''', '''Paste''', '''Select All''' the standard menu options 
    1919 
     20'''Toggle Comment''', '''Comment''' and '''Uncomment''' can comment out one or more lines at a time 
    2021 
     22If the ''Show Code Folding'' is enabled and the mouse is over the folding margin on the left then 
     23you can see another two menu options to '''Fold All''' and '''Unfold All'''. 
     24 
     25In addition each document type can add its own menu items by implementing the ''event_on_right_down'' method. 
     26For 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. 
     29If something is selected then it will also show '''Introduce Temporary Variable''' and '''Edit with Regex Editor'''. 
     30 
     31Finally the plugins can also add extra menu options. (See on_context_menu of the Plugin Manager) 
     32 
     33== Test == 
    2134 
    2235== Implementation == 
     
    2942* Allow plug-ins to add items 
    3043* 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.