Skip to content

Add to Favorites - selection mode #249

@ProgerXP

Description

@ProgerXP

Extend the Alt+K dialog (Add to Favorites):

  • add 4 radio buttons under the input: Cursor position: [X] &first line [ ] l&ast line [ ] &current 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 (/?)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions