Extend the Alt+K dialog (Add to Favorites):
- add 4 radio buttons under the input:
Cursor position: [X] &first line [ ] l&ast line [ ] ¤t line [ ] &selection where [X] is the default (Notepad2 behaviour)
first line works just like Notepad2: creates a new LNK file to the currently opened file
last line creates a LNK file with a different command-line: "<c:\absolute\Notepad2e.exe>" /g -1 "<c:\absolute\current.file>"
current line creates a similar LNK but with a positive /g
selection creates a similar LNK but instead of /g -1 it sets /gs start:end where start and end are current selection's positions (as displayed in the statusbar)
- this radio button is disabled if current selection is rectangular (drag over the text area while holding Alt)
- selection can be empty, in this case
start = end
- Notepad2 has
/g but no /gs so it should be also added (both start and end must be given; start must be non-negative integer; end can be -1 to assume EOF)
- add
/gs info to the help text too (/?)
Extend the Alt+K dialog (Add to Favorites):
Cursor position: [X] &first line [ ] l&ast line [ ] ¤t line [ ] &selectionwhere[X]is the default (Notepad2 behaviour)first lineworks just like Notepad2: creates a new LNK file to the currently opened filelast linecreates a LNK file with a different command-line:"<c:\absolute\Notepad2e.exe>" /g -1 "<c:\absolute\current.file>"current linecreates a similar LNK but with a positive/gselectioncreates a similar LNK but instead of/g -1it sets/gs start:endwherestartandendare current selection's positions (as displayed in the statusbar)start=end/gbut no/gsso it should be also added (bothstartandendmust be given;startmust be non-negative integer;endcan be-1to assume EOF)/gsinfo to the help text too (/?)