summaryrefslogtreecommitdiff
path: root/alot/ui.py
Commit message (Collapse)AuthorAge
...
* cmd instanciation from within a callbackPatrick Totzke2013-10-30
| | | | | | | | | | | | | | This ensures that calls to commands.commandfactory are done just before these are applied: In command sequences, some previous cmd might have changed the mode, which in turn influences the commandfactory as some commandstrings are interpreted differently in different modes. This patch ensures that one command has completed before a next one gets instantiated. Also, this adds a global error handler for command sequence deferreds. cf issue #629
* re-raise CommandCanceled failuresPatrick Totzke2013-10-30
|
* hand Command instance to pre/post hooksPatrick Totzke2013-10-30
| | | | | | | When a pre or post command hook is called it gets the Command instance it belongs to as keyword parameter "cmd". This allows e.g. the post hook of TagCommands to access the query string used in this particular instance.
* docstrings for ui.appli_commandlinePatrick Totzke2013-10-30
|
* integrate sequencing of commands into ui.apply_commandlinePatrick Totzke2013-10-30
| | | | and obsolete commands.globals.CommandSequenceCommand
* canceling a command in a sequence will now stop the subsequent commands from ↵Yann Rouillard2013-10-30
| | | | | | | | being run Conflicts: alot/commands/globals.py alot/ui.py
* ui: remove ui update() from each keypressSiim Põder2013-07-07
| | | | update() call causes several hundred ms delay for each keypress. Removing it causes no immediately observable differences of behaviour.
* pep8&pyflakes fixesPatrick Totzke2013-07-07
| | | | mostly automatically fixed
* handle CompletionErrorsPatrick Totzke2013-07-07
| | | | | | | | this makes the CompleteEdit widget handle errors raised during completions by passing them on to a 'on_error' callback given to its constructor. This is then used in UI.prompt.
* fix: fix Command mechanism for move cmds in non-locked stateSebastian Jeltsch2013-05-26
|
* repeat complete command linesSebastian Jeltsch2013-05-26
| | | | furthermore, the special treatment of individual commands has been removed
* change cmd repeatability to be command prop and make move cmds non-repeatableSebastian Jeltsch2013-05-26
|
* revert to """ notation for UI attributes docsPatrick Totzke2013-05-26
|
* restore sphinx documentationSebastian Jeltsch2013-04-26
|
* change static members of UI class to membersSebastian Jeltsch2013-04-26
|
* pep8/pyflakes fixesPatrick Totzke2013-03-16
|
* fix #577Patrick Totzke2013-03-06
|
* Merge branch '0.3.4-feature-hooks-563' into 0.3.4-feature-urwidtreesPatrick Totzke2013-03-03
|\
| * allow asynchronous pre/post command hooksPatrick Totzke2013-02-20
| | | | | | | | | | | | | | also, with this a pre-command-hook can cancel the further execution of the command by raising an Exception. cf. issue #395
| * re-introduce redraw parm to UI.buffer_closePatrick Totzke2013-02-19
| | | | | | | | .. which got lost during a previous rebase
| * fix: forgot buf parameter for post_buffer_open hookPatrick Totzke2013-02-19
| |
| * add hooks [pre|post]_buffer_[open|close|focus]Patrick Totzke2013-02-19
| | | | | | | | cf issue # 563
* | Merge branch '0.3.4-feature-repeat-534' into 0.3.4-feature-urwidtreesPatrick Totzke2013-03-03
|\ \
| * | remember and re-interpret command*line* for repeatPatrick Totzke2013-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | ... commands. At some point we might want to add a command history for an undo feature. For this I'd keep a history of the applied Command objects and in reverse order call its .undo() method. For this to work we need one Command object for each application. If however we re-use a Command object using 'repeat' we'd most certainly lose local information on how to undo the first application..
| * | add repeat command to make the same action againChristopher Schwardt2013-02-19
| |/ | | | | | | | | | | | | | | | | | | | | The UI object now saves the last executed command (except for RepeatCommands themselves and Promt- and FlushCommands, since they are not user invoked, intended actions). The RepeatCommand then applies the stored command again. This is comparable to the . in vim, so I would recommend you add this line to your config ;) . = repeat
* | fix missing return statementPatrick Totzke2013-03-03
| | | | | | | | (got lost during rebase)
* | immediate move commandsPatrick Totzke2013-03-03
| | | | | | | | | | this directly passes on move up/down/etc commands and omits creating a MoveCommand object for speed's sake
* | postpone binding if candidates with same prefix existPatrick Totzke2013-03-03
| | | | | | | | | | | | | | | | | | | | This ensures that commandlines that are bound to a key are not fired right away but wait a little (config option 'input_timeout') in case there are other bindings with this key as prefix. This allows to bind for instance 'g g' to move up while at the same time one can bind 'g' to global replies. Without this change, the 'g' binding would be fired right away.
* | re-interpret single move commandlines directlyPatrick Totzke2013-03-03
|/ | | | | instead of creating a MoveCommand instance. These will still be created for 'move's that are part of longer command chains
* Implement move commands in globals.py. Add --redraw for bclose.William Erik Baxter2013-02-19
|
* empty input queue as soon asPatrick Totzke2013-01-11
| | | | | .. the current value cannot be prefix of any bound keysequence. fixes #547
* prevent multiple 'index locked' notificationsPatrick Totzke2012-12-16
| | | | | | by keeping a "was locked" flag in the UI. Once changes are successfully flushed, we use a single "all clear" notification.
* make sure ui.mode is defined initiallyPatrick Totzke2012-09-09
| | | | | this fixes an issue with exiting buffer-less ui: this happens only when the initial command fails for some reason.
* doc: docstringsPatrick Totzke2012-09-05
|
* fix clear the input queue before cmd applicationPatrick Totzke2012-09-03
|
* alow command sequences also in bindingsPatrick Totzke2012-09-03
|
* add UI.apply_commandlinePatrick Totzke2012-09-03
| | | | | | that reads a cmdline string, possibly splits it in separate subcommand strings and fires the (sequence of) Command object(s).
* add CommandSequenceCommandPatrick Totzke2012-09-03
| | | | a meta command that allows to chain commands
* cleanup: pep8/pyflakes fixesPatrick Totzke2012-09-01
|
* keep only one alarm callback activePatrick Totzke2012-08-20
| | | | | to clear input queue. closes #501
* indicate input_queue in statusbar by defaultPatrick Totzke2012-08-19
|
* allow to bind mutiple keypressesPatrick Totzke2012-08-19
| | | | | | | This queues key presses in UI for a while in case they don't match a binding. This way one can for example bind 'ctrl x ctrl q' = exit
* clean up UI's class variablesPatrick Totzke2012-08-19
|
* rename UI.mainframe_themed to root_widgetPatrick Totzke2012-08-19
|
* doc docstrings for UIPatrick Totzke2012-08-19
|
* cleanup input handling in UIPatrick Totzke2012-08-19
| | | | | | | | | | This moves the Command creation/application to UI.input_filter. This function gets directly triggered by the mainloop. We hardcode "esc" and "enter" to widgets.globals.ChoiceWidget and CompleteEdit and thus ditch the abstraction to "cancel" and "select" keypresses. This obsolets the extra InputWrap widget in UI and the global SendKeypressCommand and generally makes UI less messy.
* WIPPatrick Totzke2012-08-19
|
* fix: theming issue after bindings helpPatrick Totzke2012-08-17
|
* fix theming in help notificationsPatrick Totzke2012-08-15
|
* cleanup: split widgets.py and pep8/pyflakes fixesPatrick Totzke2012-08-10
|