summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
AgeCommit message (Collapse)Author
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.
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