Key binding with Ctrl

Scott Woodford woodford at crystal.cirrus.com
Tue Oct 17 19:51:09 CEST 2006


So I found I was able to bind Ctrl-d in the .nedit file in the 
nedit.macroCommands: section with

Delete Line:Ctrl+d::: {\n\
    my_delete_line_macro()\n\
    }\n\

though I couldn't do it in the .Xdefaults Nedit*text.translations.

So it seems I can bind
Ctrl+b in .Xdefaults and .nedit
Ctrl+d in .nedit only
Ctrl+h in neither.

1) How can I find out about this hierarchy of key bindings - what keys 
are bound at what level, how I can override them?
2) Is it possible to bind Ctrl+h away from find_selection()?

thanks,
Scott
> ------------------------------
>
> Message: 2
> Date: Mon, 16 Oct 2006 15:49:26 -0400
> From: Scott Tringali <scott.tringali at etnus.com>
> Subject: Re: Key binding with Ctrl
> To: General NEdit discussion list <discuss at nedit.org>
> Message-ID: <4533E246.1030701 at etnus.com>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> Scott Woodford wrote:
>
>   
>> Nedit*text.translations: #override \n\
>>   Ctrl<Key>d: beginning_of_line() process_shift_down() delete_selection()
>>
>> This didn't work (to delete a single line), but when I used Alt instead 
>> of Ctrl it did.  What do I need to do to bind to Ctrl instead of Alt?
>>     
>
> Ctrl-D is already taken for tags lookup, but Alt-D is not taken.
>
> You'll need to unbind the ^D accelerator first, which isn't for the 
> faint of heart.
>
>
> ------------------------------
>   




More information about the Discuss mailing list