diff options
author | keis <keijser@gmail.com> | 2011-01-23 16:59:49 +0100 |
---|---|---|
committer | keis <keijser@gmail.com> | 2011-01-23 16:59:49 +0100 |
commit | f93cce44561b2475965c91419e72895bc368918e (patch) | |
tree | 0ef6146573b6c10bcff1691ac0f6c51c53a37b37 /examples/data/plugins/history.py | |
parent | 476b539f6c0513ce60bb3c2fafc64d6ca6f6899f (diff) |
disable keycmd reset on mode change
* makes history search work
* adds new KEYCMD_CLEAR event
* configure to clear keycmd on ESCAPE event
Diffstat (limited to 'examples/data/plugins/history.py')
-rw-r--r-- | examples/data/plugins/history.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/data/plugins/history.py b/examples/data/plugins/history.py index 78a94ce..2ab2ce3 100644 --- a/examples/data/plugins/history.py +++ b/examples/data/plugins/history.py @@ -107,6 +107,7 @@ def history_next(uzbl, _x): def history_search(uzbl, key): uzbl.history.search(key) + uzbl.send('event HISTORY_PREV') uzbl.logger.debug('SEARCH %s %s' % (key, uzbl.history)) end_messages = ('Look behind you, A three-headed monkey!', 'error #4: static from nylon underwear.', 'error #5: static from plastic slide rules.', 'error #6: global warming.', 'error #9: doppler effect.', 'error #16: somebody was calculating pi on the server.', 'error #19: floating point processor overflow.', 'error #21: POSIX compliance problem.', 'error #25: Decreasing electron flux.', 'error #26: first Saturday after first full moon in Winter.', 'error #64: CPU needs recalibration.', 'error #116: the real ttys became pseudo ttys and vice-versa.', 'error #229: wrong polarity of neutron flow.', 'error #330: quantum decoherence.', 'error #388: Bad user karma.', 'error #407: Route flapping at the NAP.', 'error #435: Internet shut down due to maintenance.') @@ -127,3 +128,5 @@ def init(uzbl): # plugin after hook def after(uzbl): uzbl.on_set('keycmd_prompt', lambda uzbl, k, v: uzbl.history.change_prompt(v)) + +# vi: set et ts=4: |