[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pan-users] Is there a way to remap the "Pan File->Send Article" Con
From: |
Duncan |
Subject: |
Re: [Pan-users] Is there a way to remap the "Pan File->Send Article" Control+Return hotkey? |
Date: |
Wed, 10 Jul 2013 22:50:31 +0000 (UTC) |
User-agent: |
Pan/0.140 (Chocolate Salty Balls; GIT 368aae4 /usr/src/portage/src/egit-src/pan2) |
andreas nastke posted on Wed, 10 Jul 2013 09:29:20 +0200 as excerpted:
> edit $PAN_HOME/.accels.txt
>
> Rock schrieb:
>> Q: Can we remap Pan's send-article sequence to something less prone to
>> accidents?
This isn't Jeopardy and the answer shouldn't come before the question.
There's a reason pan complains when the reply is at the top, above the
quote it refers to and thus "upside down".
...tub ,txet desrever ekil uoy ebyam ,lleW
Hint: echo 'text to be reversed' | rev
Meanwhile, to the topic at hand...
Yes, except it's accels.txt (it's not a hidden dot-file).
The file is simply an unordered (to humans) dump of pan menu entries and
the corresponding accels/shortcuts/hotkeys. Pan dumps this file
(unordered) at quit and loads it at start, so edit the file when pan's
not running, and either don't bother reordering (use your text editor's
search function to find the item you want and edit it in place), or if
you do reorder it, copy it to a different file, edit that, and copy back
to accels.txt so pan can overwrite without killing all the work you did
in the copy you actually edited. (I'm not sure if setting accels.txt to
read-only would prevent pan from overwriting it as it should if pan uses
truncate to empty and append in-place, or if pan simply replaces the
existing file, so that wouldn't work.)
An initial semicolon indicates a comment and all default entries are
commented, so remove the comment if you change a shortcut.
Depending on your gtk options, you *MAY* also be able to edit the hotkeys
in the pan GUI itself. Hover over the menu entry you wish to change the
hotkey for, and hit the desired new hotkey (or delete to simply delete
the existing entry). Of course, doing it this way has some limits
particularly with alt-key combos, which are menu accels. So for instance
in the file menu, you couldn't set alt-t, alt-q or alt-e for anything, as
pan would instead execute the corresponding menu accelerator action. But
you should be able to set alt-a for an action in the file menu as there's
no menu accelerator alt-a there, tho you couldn't for an action in the
edit menu, because there's an alt-a menu accelerator /there/.
Meanwhile, this is yet another feature that's updated in current pan.
Current pan has a shortcuts tab in preferences, allowing you to set/edit/
delete preferences directly in the GUI. =:^) There's also a new
pan.hotkeys file that contains the defaults, but the old accels.txt
dumpfile is maintained as well, and changes that you make to shortcuts in
pan prefs appear in it, rather than in pan.hotkeys, which keeps the
defaults. (IOW, you can edit pan.hotkeys but it won't take effect unless
you don't have an accels.txt file, since pan.hotkeys is defaults only and
not really intended to be manually edited, as the comment at the top of
it clearly states.)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
Re: [Pan-users] Is there a way to remap the "Pan File->Send Article" Control+Return hotkey?, Heinrich Müller, 2013/07/14