summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-08-27Refactor whitespace highlighter into a structMaxime Coste
2018-08-26Try to complete command switches when an argument starts with '-'Maxime Coste
Fixes #1467
2018-08-24Use $USER if getpwuid failsMatt Peterson
2018-08-21src: Make sure buffers are saved regardless of the client countFrank LENORMAND
Due to a copy-paste mistake, the `:kill` command in a session with multiple clients was the equivalent of a force-kill (`:kill!`). This commit makes sure all buffers are saved before killing the session, unless the force flag is specified.
2018-08-21Support user-defined "str-to-str-map" options.Tim Allen
2018-08-18src: Improve error messages in RPC requests parsingFrank LENORMAND
Cast errors in RPC requests currently make the client quit with an error saying "uncaught exception", since `Kakoune::bad_value_cast` exceptions are not explicitely handled. This commit tries to catch ill-formatted requests and return a more human-friendly error message, without quitting the client.
2018-08-16Add a test case for -once hooks and code style tweaksMaxime Coste
2018-08-16Merge remote-tracking branch 'lenormf/fix-hook-once'Maxime Coste
2018-08-11src: Forbid empty `menu` entriesFrank LENORMAND
Empty entries in menus look weird, and don't serve any purpose. Empty commands are still allowed.
2018-08-09Add a -version switch to KakouneMaxime Coste
Closes #1035
2018-08-06src: Allow hooks to be run only onceFrank LENORMAND
This commit implements the -once flag on the `:hook` command, which automatically removes a hook after it was run, to avoid having to declare a group and remove it in the hook implementation. Closes #2277
2018-08-04An empty string is not a valid numberMaxime Coste
Fixes #2284
2018-08-02src: Stay in user-mode when an unmapped key is hit in lock-modeFrank LENORMAND
Closes #2278
2018-08-02src: Make `enter_user_mode()` tail-recursiveFrank LENORMAND
2018-07-31Add an assert to catch newpad returning a nullptrMaxime Coste
2018-07-30Avoid invalid access to OptionalMaxime Coste
If the UI is not ok, the exit status of the client might not be available. Return -1 in that case.
2018-07-30Fix compilation with gcc-5Maxime Coste
Gcc-5 seems to have a bug in its handling of template variable. Fixes #2267
2018-07-28Merge remote-tracking branch 'Delapouite/map-key-completer'Maxime Coste
2018-07-26Lazily iterate over words instead of gathering them in a vectorMaxime Coste
2018-07-26Fix shared string registry ref count statsMaxime Coste
2018-07-26Cleanup some trailing whitespaces and double semicolonMaxime Coste
2018-07-26Replace a few loops with rangesMaxime Coste
2018-07-26Make TransformView iterator's category match its underlying'sMaxime Coste
In particular, this make gathering a transformed range to a vector faster because we can use the random access nature of underlying iterator to get the size to allocate in the vector upfront.
2018-07-26Fix missing override specifierMaxime Coste
2018-07-25Obtain a new window for a client before releasing the current oneMaxime Coste
Creating a window potentially runs hooks, which themselves could trigger shell evaluation, which could handle urgent input events such as a resize, while waiting for the shell to finish. When that happens, the client had a temporarily null window as it had already released its own window. Fixes #2225
2018-07-25Micro optimize command parsing by avoiding utf8 decodingMaxime Coste
Balanced quoted parsing does not need to decode utf8, neither does unquoted word parsing. This improves startup time a bit, helping for issue #2152
2018-07-25Fix uninitialized context flagsMaxime Coste
2018-07-25Fix memory leak in regex executionMaxime Coste
2018-07-24Quote every option type but integral typesMaxime Coste
Opt-in quoting was a bad choice, lets default to opt-out with all integral types non quoted.
2018-07-23Merge remote-tracking branch 'lenormf/fix-C-skip-empty-lines'Maxime Coste
2018-07-23Support setting registers to empty listsMaxime Coste
Note that empty registers still act as-if they contained a single empty string. Fixes #2228
2018-07-23Restore SIGPIPE handler to default before spawning shellMaxime Coste
Fixes #2238
2018-07-22Merge remote-tracking branch 'lenormf/fix-face-name-format'Maxime Coste
2018-07-22Merge remote-tracking branch 'lenormf/fix-development-version'Maxime Coste
2018-07-22Opt-in types for quoting of option listsMaxime Coste
This avoid quoting ints in int-lists for example, as they do not risk containing whitespaces. Fixes #2223
2018-07-20src: Change the bullet point symbols in the version notesFrank LENORMAND
2018-07-20src: Don't print a number for the development versionFrank LENORMAND
2018-07-20src: Allow face names to contain an underscoreFrank LENORMAND
Closes #2229
2018-07-19src: Rename `auto_complete` to `autocomplete`Frank LENORMAND
Removing the underscore seems to make the option name more in line with the others (even though some do use a separator, e.g. `disabled_hooks`).
2018-07-19Re-introduce kill_session::exit_status, @lenormf was rightMaxime Coste
As discussed in #2186, in the end we need the exit status for the case where the local client exited first (the server forked to background) then another client trigger the kill command.
2018-07-19Merge remote-tracking branch 'lenormf/kill-clients-exit-code'Maxime Coste
2018-07-19Add a -debug '...' switch to Kakoune startup that sets the debug optionMaxime Coste
This gives an easy way to profile startup by running with -debug profile.
2018-07-19Fix RegexCompileFlags::Backwards having the same value as OptimizeMaxime Coste
That means every Optimized regex had the Backwards version compiled as well, which doubled the time it took to compile them and doubled the memory usage of regex. This should improve #2152
2018-07-19src: Propagate to clients the `kill` exit codeFrank LENORMAND
Fixes #2177
2018-07-19Merge remote-tracking branch 'icetan/buffer-reload-hook'Maxime Coste
2018-07-19Reduce confusion in add-highlighter docstringMaxime Coste
Closes #2222
2018-07-15Fix manual insert completion menu not getting automatically hiddenMaxime Coste
Fixes #2208
2018-07-15Add support for <a-;> in prompt modeMaxime Coste
Fixes #2096 Closes #2060
2018-07-15Change autoshowcompl to auto_complete with insert|prompt possible valuesMaxime Coste
2018-07-14Merge remote-tracking branch 'Screwtapello/fix-info-docstring'Maxime Coste