On Tue, Mar 23, 2010 at 8:25 PM, Abdelrazak Younes <you...@lyx.org> wrote: >On 03/22/2010 11:27 PM, Maynard Handley wrote: ... >> (1) How do you use esc, as you claim, in key bindings. I tried to do so a >> few months ago and could never figure out a way to express it. >> I wanted to be able to create macros that are triggered by esc-a-esc, and >> the language seemed completely unable to express this. >> BTW F1 is not a useful substitute, not least because I use a Mac and >> F-keys on Macs requires chording.
In principle you'd bind it like this*: \bind "Escape a Escape" "math-insert \alpha" and \bind "Escape a l p h a Escape" "math-insert \alpha" You'd need to create a new file "mathematica.bind" and copy in the definitions from math.bind and cua.bind modifying them to match the bindings from Mathematica (and add any bindings that mathematica has that LyX does not). The help on writing bind files is at: http://wiki.lyx.org/Tips/KeyboardShortcuts You can browse the latest copies of cua.bind and math.bind at: http://www.lyx.org/trac/browser/lyx-devel/trunk/lib/bind/cua.bind http://www.lyx.org/trac/browser/lyx-devel/trunk/lib/bind/math.bind Then you'd select Mathematica.bind in Tools -> Preferences -> Editing -> Shortcuts -> Bind File. If you do this, please send us the "mathematica.bind" file so others can use your work :). >> (2) Your bug system is obviously horrendously slow, and must be extremely Yes. >> painful for you to use every day. Do you know why it is so slow --- lack of >> CPU, RAM, or fast disk? Would a donation of $1000 help speed it up and get >> LyX bugs fixes happening a little faster? >> > > Send me an apple system and I'll try to optimize LyX on it :-) www.lyx.org is running on an apple server? -- * however this seems not to work if I also use \bind_file "cua" Regardless of what order I put the commands in. This seems like some kind of bug, as IMHO one of the following should happen: 1) Later definitions should override earlier ones; or 2) visa versa; or 3) When "cancel" is a No-op, The longer bindings should be used. However, if you want to define Mathematica style keybinding you don't want to include cua.bind anyway, so this doesn't affect you. -- John C. McCabe-Dansted