summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
AgeCommit message (Collapse)Author
2015-06-12Add <a-;> in insert mode to execute a single normal mode commandMaxime Coste
2015-06-04on_enabled might change mode, so assert Normal mode beforeMaxime Coste
2015-06-03Get rid of the mode trash, delete mode directly when leaving on_keyMaxime Coste
2015-06-02InputHandler now uses a stack for active modesMaxime Coste
instead of having a single mode enabled, modes can be pushed/poped, with the top of the stack being the active mode.
2015-06-01Port even more code to use format functionMaxime Coste
2015-04-25Move Colors enum class as NamedColor enum inside Color structMaxime Coste
2015-04-19Avoid unneeded update of selections when we are going to overwrite themMaxime Coste
2015-04-15Remove is_blank, which is identical to is_horizontal_blankMaxime Coste
2015-03-27Add support for Home/End keys in normal and insert modeMaxime Coste
Fixes #260
2015-03-22Add support for mouse wheelMaxime Coste
2015-03-22Experimental support for mouseMaxime Coste
2015-03-22Check modifiers before inserting codepoints in the line editorMaxime Coste
2015-03-15Store fake keystrokes when selecting an insert completion candidateMaxime Coste
Instead of storing the real 'select next completion' keystroke, generate fake backspace/delete/char keystrokes so that replay of the insert will insert the exact same text. Fixes #135
2015-03-14Minor code cleanupMaxime Coste
2015-03-12Minor cleanupMaxime Coste
2015-03-10Refactor String, use a common StringOps interface, hide std::stringMaxime Coste
2015-03-09ArrayView content is not const anymoreMaxime Coste
As in upcoming std c++ array_view, ArrayView<T> points to mutable data, use ArrayView<const T> or alias ConstArrayView<T> for const data.
2015-03-08Use a sorted array for keymap rather than an unordered mapMaxime Coste
with ~100 entry, a binary search finds in < 7 step, unordered map is overkill.
2015-03-04Reactivate direct file change check on entering normal modeMaxime Coste
2015-02-13Add <a-h>, <a-l>, <a-x> and <a-d> bindings to line editorMaxime Coste
<a-h> : move cursor left <a-l> : move cursor right <a-x> : delete char before cursor <a-d> : delete char under cursor
2015-02-12Cleanup and refactor externally modified buffer reloadingMaxime Coste
* Correctly hide the reload dialog in every client. * Correctly handle buffer being deleted.
2015-01-28Add history memory domainMaxime Coste
2015-01-12replace all std::vector with VectorMaxime Coste
2015-01-06Rename memoryview to ArrayViewMaxime Coste
2014-12-22Remove useless codeMaxime Coste
2014-12-19Restore some special behaviours, I missed them in interactive mode.Maxime Coste
2014-12-18Do not register timers for transient input handlersMaxime Coste
2014-12-16Rework hashing, use a more extensible framework similar to n3876 proposalMaxime Coste
std::hash specialization is a pain to work with, stop using that, and just specialize a 'size_t hash_value(const T&)' free function.
2014-12-11Do not avoid eol on escapeMaxime Coste
2014-12-05Disable history writing when running hooksMaxime Coste
2014-12-05Consolidate constext disablable feature in a 'Disableable' helperMaxime Coste
2014-11-28Support selecting yank/paste register with "Maxime Coste
2014-11-24Display selection count in insert mode lineMaxime Coste
2014-11-22Do not merge overlapping selections in InputMode::ReplaceMaxime Coste
Fixes #237
2014-11-21Do not record keys that were not user generatedMaxime Coste
2014-11-12Fix case where a context ends up locked in no-hooks modeMaxime Coste
2014-11-11Reduce idle timeout to 50 millisecondsMaxime Coste
2014-11-08For {Menu,Info}Style::Prompt, choose the anchor directly in ncurses codeMaxime Coste
2014-11-08Add a MenuDoc style for info box, that will place it next to the menuMaxime Coste
2014-11-01move more parameters from const String& to StringViewMaxime Coste
2014-10-20Port more code to StringView instead of const String&Maxime Coste
2014-10-13Refactor regex uses, do not reference boost except in regex.hhMaxime Coste
2014-09-23Add support for mapping keys in goto/view commandsMaxime Coste
2014-09-10Add some color to mode specific mode line infoMaxime Coste
2014-08-19Add support for 'c-o' in prompt and insert to hide the completion menuMaxime Coste
Fixes #229
2014-08-14Add support for <c-w> <c-b> and <c-e> for word moves in the line editorMaxime Coste
This might go away later if we find a better way of handling line edition, but seems like a good compromise for now. Fixes #168
2014-08-07Fix buffer modification checkMaxime Coste
It used to grab the next key, because the normal mode reactivation when executing the on_next_key would trigger a timestamp check again.
2014-07-27In non interactive interactive mode, disable user key mappingsMaxime Coste
exec and eval now accepts a -with-maps to use them. But by default they are disabled, so that all the indent scripts work even if you remap basic keys. Fixes #217
2014-07-25Display a [no-hooks] tag in the mode line when hooks are disabledMaxime Coste
2014-07-24Disable hooks on a per context basis, and propagate that to Insert modeMaxime Coste
using \ before entering insert mode will disable hooks during the whole insert session rather than only the entering phase. That gives a nice way of pasting text into kakoune.