🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Vinny Perado Mon, 29 Dec 2014 15:24
Re: Is there a way to change Pan 0.139 keyboard shortcut for "SEND"?
#86411
Author: Vinny Perado
Date: Mon, 29 Dec 2014 15:24
22 lines
2307 bytes
> I was grepping the $HOME/.pan2/ XML files, & not the TXT files!

Now that I finally know about "accels.txt", that gives me a decent
keyword which is more unique than "control + return."

This hints at why changing the Pan 0.139 keyboard shortcuts
in the Pan GUI failed every single time on Kubuntu 14.04:
http://lists.gnu.org/archive/html/pan-users/2013-07/msg00021.html

So does this article, so, maybe my gtk is screwing up Pan keyboard
accelerators.
http://www.archivum.info/pan-users@nongnu.org/2006-02/00010/%28Pan-users%29-Re-Changing-menu-key-bidings.html

Googling for "how to disable pan accels.txt control enter return send 
keyboard accelerator keys", I get a few hits now that I added "accels.txt",
so I hope to get it fixed soon.

For example, here is the exact same question:
http://lists.gnu.org/archive/html/pan-users/2013-07/msg00017.html


Re: Is there a way to change Pan 0.139 keyboard shortcut for "SEND"?
#86412
Author: Vinny Perado
Date: Mon, 29 Dec 2014 15:45
54 lines
3638 bytes
On Mon, 29 Dec 2014 15:24:19 +0000, Vinny Perado wrote:

> For example, here is the exact same question:
> http://lists.gnu.org/archive/html/pan-users/2013-07/msg00017.html

Thanks for all the help. 
The problem has been resolved!

Apparently Pan changed the syntax a _lot_ between that thread
and now, but the _idea_ in that thread worked perfectly!

OLD: http://i62.tinypic.com/2i78npv.png
NEW: http://i62.tinypic.com/2i78npv.png

Notice the obvious step, which is to manually change the 
Pan keyboard shortcut in the Pan GUI, failed every time:
http://i57.tinypic.com/2le3seb.png

It turned out that the _only_ way that worked to disable the 
problematic control+enter unwarned send sequence was to edit 
the ~/.pan2/accels.txt file (there was no pan.hotkeys file).

Here is a quick summary for the next person to benefit.
------------------------------------------------------
Fix Pan's tendency to send a message too soon when you accidentally 
press "Control Enter" (which the newer pan calls "<Primary>Return").

Note that Thunderbird will ASK if you want to send, if you hit that
keyboard sequence, but Pan will just prematurely send it.

Modify pan's accels.txt to change the send shortcut from control return
http://lists.gnu.org/archive/html/pan-users/2013-07/msg00017.html

Pan dumps accels.txt (unordered) at quit and loads it at start.
All default entries are commented out.
If you change a default, remove the comment character (;) first!
Don't use tab as it's problematic.
Use ctrl-alt-shift-enter or something like that to remap, as it's 
not problematic.

1. Kill pan
2. $ vi ~/.pan2/accels.txt
   Change from either (prior to Pan 0.139):
   ; (gtk_accel_path "<Actions>/post/post-article" "<Control>Return")
   Or (Pan 0.139):
   ; (gtk_accel_path "<Actions>/post/post-article" "<Primary>Return")
   Change to:
   (gtk_accel_path "<Actions>/post/post-article" "<Control><Alt><Shift>z")
   or
   (gtk_accel_path "<Actions>/post/post-article" "<Primary><Alt><Shift>z")
3. Start pan and test.
------------------------------------------------------

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads