! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
[Patch] Add more accelerators to window menu
Status:
RESOLVED: FIXED
Severity:
enhancement

Comments

Description Dr. David Alan Gilbert 2009-08-04 22:31:51 CEST
Created attachment 2490 
Patch to add some more accelerators

Hi,
  This enables more accelerators on the window menu - i.e. the one you get to
from the titlebar or alt-space.
  Among others you can now do 't' for keep on top (b for bottom, s same)
and 'v' for 'always on visible' (o for Only on this workspace).  So if you
have a window with a note in you can alt-space v, and keep it with you as you
move around. 

  I've also had half an attempt at doing the same for the 'workspaces' submenu;
if a workspace does NOT have a name (or is an empty name) and it's one of the
first 9 workspaces then it picks up one of the accelerators 1..9.  So you can
do
alt-space w 1  to move a window to the first workspace.  I'd love to have done
this in the case where there was a name as well, but I can't see a way to set
the name of the item safely in case the user has an _ in there (or should we
just allow that and let them add there own accelerator trivially - it doesn't
feel safe though).

The patch is against a vanilla 4.6.1 and has been tested on Ubuntu Karmic
current alpha.

Enjoy,

Dave
Comment 1 Dr. David Alan Gilbert 2010-07-17 00:37:59 CEST
Created attachment 3035 
updated menu accelerators patch

A slightly updated version of the patch, now also lets you use the 1..9 accelerators on the workspace menu if the workspaces have names but do not have an _ in the names.

Dave
Comment 2 Dr. David Alan Gilbert 2015-04-29 17:14:59 CEST
Created attachment 6224 
Patch to add more accelerators to the window menu

Updated for 2015! (git head)
Comment 3 Olivier Fourdan editbugs 2015-04-29 17:28:52 CEST
Somehow managed to miss this patch for 4.12, sorry :(
Comment 4 Olivier Fourdan editbugs 2015-04-29 17:36:05 CEST
Pushed to master, thanks!
Comment 5 Dr. David Alan Gilbert 2015-04-29 18:27:37 CEST
Thanks!

Bug #5649

Reported by:
Dr. David Alan Gilbert
Reported on: 2009-08-04
Last modified on: 2015-04-29

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Attachments

Patch to add some more accelerators (2.80 KB, application/octet-stream)
2009-08-04 22:31 CEST , Dr. David Alan Gilbert
no flags
updated menu accelerators patch (3.56 KB, patch)
2010-07-17 00:37 CEST , Dr. David Alan Gilbert
no flags
Patch to add more accelerators to the window menu (4.04 KB, patch)
2015-04-29 17:14 CEST , Dr. David Alan Gilbert
no flags

Additional information