This documentation is automatically generated from comments in the macro and mouse menu. Doing so, it's easy for you to have a look at them without using the net.
Futhermore, feel free to improve this documentation. If you make any improvement, send me your nedit.rc file, I will be very happy to integrate your modification within Nedit Macro-Kit. You can even add a new language!
1) Index:
MACRO MENU:
Edit (Mk)
Edit (Mk)>Structural characters
Move (Mk)
Move (Mk)>Flags
Comment (Mk)
Advanced (Mk)>ctags
Advanced (Mk)>Search
Advanced (Mk)>Expander
Advanced (Mk)>Completion
Buffer (Mk)
Buffer (Mk)>shortcut
c++ (Mk)
Work settings (Mk)
Misc (Mk)
WINDOWS BACKGROUND MENU:
Comment (Mk)
Completion dialog (Mk)
Customize (Mk)
Work settings (Mk)
2) Legend:
menu>sub_menu of the menu.
macro-function name
(shortcut)
(specific to this langage)
: macro documentation...
3) Doc:
MACRO MENU:
Edit (Mk)
:
copy line
(Ctrl+Alt+C)
: Copy the current line.
cut line
(Ctrl+Alt+X)
: Cut the current line. If the current line is empty, the clipboard is not modified.
paste line
(Ctrl+Alt+V)
: Paste (idem CTRL+V).
Duplicate block
(Alt+D)
: Duplicate the selection. If there is no selection, duplicate the current line.
Duplicate and comment block
(Ctrl+Alt+D)
: Duplicate and comment the selection. If there is no selection, duplicate and comment the current line.
Fill selection
(Ctrl+Alt+F)
: Fill selection with a given string.
replace in rectangular selection
(Alt+J)
: Replace each line of a rectangular selection with a given string.
replace by selection
(Ctrl+B)
: Replace the selection with the clipboard.
enumeration
: Enumerate selection (insert a number at the beginning of each line).
get regex
: get all the match in a document for the given regular expression.
get file list
(Shift+Ctrl+Alt+L)
: copy a file list into clipboard
Edit (Mk)>Structural characters
:
Add block {}
(Alt+B)
: Insert two curly braces. If a selection exist, put this selection into curly braces.
Add (...)
(Shift+Alt+0)
: Put the selection in parentheses (or add empty parentheses if no selection).
Add {...}
(Shift+Alt+Bracketright)
: Put the selection in curly braces (or add empty curly braces if no selection).
Add [...]
(Alt+Bracketright)
: Put the selection in square brackets (or add empty square brackets if no selection).
Add " "
(Shift+Alt+Apostrophe)
: Put the selection in guillemets (or add empty guillemets if no selection).
Add ' '
(Alt+Apostrophe)
: Put the selection in apostrophes (or add empty apostrophes if no selection).
Add ` `
(Shift+Ctrl+Grave)
: Put the selection in grave accents (or add empty grave accents if no selection).
Add <..
(Shift+Alt+Period)
: Put the selection in inferior/superior (or add empty inferior/superior if no selection).
Add ``
(Alt+Grave)
: Put the selection in`` (or add empty `` if no selection).
Add $$
(Shift+Alt+4)
: Put the selection in $$ (or add empty $$ if no selection).
Add **
(Shift+Alt+8)
: Put the selection in ** (or add empty ** if no selection).
Add \\\\
(Alt+Backslash)
: Put the selection in \\\\ (or add empty \\\\ if no selection).
Move (Mk)
:
discrete scroll up
(Alt+Prior)
: Scroll up without moving the cursor.
discrete scroll down
(Alt+Next)
: Scroll down without moving the cursor.
begin of selection
(Alt+Home)
: Move the cursor at the beginning of the selection.
end of selection
(Alt+End)
: Move the cursor at the end of the selection.
Move among file group
(Alt+Z)
: swap between header and source files.
next modified win
(Ctrl+Alt+Up)
: Look for next modified windows (useful after using macro "replace grep lines").
previous modified win
(Ctrl+Alt+Down)
: Look for next modified windows (useful after using macro "replace grep lines").
next windows
(Ctrl+Alt+Right)
: open next windows.
previous windows
(Ctrl+Alt+Left)
: open previous windows.
next action path
(Shift+Ctrl+Alt+Up)
: open a windows in the next working directory
previous action path
(Shift+Ctrl+Alt+Down)
: open a windows in the next working directory
open local file
(Alt+O)
: Open local files
open file with mask
(Shift+Alt+O)
: Apply a regex filter on allready-open files
open file with predefined mask
(Shift+Ctrl+Alt+O)
: Apply a regex filter on allready-open files
goto main file
(F4)
: Open the local project file.
goto global main file
(Shift+F4)
: Open the global project file.
Flags dialog
(Shift+Ctrl+Alt+F)
: choose among existing flags.
Move (Mk)>Flags
:
insert flag 1
(Ctrl+Alt+1)
: Insert flag 1. A flag memorize the file name and the line number.
To go to flag i, use ALT+i.
insert flag 2
(Ctrl+Alt+2)
: Insert flag 2.
insert flag 3
(Ctrl+Alt+3)
: Insert flag 3.
insert flag 4
(Ctrl+Alt+4)
: Insert flag 4.
insert flag 5
(Ctrl+Alt+5)
: Insert flag 5.
insert flag 6
(Ctrl+Alt+6)
: Insert flag 6.
insert flag 7
(Ctrl+Alt+7)
: Insert flag 7.
insert flag 8
(Ctrl+Alt+8)
: Insert flag 8.
insert flag 9
(Ctrl+Alt+9)
: Insert flag 9.
insert flag 0
(Ctrl+Alt+0)
: Insert flag 0.
goto flag 1
(Alt+1)
: Go to flag 1.
goto flag 2
(Alt+2)
: Go to flag 2.
goto flag 3
(Alt+3)
: Go to flag 3.
goto flag 4
(Alt+4)
: Go to flag 4.
goto flag 5
(Alt+5)
: Go to flag 5.
goto flag 6
(Alt+6)
: Go to flag 6.
goto flag 7
(Alt+7)
: Go to flag 7.
goto flag 8
(Alt+8)
: Go to flag 8.
goto flag 9
(Alt+9)
: Go to flag 9.
goto flag 0
(Alt+0)
: Go to flag 0.
Comment (Mk)
:
swap comment 1
(Alt+Q)
: comment or uncomment the selection with the first comment characters.
The choice is made by testing wether the first line of the selection is commented or not.
If no selection, the current line is commented or uncommented.
The comment characters are set in the file : macro_parameters.nm.
swap comment 2
(Shift+Alt+Q)
: Comment or uncomment the selection with the second comment characters.
The choice is made by testing wether the first line of the selection is commented or not.
If no selection, the current line is commented or uncommented.
The comment characters are set in the file : macro_parameters.nm.
comment
(Alt+Period)
: Comment the selection with the first comment characters.
If no selection, the current line is commented or uncommented.
The comment characters are set in the file : macro_parameters.nm.
uncomment
(Alt+Comma)
: Uncomment the selection with the first comment characters.
If no selection, the current line is commented or uncommented.
The comment characters are set in the file : macro_parameters.nm.
nice line comment
(Shift+Ctrl+Alt+Slash)
: Put some nice comments around the selection.
Advanced (Mk)>ctags
:
local definitions
(Shift+Ctrl+Alt+G)
: Open a windows which list all the functions declared in a file (using ctags).
You can change the parameters in macro_parameters.nm ($ctags_parameters)
PS: use Exuberant Ctags.
global definitions
(Ctrl+Alt+G)
: Open a windows which list all the symbols declared in working directory (using ctags).
You can change the parameters in macro_parameters.nm ($ctags_parameters)
PS: use Exuberant Ctags.
find_definition dialog
(Shift+Ctrl+D)
: If nothing selected, a dialog box pop up asking for which tag to use.
reload tags file
(Ctrl+Alt+T)
: Reload tags file.
create tags file
(Shift+Ctrl+Alt+T)
: create and load a new tags file.
Advanced (Mk)>Search
:
find file
(F5)
: Recursive search of files.
grep
(F6)
: Look for an expression in the working directory (eventually recursively).
grep regex
(Shift+F6)
: Look for an expression in the working directory (eventually recursively).
replace grep lines
(Alt+F6)
: After having changed the result of the "grep" macro, you can send back the modification using this macro.
grep settings
(Shift+Alt+F6)
: Change the parameters of the "grep" macro: the file masks and regex/literal.
The default values can be change in the macro_parameters.nm.
Advanced (Mk)>Expander
:
expand
(Ctrl+Return)
: Expand a shorcut. For instance, "\\un" is extended to "using namespace".
Try to open and modify the file "expander.data".
expand with selection
(Ctrl+Alt+E)
: todo
expand with selection (dialog)
(Shift+Ctrl+Alt+E)
: todo
template file
(Alt+Return)
: create a new template file.
open expander.data
(Shift+Ctrl+Alt+E)
: Open the file "expander.data".
Advanced (Mk)>Completion
:
completion
(Alt+Space)
: completion. Can also use dictionnary.
completion (backward)
(Shift+Alt+Space)
: backward completion.
special completion
(Ctrl+Space)
: Special completion with tags name.
special completion (backward)
(Shift+Ctrl+Space)
: Backward special completion.
file completion
(Ctrl+Alt+Space)
: Completion with file names.
file completion (backward)
(Shift+Ctrl+Alt+Space)
: Completion with file names.
Buffer (Mk)
:
Find interesting line
(F1)
: Find an interesting line (ie: with a file name and eventually a line number).
You can add or modify the interested lines in the macro_parameters.nm file.
Find interesting line (backward)
(Shift+F1)
: idem, backward.
Find interesting line priority
(Shift+Alt+F1)
: set new find-interesting-line priority.
Highlight interesting
(Alt+F1)
: hightlight interesting lines.
Process interesting line
(F2)
: Look for an interesting line and apply the corresponding action
Process interesting line (auto)
(Shift+F2)
: Look for an interesting line and apply the corresponding special action
Goto buffer
(F3)
: Open the NEdit temporary file.
Goto last file
(Alt+F3)
: Set NEdit temporary file parameters.
New buffer
(Shift+F3)
: New buffer.
Goto Makefile
(Alt+F4)
: Open Makefile.
Next interesting line
(Alt+F2)
: find the next intersting line and jump goto it.
Buffer (Mk)>shortcut
:
show unix command
(Alt+U)
: Show the unix commands bind to the (ALT+)F9-F12.
You can permantly change those command in the macro_parameters.nm.
kill current buffer
(Ctrl+Alt+K)
: kill current execution
execute command dialog
(Alt+F8)
: Enter a unix command to execute in the NEdit temporary file.
execute command list
(Shift+Alt+F8)
: open a list dialog box with unix command (define in macro_parameters.nm) .
execute last command
(F8)
: Execute last command.
execute unix file
(Alt+F7)
: Execute one of the executable files present in the local directory.
execute last unix file
(F7)
: Execute last executable files.
execute F9
(F9)
: Execute the unix command bind to F9.
execute F10
(F10)
: Execute the unix command bind to F10.
execute F11
(F11)
: Execute the unix command bind to F11.
execute F12
(F12)
: Execute the unix command bind to F12.
execute ALT F9
(Alt+F9)
: Execute the unix command bind to ALT+F9.
execute ALT F10
(Alt+F10)
: Execute the unix command bind to ALT+F10.
execute ALT F11
(Alt+F11)
: Execute the unix command bind to ALT+F11.
execute ALT F12
(Alt+F12)
: Execute the unix command bind to ALT+F12.
c++ (Mk)
:
create constructor
(Shift+Alt+C)
(C++)
: Create a constructor with the selected parameters.
Add stderr
(Shift+Ctrl+Alt+C)
(C++)
: Create a constructor with the selected parameters.
Work settings (Mk)
:
choose host
(Shift+Alt+H)
: Choose a new host (among those listed in the macro_parameters.nm file).
new path
(Ctrl+Alt+P)
: Set a new Working directory.
new host
(Ctrl+Alt+H)
: Enter a new host.
local path
(Shift+Ctrl+Alt+P)
: Set the Working directory to the local path.
local host
(Shift+Ctrl+Alt+H)
: Set the host to the local host.
Change macros parameters
(Ctrl+Alt+M)
: Open the macro_parameters.nm file.
reload macros parameters
(Shift+Ctrl+Alt+M)
: Reload the macro_parameters.nm file.
switch global/local working directory
(Ctrl+Alt+S)
: Some macros have to know the directory into which they must be executed (for compilation by example).
These working directory can be handle in two different ways:
- local mode : the working directory is always the directory of the current file,
- global mode : the working directory does not depend on the current file.
To change mode, use this macro.
Misc (Mk)
:
Reload actual macro file
(Ctrl+Alt+R)
(NEdit Macro)
: Reload actual nedit macro file.
Show shell command
: Show (and eventually check) if the shell commands defined in macro_parameters.nm are valid.
Save all
(Shift+Ctrl+S)
: Save all open files.
Clean rangeset
(Shift+Ctrl+Alt+R)
: destroy all rangesets
Help
: About this macros...
WINDOWS BACKGROUND MENU:
ctags local (Mk)
: Open a windows which list all the functions declared in a file (using ctags).
You can change the parameters in macro_parameters.nm ($ctags_parameters)
PS: use Exuberant Ctags.
new template file (Mk)
: create a new template file.
save all (Mk)
: Save all open files.
Comment (Mk)
:
comment //
: add comments: //.
uncomment //
: remove comments: //.
comment /*...*/
: add comments: /*...*/.
uncomment /*...*/
: remove comments: //.
comment #
: add comments: #.
uncomment #
: remove comments: #.
comment mail
: add comments: >.
uncomment mail
: remove comments: >.
comment %
: add comments: &.
uncomment %
: remove comments: %.
Completion dialog (Mk)
:
window completion
: Open a dialog box with all completion matches in the windows.
dico completion
: Open a dialog box with all completion matches in the dictionaries.
global ctags completion
: Open a dialog box with all completion matches in the tags file.
local ctags completion
: Open a dialog box with all completion matches in the tags file.
file name completion
: Open a dialog box with all completion matches in file names of the current directory.
Customize (Mk)
:
open expander.data
: Open the expander.data file.
open language-specific dicos
: open one of the dictionaries bind to the current langages.
open dicos
: open a dictionary.
Work settings (Mk)
:
choose host
: Choose a new host (among those listed in the macro_parameters.nm file).
new path
: Set a new Working directory.
new host
: Enter a new host.
local path
: Set the Working directory to the local path.
local host
: Set the host to the local host.
Change macros parameters
: Open the macro_parameters.nm file.
reload macros parameters
: Reload the macro_parameters.nm file.
switch global/local working directory
: Some macros have to know the directory into which they must be executed (for compilation by example).
These working directory can be handle in two different ways:
- local mode : the working directory is always the directory of the current file,
- global mode : the working directory does not depend on the current file.
To change mode, use this macro.
Last update: 2005/11/12
Back to
Frank Perbet home page.