RE: Keyboard shortcuts (KDE, NEdit) confusion

Matthijs van Aalten <[email protected]>
Newsgroups gmane.editors.nedit.user
Message-ID <A2403073D589354FB342892C1CB8F906DF77AEF4@EU1RDCRDC1WX029.exi.nxp.com>
> On Tue, Mar 31, 2009 at 11:16 AM, Matthijs van Aalten wrote:
> > Using alt+Left and alt+Right used to do next_document() and
> > previous_document() - doesn't work anymore.
> 
> It must have been something custom you had, since the default for
> these are Ctrl+PageUp and Ctrl+PageDown. Reference:
> http://www.nedit.org/help/keyboard.php#Keyboard_Shortcuts
> "    Alt+Home      Switch to the previously active document.
>     Ctrl+PageUp   Switch to the previous document.
>     Ctrl+PageDown Switch to the next document.

You're right - previously it must have been customized somewhere
outside my own configuration. Ctrl+PageUp/Down works - but I prefer
to have it back the way I had it...

> According to Nedit documentation, you cannot use this method to set
> existing bindings. Reference:
> http://www.nedit.org/help/binding.php#Key_Binding
> "However, if you want to change existing bindings ... you will need
> to do so via X resources."

Mmmm... so I guess that there is already an existing key binding
somewhere that does nothing. How do I find the cause for this?

I've tried to get a list using 'xrdb -all -query', but don't find any
keymapping that might interfere.

I don't know what kind of systems can interfere. Xresources, perhaps a
KDE configuration, maybe something Exceed-on-demand - and what else?

> > - I tried to define it manually by adding:
> > NEdit*text.Translations: #override\n\
> >     Alt<KeyPress>Right: next_document()\n\ ...
> > to the NEdit application defaults file. No luck.
> 
> I'm not sure this is correct - where did you find an Action Routine
> called "next_document()"? I don't see it listed in the NEdit
> documentation (http://www.nedit.org/help/actions.php#Action_Routines).
> Perhaps what you want is 'focus_pane("next")'?

It's not really well documented, but check the last lines here:
http://www.nedit.org/help/interface.php#Tabbed_Editing
... which names the action routine next_document(). If I define an menu
item in the action menu which only does this action routine and activate
it by selecting the menu item with the mouse, it works - so although
not well documented, it _does_ work.

I also manage to bind it to alt-F11 (from within the NEdit customize
macro menu) and it works. So the action routine isn't the problem - it
really is the key binding that doesn't work.

(if I remember correctly, the advantage of next_document is that it
cycles through the tabs, also from the last back to the first)

> Also, did you run 'xrdb -l ~/.Xdefaults" from the shell after
> modifying your Xdefaults file? Changes to x-resources in the Xdefaults
> file only actually start working when you re-read the file with the
> xrdb utility.

I'm editing the NEdit x-resource file itself, not Xdefaults - so just
quiting and restarting NEdit is enough to re-read the new settings.

Best regards,
Matthijs van Aalten

-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.