Commit Graph

222 Commits

Author SHA1 Message Date
Florian Bruhin
d42e71a5d5 Use QApplication (not QCoreApplication) to call activeWindow 2014-06-19 11:22:17 +02:00
Florian Bruhin
d65587128f Add vim modelines to all files. 2014-06-19 09:04:37 +02:00
Florian Bruhin
1fef2d02b9 Add an :all-objects command and __repr__s 2014-06-17 11:03:42 +02:00
Florian Bruhin
b905b44b07 Add a qenum_key debug method 2014-06-15 11:21:39 +02:00
Florian Bruhin
6660988a5b Don't evaluate hint keychains twice 2014-06-13 14:52:54 +02:00
Florian Bruhin
2f1cd43f9c Change lists to tuples for immutable values 2014-06-06 17:21:35 +02:00
Florian Bruhin
ec25821fae _foo.py file rename [2/2] 2014-06-03 15:01:57 +02:00
Florian Bruhin
fa1e03f56b _foo.py file rename [1/2] 2014-06-03 14:57:57 +02:00
Florian Bruhin
1e256699f8 Add topic-specific loggers 2014-05-23 16:11:55 +02:00
Florian Bruhin
7c351caf77 Don't warn on prompt keychain bindings 2014-05-20 17:50:09 +02:00
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
Florian Bruhin
e06583ade2 Use normal command to leave insert mode 2014-04-24 23:09:12 +02:00
Florian Bruhin
a1fd1537bd Remove the possibility to pass bindings to KeyParser init 2014-04-24 22:59:01 +02:00
Florian Bruhin
8cca182734 Split NormalKeyParser from CommandKeyParser 2014-04-24 22:56:55 +02:00
Florian Bruhin
0def82fe8c Fix lint 2014-04-24 22:49:06 +02:00
Florian Bruhin
581b715b42 Add __init__.py for keyinput 2014-04-24 22:41:01 +02:00
Florian Bruhin
7a6a605702 Unify KeyParsers again 2014-04-24 22:40:16 +02:00
Florian Bruhin
9ab8f42e20 s/commandmode/normalmode 2014-04-24 21:37:51 +02:00
Florian Bruhin
ea6a25714a Make eventFilter work when mode is None 2014-04-24 21:29:28 +02:00
Florian Bruhin
9320c813f7 Add set_cmd_text to MessageBridge 2014-04-24 21:28:24 +02:00
Florian Bruhin
0c15517352 s/<normal>/<leave>/ 2014-04-24 21:19:29 +02:00
Florian Bruhin
d2dc0b7ac5 Add KeyParser for normal mode 2014-04-24 21:12:55 +02:00
Florian Bruhin
c674d96cfe Reorganize input modules into keyinput subpackage 2014-04-24 21:03:45 +02:00