flushaMeme / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

PATCHES: Trigger popup menu item by initial #299

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
These patches add an option to the AutoKey configuration menu to allow popup 
menu items to be triggered by a configurable initial, rather than the number in 
the list.  These patches apply to the GTK version of AutoKey, because I don't 
use the Qt version.

The attached tarball (.tar.xz) file contains .diff files relative to the 
AutoKey package root.  On my system, /usr/lib/python2.6/dist-packages/autokey/. 
 I began my development work on this with autokey-gtk 0.90.4, installed on 
Debian Wheezy using the .deb obtained from the Ubuntu PPA.

To use once installed and loaded, load the preferences window 
(Edit/Preferences), and the option under Popup Menu will appear.  It is labeled 
right now "Trigger menu item by first initial."  However, not only the first 
initial can be used.  If the name of a menu item contains an underscore ('_'), 
the next character will be used as that trigger.  This will replace the 
numbered list AutoKey normally would generate.  Don't like this feature?  
Uncheck "Trigger menu item by first initial," and it returns to its old 
behavior.

Some background:  I use Keyboard Maestro on my MacBook Pro issued to me for 
work.  This is a great program. I see AutoKey on Linux being even greater, 
however.  Anyway, Keyboard Maestro calls its popup menu for macros with the 
same trigger "conflict resolution" dialogs, and orders it by the name of the 
menu item.  Sadly, which key acts as the trigger for these is not configurable, 
and if KM decides to use the same key for two macros, it opens another conflict 
resolution dialog.  I was happy when the underscore worked for AutoKey.

This is my first serious foray into Python development.  Thanks for making 
AutoKey well laid out, making this task much easier!

Original issue reported on code.google.com by trey.bla...@gmail.com on 6 Feb 2015 at 9:15

Attachments: