how to swap clipboard content with selection upon keyboard shortcut

后端 未结 3 1969
野趣味
野趣味 2021-01-16 13:28

I\'d like to exchange the currently selected text in eclipse (or even any program) on linux with the content of the clipboard when pressing a shortcut like Ctrl-B. Any ideas

3条回答
  •  猫巷女王i
    2021-01-16 14:10

    There is a project called IronAHK which aims to make AutoHotkey cross-platform. It looks to have an extremely long development cycle, so I am not certain it supports everything that the latest AutoHotkey does. It is definitely worth a look!

    Below is the code that would work in Windows:

    ^b::
        Old_Clip := clipboard
        Send ^x
        Send % Old_Clip 
    Return
    

提交回复
热议问题