shortcut for going to edge of ERT frame?

Christopher Menzel chris.menzel at gmail.com
Sun Aug 8 19:24:22 UTC 2021


On 8 Aug 2021, at 1:36 PM, David Pesetsky <pesetsk at mit.edu> wrote:
> On Aug 8, 2021, at 2:09 PM, Chris Menzel <chris.menzel at gmail.com <mailto:chris.menzel at gmail.com>> wrote:
>> 
>> For me, Ctrl-a and Ctrl-e move the cursor in an ERT frame to the first and last characters of the frame, respectively. However, I'm not sure if this is because I'm using Emacs keybindings or because I'm using a Mac, which also uses those keybindings in text areas. 
> 
> Thanks for the reply!  Unfortunately, no luck.
> 
> I have been using the mac keybindings, plus some customizations.  Unfortunately, neither with the mac keybindings nor when I change to the emacs keybindings (I was hoping to get the code that way) do I see these actions.  

Huh, weird. I just checked this out on my Linux laptop and selecting the Emacs keybindings (Tools → Preferences → Shortcuts → Bind file) gives me the Ctrl-a/Ctrl-e behavior noted inside an ERT frame.

> Ctrl-a alone seems to do nothing except display "^a options" on the status bar at the bottom.  With the emacs keybindings, both ctrl-a and ctrl-e yield "unknown function".

Ah, you know what? Ctrl and Cmd are all turned around for me on the Mac. Try using Cmd-a and Cmd-e instead! (I had to go into the Shortcuts and explicitly assign the functions in question to Ctrl-<key> characters instead of Cmd-<key> to get Emacs bindings to work correctly.) I suspect there was a more global way to do this in one fell swoop, but I couldn't figure out any other way to do it; and it works. ¯\_(ツ)_/¯ But if all you want is some keystroke to get the cursor movement you want, you can just use the Cmd-<key> bindings noted.

-chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20210808/7ec0a548/attachment.html>


More information about the lyx-users mailing list