Scott Kostyshak <skostysh <at> lyx.org> writes: > OK. Do you have any thoughts (don't worry if not) on the idea of > "start a new frame regardless of the context"? Currently I do the > following: > > command-alternatives environment-split outer; environment-split; layout Frame >
FWIW, I did the following (which I think I found somewhere either on the wiki or on this list, but I no longer recall). 1. In ~/.lyx/commands/default.def, I added the command \define "newframe" "command-sequence paragraph-break inverse ; depth-decrement ; depth-decrement ; depth-decrement ; depth-decrement ; layout Frame ; inset-dissolve ; environment-split" I don't recall whether I had to create default.def or not. That's the entire contents of the file. 2. In Tools > Preferences... > Editing > Shortcuts, for my default bind file (cua), I bound Ctrl+Alt+Return to "call newframe" (and unbound it from whatever it was previously bound to). It ended up under "System and Miscellaneous"; not sure why, don't care. In the macro, I did four depth decrements on the assumption that I would never be any deeper than four levels in. Extra decrements don't hurt; LyX just ignores them. That's my clumsy workaround to make it work from any depth. Paul
