summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-03-20Fix remove of highlighters with trailing / in their nameMaxime Coste
Fixes #1914
2018-03-20Throw when trying to remove a child highlighter that does not existsMaxime Coste
2018-03-20Regex: Only allow SyntaxCharacter and - to be escaped in a character classMaxime Coste
Letting any character to be escaped is error prone as it looks like \l could mean [:lower:] (as it used to with boost) when it only means literal l. Fix the haskell.kak file as well. Fixes #1945
2018-03-19Fix real_path againMaxime Coste
2018-03-19Fix introduced bug in real_pathMaxime Coste
2018-03-19Tweak option documentation helper to support -addMaxime Coste
Fixes #1939
2018-03-19NCursesUI: refactor info_show codeMaxime Coste
Show MenuDoc info on the left of the menu if necessary. Cleanup the code.
2018-03-18Refactor read_fd '\r' removal logicMaxime Coste
2018-03-18Fix implementation of real_path to handle non-existing directories in /Maxime Coste
Fixes #1937
2018-03-18Fix crash on expanding command line stringsMaxime Coste
2018-03-16RangesHighlighter: a range that goes up to buffer end is not validMaxime Coste
2018-03-15RankedMatch: Do not compare word boundary match count on single word matchesMaxime Coste
As the computation of word boundary matches is separate from the actual subsequence matching, we sometimes have candidate that match as a single word while still having multiple word boundary matches. For example, with query "expresins", candidate "expressionism's" will match as single word ("expressins" is a subsequence of "expressionism"), and will have two word boundaries match (it does match the last "s", which is considered as a separate word). This should not be taken into account when compared against candidate "expresions", which should be considered a better match. Fixes #1925
2018-03-13NCursesUI: Show full menu rather than triming to respect anchorMaxime Coste
2018-03-13ranges: Add transform overload taking directly a pointer to memberMaxime Coste
This overload will forward to the general transform implementation using std::mem_fn to generate a callable.
2018-03-13NCursesUI: Use accumulate algorithm to gather the longest element in menuMaxime Coste
2018-03-13Do not jump to buffer start on `g.` with no previous modificationsMaxime Coste
2018-03-11Handle hyphens in user-mode namesDelapouite
Fix #1921
2018-03-11Detect infinit recursion in reference highlightingMaxime Coste
Reference highlighters allow for potential mutual recursion between highlighters. This is usually fine, but if the recursion happens on the same buffer range, it means we will recurse infinitely. Fixes #1920
2018-03-10Move WORD text object to <a-w>Maxime Coste
It improves consistency and it looked like there was support for that change on github. Fixes #1861
2018-03-10Merge remote-tracking branch 'Delapouite/hls'Maxime Coste
2018-03-09Detect no-op replaces and do not act on themMaxime Coste
This avoids recording no-op undo groups.
2018-03-06Docs: extend explanations about line_flags, ranges and replace-rangesDelapouite
2018-03-05Support changing autoreload option directly from the reload messageMaxime Coste
Pressing Y or N will set the buffer (or window, if it is set at that scope) autoreload option to the corresponding value, avoiding infinite loops where a file getting constantly modified prevents the user from using Kakoune.
2018-03-05Add a GlobalSetOption hookMaxime Coste
2018-03-05Merge remote-tracking branch 'Delapouite/scratch'Maxime Coste
2018-03-05Regex: take the full subject range as a parameterMaxime Coste
To allow more general look arounds out of the actual search range, pass a second range (the actual subject). This allows us to remove various flags such as PrevAvailable or NotBeginOfSubject, which are now easy to check from the subject range. Fixes #1902
2018-03-05Regex: Remove helper functions from regex_impl.hhMaxime Coste
They were close duplicates from the ones in regex.hh and not used anywhere else.
2018-03-05Merge remote-tracking branch 'fsub/unused-lambda-capture'Maxime Coste
2018-03-04Remove SelectionList::update_timestamp()Maxime Coste
This single line member function was only used once, inline it directly.
2018-03-04Insert: Do not move end of line on open line (o/O)Maxime Coste
Change the logic of open line commands so that if a selection lies on the end of line character of the line from which we open a new line, that selection does not move. If we have two clients, A and B, with B's cursor on the eol character of line L, and A hits `o` while on line L, B's cursor should stay on the same (logical) line. Previous behaviour would make B's cursor jump on the newly inserted line.
2018-03-03Remove unused lambda capturefsub
2018-03-02Remove <scope> from user-modes commandsDelapouite
2018-03-01Update status message with new breaking changesMaxime Coste
2018-03-01Change x behaviour to select full line first even if on EOLMaxime Coste
x will always first select current line fully, and only then select next line.
2018-03-01Reintroduce complex selection merging behaviourMaxime Coste
Selection merging is necessary if we want X to work nicely when we are on EOL (jumping to next line is as nice as it could be, and we are much more often on EOL nowadays).
2018-03-01Merge remote-tracking branch 'Delapouite/user-mode-lock'Maxime Coste
2018-02-28InsertCompleter: refactor line completer implementationMaxime Coste
2018-02-28Merge remote-tracking branch 'Delapouite/line_complete'Maxime Coste
2018-02-28Commands: Refactor generate_switches_docMaxime Coste
2018-02-28Ranges: Fix copiability of some range view iteratorsMaxime Coste
Some iterators were refering to to their view with a const ref, this was making them non-copiable. Change those const ref into const pointers in order to fix that.
2018-02-28Merge remote-tracking branch 'aver-d/option_display'Maxime Coste
2018-02-28Prompt: update completions after inserting register or raw keMaxime Coste
2018-02-28RefPtr: use inconditional noexcept specification on destructorMaxime Coste
The conditional specification could end up being recursive, assume destructors must be (as is the C++ default) noexcept.
2018-02-27Add -lock switch to enter-user-mode commandDelapouite
2018-02-27Add support for line completion in all buffersDelapouite
- via completers option with line=all vs line=buffer - via <c-x> L mapping
2018-02-27Add [scratch] indicator in context infoDelapouite
2018-02-26Fix out of bound read in ParameterParser::get_switchMaxime Coste
The empty string case was not correctly handled. Fixes #1883
2018-02-26Merge remote-tracking branch 'Delapouite/sels'Maxime Coste
2018-02-25Ease reading of command-line optionsaver-d
This change displays command-line options in grid format. Each parameter is indented with two spaces and then padded to maintain vertical alignment of each description. I think the visual spacing makes the options much easier to read. This is particularly important for people new to Kakoune who use `-help` as a way to become familiar with the program.
2018-02-25RefPtr: Add some more noexcept specificationsMaxime Coste