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?
A similar question has been posted here regarding Visual Studio but unfortunately the only useful answer pointed to AutoHotkey which is only available for Windows or is there a linux equivalent?
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:
found following solution using
xvkbd
:this is not very robust, e.g. when I tested it without the sleep command, the ctrl modifier key seemed to be stuck, i.e. the A key was interpreted as ctrl-A and I found no way to reset it. Otherwise this does what I want.