diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2013-03-02 23:15:04 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-03-03 13:50:19 +0000 |
commit | 60fc46c2e5d5d7ae8d447a86abea0cde7197408a (patch) | |
tree | d4e6b222969ce252e95b5e8647e9256527c8eba8 | |
parent | 21f2f15eb4f5c889fb702c4a5994d2595496b102 (diff) |
immediate move commands
this directly passes on move up/down/etc
commands and omits creating a MoveCommand object for speed's sake
-rw-r--r-- | alot/ui.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -121,7 +121,9 @@ class UI(object): clear() logging.debug("cmdline: '%s'" % cmdline) # move keys are always passed - if cmdline.startswith('move ') or not self._locked: + if cmdline in ['move up', 'move down', 'move page up', 'move page down']: + return [cmdline[5:]] + elif not self._locked: try: self.apply_commandline(cmdline) except CommandParseError, e: |