Florian Bruhin
cfd70e7821
Make yes/no questions work
2014-05-20 12:05:14 +02:00
Florian Bruhin
d901fe69e6
Rename some commands
2014-05-16 23:01:40 +02:00
Florian Bruhin
7eb19e2a1e
Start implementing message-timeout
2014-05-16 15:33:36 +02:00
Florian Bruhin
a045511962
Use exceptions for command errors
2014-05-14 18:00:40 +02:00
Florian Bruhin
876dcad28f
Fix some more escaped quotes
2014-05-13 22:18:59 +02:00
Florian Bruhin
c76819a8b0
Use loggings.warning instead of warn
2014-05-12 17:39:17 +02:00
Florian Bruhin
8ac215fa52
Clear old keybindings when rereading config.
2014-05-12 17:39:04 +02:00
Florian Bruhin
7b2961f23e
Fix some backslash-quotes
2014-05-12 15:58:09 +02:00
Florian Bruhin
edc9d0810c
Use QCoreApplication.instance()
2014-05-09 17:01:05 +02:00
Florian Bruhin
59a89d31fe
Add reasons why modes are entered/left
2014-05-09 16:03:46 +02:00
Florian Bruhin
db6ab7212f
Move cmd/count splitting out of _handle_single_key
2014-05-09 15:37:00 +02:00
Florian Bruhin
1785294a43
Fix some lint
2014-05-09 15:30:27 +02:00
Florian Bruhin
e09b34a744
Fix esc handling on BaseKeyParser
2014-05-09 15:28:07 +02:00
Florian Bruhin
d4672f324a
Improve modeman logging
2014-05-09 15:24:41 +02:00
Florian Bruhin
a76c7b56f1
Fix lingering PyQt exception
2014-05-07 18:00:38 +02:00
Florian Bruhin
68b134b4a9
Don't filter events if mainwindow is not focused
2014-05-07 17:20:01 +02:00
Florian Bruhin
625d369c33
Add check for modeman.mode property
2014-05-06 23:17:05 +02:00
Florian Bruhin
db20cf3701
Handle backspace correctly in HintKeyParser
2014-05-06 17:04:34 +02:00
Florian Bruhin
0f8926ca99
Remember last pressed key category
2014-05-06 17:04:06 +02:00
Florian Bruhin
68ff922525
Add logging to basekeyparser
2014-05-06 17:03:16 +02:00
Florian Bruhin
dd3ab0e336
Don't handle backspace as text keypress
2014-05-06 17:03:01 +02:00
Florian Bruhin
c8fd0937b0
Revert "Use global object dict for global objects"
...
This reverts commit bf2c7831c8
.
This was a bad idea as we need to access some of the main attributes
from commands via instance=...
2014-05-05 20:12:20 +02:00
Florian Bruhin
bf2c7831c8
Use global object dict for global objects
2014-05-05 19:12:47 +02:00
Florian Bruhin
667b255d01
Use QApplication for global singletons
2014-05-05 17:56:14 +02:00
Florian Bruhin
4ebe643ea6
Use simple enums for constants
2014-05-05 07:45:36 +02:00
Florian Bruhin
efc613811f
Implement numeric hints
2014-05-02 17:53:16 +02:00
Florian Bruhin
836a5e04a5
Allow empty keys in config
2014-05-02 06:59:46 +02:00
Florian Bruhin
53464dcbab
Fix ambigious keybinding detection.
...
Previously we only checked if the *last* char of the current keychain
matches the last char of a binding, which e.g. matched 'la' when we
pressed 'ka'.
Now we simply check if the binding *starts* with the keychain, which
also is easier to do.
2014-05-01 19:48:52 +02:00
Florian Bruhin
995a0d19cc
Clean up command exception handling
2014-04-30 10:43:40 +02:00
Florian Bruhin
8474bbdf6a
Rename and reorder config options
2014-04-27 21:21:14 +02:00
Florian Bruhin
9252ef94ca
Consistent string chars
2014-04-25 16:53:23 +02:00
Florian Bruhin
0a710ab18a
Herpderp, CRLF
2014-04-25 12:34:17 +02:00
Florian Bruhin
6e78f67a81
Rename keyinput stuff
2014-04-25 12:21:01 +02:00
Florian Bruhin
d4b35b6734
Rename {Command,Seach}Parser to *Manager
2014-04-25 12:04:11 +02:00
Florian Bruhin
f437bc25bf
Fix lint/cleanup
2014-04-25 11:21:00 +02:00
Florian Bruhin
7787a67c45
Add modes=[]/not_modes=[] to cmdutils.register
2014-04-25 10:10:58 +02:00
Florian Bruhin
b4b72f07b7
Remove FIXME which is in TODO
2014-04-25 09:22:27 +02:00
Florian Bruhin
c4be264c44
Improve logging in eventFilter
2014-04-25 09:22:01 +02:00
Florian Bruhin
8cba290dae
Update eventFilter to track releases
2014-04-25 09:20:19 +02:00
Florian Bruhin
5ee6b2adfa
Revert "Remove setting forward_unbound_keys."
...
This reverts commit d07e22bd91
.
2014-04-25 08:40:46 +02:00
Florian Bruhin
f50fda7f9a
Replace Backtab key by Tab
2014-04-25 08:40:07 +02:00
Florian Bruhin
3407f3131d
Register enter_mode command
2014-04-25 07:13:36 +02:00
Florian Bruhin
b4033ced8b
Add generic PassthroughKeyParser, remove InsertKeyParser
2014-04-25 07:09:12 +02:00
Florian Bruhin
d07e22bd91
Remove setting forward_unbound_keys.
...
It introduced a lot of unnecessary complexity (e.g. tracking KeyReleases
to their KeyPresses...) for little benefit.
2014-04-25 06:54:17 +02:00
Florian Bruhin
83f829ed93
Add more logging to eventFilter
2014-04-25 06:54:13 +02:00
Florian Bruhin
8f9d7542a6
Fix eventFilter logic to not handle same event multiple times
2014-04-25 06:22:01 +02:00
Florian Bruhin
84682f90fa
Log events in eventHandler
2014-04-25 00:10:07 +02:00
Florian Bruhin
926194849c
Use normal commands for hint mode
2014-04-24 23:47:02 +02:00
Florian Bruhin
540c134f06
Add keytypes to KeyParser.execute()
2014-04-24 23:46:37 +02:00
Florian Bruhin
5aaf3b3430
Add abstract execute() to KeyParser
2014-04-24 23:23:28 +02:00