Menu

FR:"Go to line ..." in context menu of number

2008-02-14
2012-11-13
  • Nobody/Anonymous

    hi,
    would it be possible to add an "Go to line ..." context menu entry (or hotkey) to numbers, which could be a line number, i.e.:
    123
    62300
    but not
    number > total lines
    12.34
    12,34
    etc.
    and selecting it would let you jump directly to the specific line (no further user input needed).

    however the "but not" condition is not so important, but i would really like to have this feature, because i (and others too i think ;-) often jump to line numbers which are declared in the same text.
    thank you
    tom

     
    • Nobody/Anonymous

      goto %programfiles%\notepad++\ and open contexmenu.xml and add anywhere this lines!

      <Item id="43004"/>

      now you have a contexmenu option.

       
      • Nobody/Anonymous

        and how does this solve the problem as asked?

         
    • Nobody/Anonymous

      Rephrased: selecting a number which is not greater than the total number of lines would allow a context menu option to jump to the line with that selected number.

       
      • Don HO

        Don HO - 2008-02-14

        Save the following line as user command "Goto Line" in Run dialog and assign the shortcut you want :

        notepad++ -n$(CURRENT_WORD) $(FULL_CURRENT_PATH)

        Now select a number in your document then type the assigned shortcut - you can go whereever you want !
        You can even add your user command in the context menu if you want.

        Don