summaryrefslogtreecommitdiff
path: root/src/normal.cc
AgeCommit message (Collapse)Author
2017-12-06Remove Vector returning split functions, use range adaptorMaxime Coste
Do not allocate temporary vectors to store splitted data, use the 'split' range adaptor along with transform(unescape) to provide the same feature with less allocations.
2017-12-03Text-Objects: Use regex to select surroundingsMaxime Coste
Fixes #925
2017-12-01Regex: Support forward and backward matching code in the same CompiledRegexMaxime Coste
No need to have two separate regexes to handle forward and backward matching, just passing RegexCompileFlags::Backward will add support for backward matching to the regex. For backward only regex, pass RegexCompileFlags::NoForward as well to disable generation of forward matching code.
2017-11-22Remove unused lambda capturesfsub
This eliminates some warnings emitted by clang++.
2017-11-13Normal: add <a-S> to select first and last char of selectionMaxime Coste
Fixes #550
2017-11-13Add count support to jumps (<c-o> and <c-i>). Add jumps testsDelapouite
2017-11-08Fix pipe logic in the case where the selections were accessed in the cmdlineMaxime Coste
When using an env var that needed the selections in the pipe command line, say $kak_selection, the selection update code would run, modifying the selections to adapt to eventual changes. But the rest of the pipe logic was assuming the selections would not change, leading to bugs.
2017-11-04src: Don't save whitespace-led commands in the `:` registerFrank LENORMAND
2017-11-01Make use of custom regex backward searching support for reverse searchMaxime Coste
2017-11-01Regex: switch to custom impl, use boost for checkingMaxime Coste
2017-10-31Prompt: display the fallback text everytime the prompt is emptyMaxime Coste
2017-10-30Do not auto apply the fallback regex when in regex promptsMaxime Coste
Fixes #1653
2017-10-28Display the fallback value in promptsMaxime Coste
Fixes #1654
2017-10-20Disable constexpr keymap as it breaks compilation with gcc 5Maxime Coste
2017-10-20Make the normal mode keymap a compile time hash mapMaxime Coste
This hash map is now fully constexpr, and ends up stored in the read only data segment instead of being recomputed at each startup.
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-10-04Docs: add missing normal keys <c-[bfud]>Delapouite
2017-09-28Merge remote-tracking branch 'Delapouite/runtime-error'Maxime Coste
2017-09-27Convert status info into proper runtime_errorsDelapouite
2017-09-27Add status info when navigating through jumplist (<c-o>, <c-i>)Delapouite
2017-09-23Merge remote-tracking branch 'Delapouite/next-history-id'Maxime Coste
2017-09-23Small code style tweakMaxime Coste
2017-09-23Merge remote-tracking branch 'occivink/quit-on-esc'Maxime Coste
2017-09-21Add count support for indent / deindentDelapouite
2017-09-21Use <esc> to exit on-key modesOlivier Perret
2017-09-20Add max_history_id in status printed with <a-u> and <a-U>Delapouite
2017-09-18Merge remote-tracking branch 'Delapouite/custom-text-object'Maxime Coste
2017-09-17Add count support for scroll keys (PageUp, PageDown, C-bfud)Delapouite
2017-08-29Rename containers.hh to ranges.hh (and Container to Range)Maxime Coste
2017-08-29avoid literal eol in status lines, replace them with another symbolMaxime Coste
2017-08-18Remove now trivial Selection::merge_with methodMaxime Coste
2017-07-19Fix main selection handling in keep pipe ($)Maxime Coste
$kak_reg_hash will properly contain the current selection index when executing the shell command, fixing its use. Fixes #1503
2017-07-14`|` now applies the diff of the modification instead of plain replaceMaxime Coste
Fixes #312 Fixes #1501
2017-07-13Fix undo handling in <a-o>/<a-O>Maxime Coste
2017-07-11Alternative, and hopefully safer implementation of <a-o>/<a-O>Maxime Coste
Fixes #1495
2017-07-11Add <a-c> and <a-d> for changing/deleting without yankingMaxime Coste
As asked for in #1175
2017-07-11Add <a-o> and <a-O> to add lines below/above selectionsMaxime Coste
Fixes #1480
2017-07-09Docs: add missing <a-R> key and fix info messageDelapouite
2017-07-05Refine info titles to distinguish f/t (select) and F/T (extend)Delapouite
2017-06-29Code style tweakMaxime Coste
2017-06-29Validating an empty command in prompt reruns the last commandMaxime Coste
This is more consistent with other prompts like regexes or shells, and has proven useful from time to time.
2017-06-29Merge remote-tracking branch 'danr/Expose-last-entered-command-in-register'Maxime Coste
2017-06-26Pass a context instead of just the buffer to selector functionsMaxime Coste
2017-06-16Support hitting escape to cancel a selection combine operationMaxime Coste
Fixes #1443
2017-06-14Change custom text object desc trigger from ':' to 'c' - Fix #1362Delapouite
2017-06-08Merge remote-tracking branch 'Delapouite/rotate-forward'Maxime Coste
2017-06-07Clarify rotation direction between <'> and <a-'> in info helpDelapouite
2017-06-07Merge remote-tracking branch 'Delapouite/underscore'Maxime Coste
2017-06-06Add underscore char as a valid punctuation for text-object pairsDelapouite
2017-06-06Remember previous NormalParams::count in view-lock modeDelapouite