FindCutPasteHotKeys
From Niki
I've been using NEdit for years with a SUN keyboard which has a number of high usage hot keys on the left side of the keyboard. I find myself migrating more and more to other platforms that require going through a dialog box to find a string that I have already selected. Also, hitting control keys for all the copying and pasting is a real drag.
These hot keys address this by giving me one touch Find, Cut, Paste, Undo, and Redo without removing my right hand from the mouse.
F1 - Paste
F2 - Copy
F3 - Find next occurrence of highlighted text (no dialog)
F5 - Undo
F6 - Redo
Import this macro menu definitions into NEdit.
! Load this file by starting nedit with:
!
! nedit -import <the name of this file>
!
! Then, check that the menu definitions were loaded correctly, and choose
! Save Defaults from the Preferences menu. The new menu definitions will
! now be incorporated into your own preferences file, so the next time you
! start NEdit, you will no longer need to use -import.
!
! These comments will not appear in your nedit.rc file
!
nedit.macroCommands: \
HotKeys>paste:F1::: {\n\
paste_clipboard()\n\
}\n\
HotKeys>copy:F2::: {\n\
copy_clipboard()\n\
}\n\
HotKeys>New Find Selection:F3::: {\n\
if ($selection_start == -1)\n\
find_again()\n\
else\n\
find_selection()\n\
}\n\
HotKeys>New Find Selection (backward):Shift+F3::: {\n\
if ($selection_start == -1)\n\
find_again("backward")\n\
else\n\
find_selection("backward")\n\
}\n\
HotKeys>undo:F5::: {\n\
undo()\n\
}\n\
HotKeys>redo:F6::: {\n\
redo()\n\
}\n
ps. See RangesetHotKeys for F7 and F8 assignments to find and search with color background. These are very useful when debugging your code and you want to see all the places a variable is being used.
