Re: Specialization of Nedit for X11
Re: Specialization of Nedit for X11
- Subject: Re: Specialization of Nedit for X11
- From: "Nathaniel Gray" <email@hidden>
- Date: Thu, 15 Nov 2007 15:06:15 -0800
On Nov 15, 2007 2:10 PM, Barto, David <email@hidden> wrote:
> I'm working on modification Nedit for X11 (hello n8) and I'd like to use the
> option key as the modifier. (We hates the control key, hates them we do.)
>
> In Tiger I use 'Meta' to get to the option key, and Mod2 gets me the Apple
> key. In Leopard Mod1 doesn't work and neither does Meta.
>
> What key do I use in my Xresources file to get Nedit to see the option key
> as a quick keystroke.
>
> A part of my .Xresources:
>
> nedit*searchMenu.find.accelerator: Mod2<Key>f
> nedit*searchMenu.findShift.accelerator: Shift Mod2<Key>f
> nedit*searchMenu.findAgain.acceleratorText: Mod2<key>g
> nedit*searchMenu.findAgainShift.accelerator: Shift Mod2<key>g
> !
> !
> nedit*text.Translations: #override \n\
> Ctrl<Key>W: delete-previous-word()\n\
> Ctrl<Key>E: end-of-line()\n\
> Meta<KeyPress>osfDown: next-page()\n\
> Meta<KeyPress>osfUp: previous-page()\n
I'll admit, this stuff makes my head spin. There are just too many
layers of indirection involved. When I'm working this all out for
myself I usually fire up xev to see what X thinks each key is and go
from there. In Leopard's X, my left option key is being seen as
Mode_switch for some reason. My right option key is seen as Alt_R. I
haven't attempted to straighten this out yet, though.
You may be interested to know that I use "Alt" in my .Xresources to
refer to the option key:
nedit*text.Translations: #override \n\
~Meta ~Shift ~Ctrl Alt<Key>osfUp: scroll_up(1)\n\
~Meta ~Shift ~Ctrl Alt<Key>osfDown: scroll_down(1)\n\
(BTW, your next-page/previous-page bindings will also match if the
shift key is held, unless maybe you have another binding later? Or
maybe that's how you like it...)
Cheers,
-n8
--
>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden