From: Bernard D. <bde...@or...> - 2019-08-24 16:20:46
|
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 Envoyé de mon iPhone > Le 24 août 2019 à 16:03, Dr Eberhard W Lisse <el...@li...> a écrit : > > Wow! > > As 'C' is close to the Control and Command keys, and because cmd-] > indents (tabs) alreay I have tied it to ctrl-cmd-]. > > binding create {zc ']'} centerRegion > > Is there a way of tieing it to more than one key? I sometimes use a > German keyboard, and while I can of course have different prefs.tcl, I'd > like normalization from a single source :-)-O > > And, of course this now asks for an uncenterRegion :-)-O > > greetings, el > >> On 2019-08-24 13:29 , Eberhard W Lisse wrote: >> Bernard, >> >> as usual, very, very cool. >> >> I will this out as soon as I am back from ward rounds. >> >> el >> >> — >> Sent from Dr Lisse’s iPad Mini 5 >>> On 24 Aug 2019, 09:00 +0200, Bernard Desgraupes <bde...@or...>, wrote: >>> Hi Eberhard, >>> >>> Here is a proc called centerRegion that centers a block of text. By >>> default, it applies to the current window and takes the current value >>> of the fillColumn preference (usually 75). You could copy this proc >>> in your prefs.tcl file. >>> >>> If you want to bind it to ctrl-cmd-C for instance, add the following >>> instruction: binding create {zc 'C'} centerRegion > [...] >>> Hope this helps, >>> Bernard > [...] > > -- > Dr. Eberhard W. Lisse / Obstetrician & Gynaecologist (Saar) > el...@li... / * | Telephone: +264 81 124 6733 (cell) > PO Box 8421 / > Bachbrecht, Namibia ;____/ |