Menu

Multiple shortcuts (Shift+Ins, etc.)

2008-02-27
2012-11-13
  • Alexander Iljin

    Alexander Iljin - 2008-02-27

    Virtually every Windows program supports Shift+Del, Ctrl+Ins and Shift+Ins in addition to Ctrl+X, Ctrl+C and Ctrl+V. Those Ins/Del shortcuts are way back from the days of the DOS, so a lot of people got used to them (including me).

    Luckily, you can assign multiple shortcuts to a command in Notepad++, despite the fact that Shortcut Mapper looks like as if you can't. The way to do it is to record a single-command macro and assign your favourite shortcut to it.

    For example, start Notepad++.
    Select "Macro -> Start Recording" from the menu.
    Press Ctrl+C to record the "copy" command.
    Select "Macro -> Stop Recording" from the menu.
    Select "Macro -> Save current recorded macro" from the menu.
    In the dialog box set the Name field = "Copy" and make the shortcut = Ctrl+INS.
    Click OK.
    You will see the new command and the shortcut listed at the bottom of the "Macro" menu.
    The macros are stored in the "shortcuts.xml" configuration file.

     
    • Nobody/Anonymous

      What will the effect be when changing the original shortcut after recording the macro?

      If I change CTRL+C to clear my document, for example, which action will the recorded macro execute after that?

       
    • Alexander Iljin

      Alexander Iljin - 2008-02-27

      The macro will still work as before, because it does not replay the keyboard shortcut, but rather sends the "copy" command code to the Scintilla component.

       
      • Claudio Nicora

        Claudio Nicora - 2008-02-27

        Good to know that I must "repair" the missing shortcuts through macro.
        Since create those macros is really a tedious task (think it repeated on 10+ PCs), I hope that Shift+Del, Ctrl+Ins and Shift+Ins macros will be included by default in future versions of Notepad++.

         
        • Alexander Iljin

          Alexander Iljin - 2008-02-29
           
        • Don HO

          Don HO - 2008-02-27

          > Since create those macros is really a tedious task (think it repeated on 10+ PCs),
          > I hope that Shift+Del, Ctrl+Ins and Shift+Ins macros will be included by default in future versions of Notepad++.

          No, they won't.
          But you can copy your shortcut.xml in 10+ PCs.

          Don

           
          • Don HO

            Don HO - 2008-03-01

            > Since create those macros is really a tedious task (think it repeated on 10+ PCs),
            > I hope that Shift+Del, Ctrl+Ins and Shift+Ins macros will be included by default in future versions of Notepad++.

            I just tried v1.75, indeed they're the shorcuts supported in this (and older) version.
            I'll see what can I do about it in v4.8.1.

            Harry, I believe this regression is due to the enhancement of shortcut mapper.
            Could you give me an hint?

            Don

             
            • Nobody/Anonymous

              Well, the current shortcutmapper doesnt really allow duplicates in its current state
              (duplicates in this way that is, the other way (same shortcut-multiple items) is possible though it will never work)
              Im cooking up a patch in an attempt to fix this, so if its possible please wait until I got this sorted out.

              -Harry

               
    • Nobody/Anonymous

      Thanks for this.  OI found that the Shift+Ins and Ctrl+Ins was no longer working in 4.8 to copy & paste.  Glad I found this so I could add them back in.

      Pat

       
    • Nobody/Anonymous

      You really should consider bringing back these shortcuts (i.e., Shift+Ins, etc).

      I can't think of *ANY* windows editor that does not support these.  I love Notepad ++, but I may have to switch to something else if it doesn't work like I'm used to. :-(

      -Don

       
      • Nobody/Anonymous

        You could still use a previous version that works to your liking.

         
MongoDB Logo MongoDB