From: Bernard D. <bde...@or...> - 2019-08-25 16:35:51
|
I have this little proc in my file prefs.tcl: namespace eval binding {} proc binding::ls {args} { return [join [eval binding list $args] "\n"] } It displays one binding per line. It supports some options to filter the bindings. In particular -key and -mod are very useful. Examples: If I'm looking for the bindings involving the letter C, I type: binding::ls -key 'c' If I want the bindings corresponding to cmd-T, I type: binding::ls -key 'T' -mod c For opt-cmd-R: binding::ls-key 'R' -mod oc To find all the bindings defined in TeX mode (assuming it has been loaded already): binding::ls -tag TeX Etcetera... Bernard > Le 25 août 2019 à 09:13, Dr Eberhard W Lisse <el...@li...> a écrit : > > Unsurprisingly > > binding create {c '+'} shiftRight > binding create {c 'ü'} shiftLeft > > work :-)-O so I now am really becoming interested in the list of > possible bindings to rearrange. > > Unfortunately the Tcl Shell puts all bindings on one single line which > makes this very difficult tpo read. > > greetings, el > > On 25/08/2019 8:30 am, Dr Eberhard W Lisse wrote: >> Bernard, >> >> didn't know that, actually, I am just an elderly Gynecologist, >> being able to follow simple cut and paste instructions :-)-O >> >> On the German keyboard the key for ']' is occupied by by '+' so >> >> binding create {zc '+'} centerRegion >> >> works and would be the candidate. >> >> That reminds me, since ']‘ on the german keyboard is on cmd-6 and I >> can't do a option-cmd-6 when I want to indent (Shift Right), which I can >> do on the US Keyboard with option-], I would like to tie that to cmd-+, >> but don't know the name of the function. Where can I find the name of >> the function or better even the names of all functions? >> >> Is there a way of TCL finding out which keyboard I am using and then do >> binding conditionally debending on whether it's the German or English one? >> >> >> >> >> I like your idea. >> >> greetings, el >> >> On 24/08/2019 6:20 pm, Bernard Desgraupes wrote: >>> Hi Eberhard, >>> >>> As you know one may define composite bindings in Alpha. What is the >>> binding you'd like to implement ? >>> >>> Regarding uncenterRegion as a matter of fact I'm going to also >>> implement a flushLeft and a flushRight proc and gather all of them in >>> a small package (textAlignment?) that will insert an Alignment >>> submenu in the Text menu. To be continued... >>> >>> Cheers, >>> Bernard > > -- > Dr. Eberhard W. Lisse / Obstetrician & Gynaecologist (Saar) > el...@li... / * | Telephone: +264 81 124 6733 (cell) > PO Box 8421 / > Bachbrecht, Namibia ;____/ |