summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
AgeCommit message (Collapse)Author
2015-12-12Fix input mode keep alive handling, use a refcount for input modesMaxime Coste
Fixes #528
2015-11-30Run InsertIdle after reseting completer to permit InsertIdle to display an ↵Maxime Coste
info box
2015-11-26Remind user hooks disable when replaying last insertMaxime Coste
Fixes #495
2015-11-25Reject non ascii register namesMaxime Coste
Fixes #493
2015-11-24Add StatusLine{Mode,Info,Value} built in facesMaxime Coste
Fixes #491
2015-11-21Fix onkey autoinfoMaxime Coste
2015-11-18Change autoinfo option to be a flags option, document flags optionsMaxime Coste
Support the value1|value2|value3 syntax for flag options.
2015-11-13Support <c-v> to insert raw value in insert/prompt modeMaxime Coste
2015-11-10Disable history when executing mapsMaxime Coste
Fixes #476
2015-11-10Document default registersMaxime Coste
2015-11-09Refactor Normal input mode on_key methodMaxime Coste
2015-10-28Fix mouse scrolling up stopping at line 2Maxime Coste
Fixes #448
2015-10-13Fix file change detection not working in certain casesMaxime Coste
Files opened from the command line where not handled correctly.
2015-10-10Tweak file change checking timeout handlingMaxime Coste
2015-10-09When displaying a prompt content with line break char, replace them with ↵Maxime Coste
their unicode control picture
2015-10-05Use DisplayLine for menu choicesMaxime Coste
2015-09-20Fix prompt history handling when pressing the down keyMaxime Coste
2015-09-19Be tolerant to modifiers in <c-x> bindingsMaxime Coste
<c-x><c-f> should be accepted, as it is cumbersome to unpress control before hitting f in that case.
2015-08-31Detect normal mode count overflowMaxime Coste
2015-08-23Rework resize handlingMaxime Coste
Fixes #383
2015-08-20Fix reentrency in Normal::handle_keyMaxime Coste
2015-08-19Default register is not handled by the Normal input mode.Maxime Coste
Normal input mode will just pass 0 as the reg if it was not specified by the user, its yank/paste functions that should determine 0 means use '"' register.
2015-08-18Rename Disableable to more general NestedBoolMaxime Coste
A NestedBool can be set multiple times, and will be considered false only when unset the same number.
2015-08-18Cleanup key to codepoint conversionMaxime Coste
Fixes #378 Fixes #365
2015-08-16Cleanup mouse handling a littleMaxime Coste
2015-08-14Clamp m_anchor in mouse handler, nothing garantees that it is still validMaxime Coste
Fixes #350
2015-08-11Display auto info on register insertion/explicit insert completionMaxime Coste
2015-08-11Handle registers insert/explicit completion with a nested on_next_key modeMaxime Coste
2015-08-08Use a struct rather than a std::pair for InputHandler::InsertionMaxime Coste
2015-07-25Tweak regex constructor callsMaxime Coste
2015-07-08Do not allow exiting insert mode while running InsertEnd hook.Maxime Coste
Fixes #311
2015-06-30commands starting with horizontal whitespace don't go into the historyxificurC
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.