Creating a ctrl+tab keybinding in PuTTY

前端 未结 2 1969
北荒
北荒 2021-02-04 04:21

I\'d like to be able to map the vim commands :tabnext and :tabprev to CTRL+TAB and CTRL+SHIFT+TAB respectively. Unfortunately

相关标签:
2条回答
  • 2021-02-04 04:47

    I believe that at this time, using Ctrl+Tab is not possible with PuTTY, because PuTTY does not allow you to configure specific translations for keys. Here is a decent article that shows how you would set this up if PuTTY did support this feature:

    http://www.staldal.nu/tech/2009/01/10/how-to-use-ctrl-tab-in-gnu-screen/

    If you use (or would consider using) a hotkey/macro program like Autohotkey, you could emulate this behavior yourself. For example, this Autohotkey config script would do exactly what you want:

    #IfWinActive PuTTY
    ^Tab::Send :tabnext
    ^+Tab::Send :tabprev
    #IfWinActive
    

    (Note that this example is just looking for any window title starting with PuTTY, so you'd have to adjust based on your title configuration.)

    0 讨论(0)
  • 2021-02-04 04:54

    PuTTY doesn't send anything when you press Ctrl+Tab.

    You can patch PuTTY as it is described here: Using Ctrl+Tab in GNU Screen over PuTTY

    0 讨论(0)
提交回复
热议问题