Stacia Hartleben wrote:
Is there a way I could make a keyboard command for paste external? I
need to paste a lot of external things and it takes a long time to go
to the menu all the time. I don't mind if there are two seperate
functions, but I want easy acess to the external paste one. Thanks!


Yes, you can create a key binding for it. In LyX, go to Edit->Preferences->User interface and take note of which bind file you're using. Now close LyX, track down your bind file, and open it in a text editor. If you are using a customized bind file, it may be in the bind folder of the LyX directory tree under your home directory; otherwise it's probably in the bind folder under the LyX installation directory. It has a .bind extension.

Pick a key combination to use for external pasting, and decide whether you want to paste as lines or paragraphs (or else pick two key combinations and bind one to each). You'll add either one or two lines to the bind file, save it, then restart LyX. The lines are best explained by example. Here is one pair:

\bind "M-Insert" "primary-selection-paste paragraph"
\bind "C-Insert" "primary-selection-paste line"

These bind control+insert to external paste (line) and "meta"+insert to external paste (paragraph). ("Meta" is the Alt key in Windows; I'm not positive about other OSes.)

Paul


Reply via email to