summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
AgeCommit message (Collapse)Author
2017-10-20Move keymap as an implementation detail of the normal mode keysMaxime Coste
Only expose a free function that tries to get the NormalCmd from a key.
2017-09-28Distinguish between modes being disabled temporarily and definitelyMaxime Coste
That way, insert mode knows when it can restore selections/avoid eol instead of (wrongly) doing it in the destructor that ends up running unpredictibly (as the mode is kept alive during its on_key call, even though it can happen that it is not the active mode anymore at the end of that call). Fixes #1580
2017-09-27Display selections count in insert mode the same it's displayed in normal modeDelapouite
2017-09-21Use <esc> to exit on-key modesOlivier Perret
2017-09-12Hide info box and eventual status message after handling a mouse eventMaxime Coste
Fixes #1566
2017-08-29avoid literal eol in status lines, replace them with another symbolMaxime Coste
2017-08-16Do not consider the 8th bit to mean Alt on keys that are mouse eventsMaxime Coste
Fix handling of mouse events for columns 128 to 223, we are still limited by ncurses for columns > 223. Fixes #1532
2017-07-23Merge remote-tracking branch 'Delapouite/main_index'Maxime Coste
2017-07-19Detect overflow using a long long for the computation result.Maxime Coste
Closes #1306
2017-07-16Tolerate that the cursor might not be visibleMaxime Coste
Sometimes, like if the window is not high enough, we might not be able to display any buffer lines, hence not have the cursor visible. Fixes #1502
2017-07-12Add main selection index in mode_infoDelapouite
2017-07-08Merge remote-tracking branch 'Delapouite/stars-less'Maxime Coste
2017-07-07Formatting fixesMaxime Coste
2017-07-06Make register and completion autoinfo lists uniform with all the other onesDelapouite
2017-06-29Merge remote-tracking branch 'danr/Expose-last-entered-command-in-register'Maxime Coste
2017-06-27Do not allow repeating last insert when we are not in normal modeMaxime Coste
<a-;>. is not accepted anymore. Note that <a-;> are not repeatable currently anyway (That could be fixed, athough not trivial). Fixes #1469
2017-06-25Remember count when repeating last insertMaxime Coste
Fixes #1465
2017-06-23Merge remote-tracking branch 'nuao/autoshowcompl_opt'Maxime Coste
2017-06-23Do not set idle timers when running in a transient contextMaxime Coste
2017-06-17Use user-supplied autoshowcompl option's value.nuao
2017-06-16Hide info/menu when they are anchored to an invisible buffer coordMaxime Coste
Fixes #1444
2017-06-15Fix crash recently introduced when deleting at buffer start in insert modeMaxime Coste
2017-06-09More explicit and simpler codeMaxime Coste
2017-06-08Disable idle timers on all transient contextsMaxime Coste
2017-06-07Only trigger PromptEvent::Change on idleMaxime Coste
There is no need to trigger that event on every keystroke, we can trigger it only when we hit the idle timeout, avoiding computations when input keys are pasted.
2017-05-27Parse meta as 8 bit in Normal mode to fix the terminals using thatMaxime Coste
The solution is a bit hackish, as we only consider the 8th bit to mean alt in normal mode, because its unlikely accentuated characters are going to be mapped there. It fixes using Alt on xterm, and probably on iterm2 as well (not requiring the meta-sends-esc config change anymore)
2017-05-26Use a ScopedSetBool instead of manual set/unset for ↵Maxime Coste
InputModes::Normal::m_in_on_key
2017-05-25Expose last entered command in register :Dan Rosén
2017-05-22Do not avoid eol in insert mode vertical movementMaxime Coste
2017-05-22Fix bug where idle timers of disabled modes were still runMaxime Coste
2017-05-17small code cleanupsMaxime Coste
2017-05-07Respect tabstop in Buffer::offset_coordMaxime Coste
2017-05-07Do not use any display information to determine where the cursor movesMaxime Coste
2017-04-12Place hardware terminal cursor at the current main cursor/prompt cursor positionMaxime Coste
Fixes #1318 Also fixes https://gitlab.com/gnachman/iterm2/issues/5408
2017-04-03Change prompt completion to only update when idleMaxime Coste
2017-03-30Add an InsertDelete hookMaxime Coste
2017-03-16Use a HashMap to store the normal mode keymapMaxime Coste
2017-03-16Fixes some clang-tidy warning and add a few missing meta.hh includeMaxime Coste
2017-03-07Replace uses of UnorderedMap with HashMapMaxime Coste
2017-03-03Add docstring support for mappings, and use them in autoinfoMaxime Coste
Fixes #105 Fixes #1100 Closes #1165
2017-02-14Make numeric registers setableMaxime Coste
Fixes #1214
2017-02-01Also execute prompt callback when just startingMaxime Coste
incsearch will immediatly display the result of using an empty string (reusing the search register content). Fixes #1174
2017-01-25Only restore cursor position after an append if we still have cursor > anchorMaxime Coste
Fixes #1158
2017-01-13Fix capture group handlingMaxime Coste
Fixes #1129
2017-01-10Fix: add missing pipe register in infoDelapouite
2017-01-08Small code cleanupsMaxime Coste
2017-01-08Apply clang-tidy modernize to the codebaseMaxime Coste
2016-12-27Change the message when entering insert mode while readonlyKevin Ballard
2016-12-21Display a message when entering insert mode while readonlyMaxime Coste
Fixes #1050
2016-12-15Fix reentrancy in InputeModes::Normal::on_keyMaxime Coste