Maxime Coste
2ff9fd8d92
Kakoune v2019.07.01
2019-07-01 22:07:29 +10:00
Maxime Coste
aff3e7d5b7
Merge remote-tracking branch 'lenormf/fix-2907-2'
2019-06-29 09:54:51 +10:00
Maxime Coste
eae92c9ae3
Merge remote-tracking branch 'codesoap/rename_moduleload'
2019-06-29 09:52:20 +10:00
Maxime Coste
e4d6bff5ec
Fix quoting of tuple options
...
Fixes #2990
2019-06-27 22:42:12 +10:00
codesoap
ca2741fe20
Rename ModuleLoad hook to ModuleLoaded
...
This clarifies, that the hook is run *after* the module is loaded.
2019-06-25 19:16:47 +02:00
Frank LENORMAND
4c7bc9179b
src: Enforce case sensitivity when parsing function keys
...
The `parse_keys()` function is case insensitive when parsing function keys,
while the `key_to_str()` function always returns a capitalized key
description.
When users hook on the lowercase name of a function key,
e.g. `NormalKey <f10>`, and later hit that same key in normal mode, the
`key_to_str()` will convert it to the uppercase description ("<F10>").
This results into a hook with a lowercase regex predicate being unsuccessfully
matched against an uppercase key description by the hook manager, which
works on a case sensitive basis.
One solution could be to uppercase all function key descriptions passed as
hook filter upon declaration, but detecting that is not trivial as the
filter can contain more than just the simple <f\d+> data, e.g.
---
hook global InsertKey '<(?<name>\w+)>' %{…}
---
Another simpler solution that this commit implements is to allow only <F\d+>
descriptions in `parse_keys()`, and hope users will know not to use the
lowercase notation when declaring hooks.
Fixes #2907
2019-06-24 18:17:49 +03:00
Maxime Coste
034e726068
Unify register saving/restoring to a Vector
...
The previous "optimized" history register logic was unfortunately
not restoring correctly as the order of entries in the history
register could have been mutated.
2019-06-24 19:08:48 +10:00
Maxime Coste
6e09f677f4
Fix silly typo
2019-06-23 18:11:16 +10:00
Maxime Coste
a2fce67e9d
Put -Og flag in CXXFLAGS, not CPPFLAGS
2019-06-23 16:30:42 +10:00
Maxime Coste
177f38afd1
Merge remote-tracking branch 'eraserhd/debug-optimizations'
2019-06-23 12:05:21 +10:00
Maxime Coste
469818c6f9
Tweak history restoring behaviour
2019-06-23 12:05:09 +10:00
Maxime Coste
e613292568
Use register to store prompt history
2019-06-23 12:05:09 +10:00
Maxime Coste
a9e778fcc7
Add support for echo -quoting (raw|kakoune|shell)
switch
2019-06-23 12:04:21 +10:00
Maxime Coste
4b7b5d077c
Make quoting opt-in by using $kak_quoted_...
2019-06-23 12:04:21 +10:00
Maxime Coste
8b2906a14d
Refactor option_to_string quoting support, introduce Quoting::Raw
2019-06-19 23:04:16 +10:00
Maxime Coste
125b1924ce
Move dropped free windoes to the window trash
2019-06-18 21:49:41 +10:00
Maxime Coste
5888e23e02
Do not add window pointing to deleted buffers in the free window list
...
Fixes #2975
2019-06-16 19:12:35 +10:00
Maxime Coste
984472f681
Merge remote-tracking branch 'lenormf/fix-2966'
2019-06-15 10:48:49 +10:00
Maxime Coste
adf77c3e1d
Merge remote-tracking branch 'eraserhd/fifo-fixes'
2019-06-15 10:45:55 +10:00
Frank LENORMAND
936c21da70
src: Make sure the iterator is inbound before decrementing it
...
Fixes #2966
2019-06-14 09:17:56 +03:00
Jason Felice
0642058b3e
Fix emission of BufReadFifo events
...
The hook parameter should not be adjusted for the prevention of
scrolling. Also, ensure that the last BufReadFifo is triggered if we
encounter an error or EOF after appending some data to the buffer.
Closes #2946
2019-06-11 10:11:28 -04:00
Maxime Coste
14fb71b16c
Refuse to overwrite an existing session socket
2019-06-11 20:13:03 +10:00
Maxime Coste
d2dac558e7
Add a gather overload that infer element type
2019-06-10 21:57:06 +10:00
Maxime Coste
a1758bfcb0
Merge remote-tracking branch 'eraserhd/minor-remote-fixes'
2019-06-04 19:06:56 +10:00
Jason Felice
b82cf38338
Refactor message writing
2019-05-29 09:50:00 -04:00
Maxime Coste
1ebea85e6f
Do not merge selections on backspace in insert mode
...
Fixes #2861
2019-05-29 23:12:04 +10:00
Maxime Coste
7efdbb456d
Null terminate gdb auto-load script
...
Fixes #2929
2019-05-29 22:40:16 +10:00
Maxime Coste
262ef9b4e3
Fix BufferedWriter triggering std::terminate on exception when writing
...
Fixes #2932
2019-05-29 20:28:06 +10:00
Maxime Coste
7de3ea786f
Fix trailing slash removal code with root directory
2019-05-29 20:14:42 +10:00
codesoap
a0e0229f20
Fix the man path for OpenBSD
2019-05-28 11:21:29 +02:00
codesoap
6788b3ae27
Avoid using gzips '-k' for compatibility
...
OpenBSD's gzip doesn't have '-k', but file redirection should work
everywhere.
2019-05-28 11:21:29 +02:00
Maxime Coste
a1f0bae53a
Do not try to send remaining data on a closed socket
...
Fixes #2906
2019-05-23 12:42:38 +10:00
Jason Felice
a527aea465
Add -Og for debug builds
...
On my system, some optimizations are on by default (NixOS), resulting in
variables being optimized out on debug builds. It *seems to be*
something about a "_FORTIFY_SOURCE" feature? In any case, `-Og` is
documented as "Optimize debugging experience".
2019-05-21 08:44:26 -04:00
Robert Melton
a5bc91d67e
Merge remote-tracking branch 'upstream/master' into path-improvements
2019-05-21 04:19:13 -04:00
Maxime Coste
3b3a69b2f5
Fix compilation on older gcc / clang
...
This was already fixed on the menu-completions branch but an previous
commit version was wrongly cherry-picked.
Fixes #2914
2019-05-21 13:22:02 +10:00
Robert Melton
a43313c6ce
Strip all trailing slashes in real_path and compact_path
2019-05-19 19:52:05 -04:00
Maxime Coste
c972dfd2d7
Introduce Menu completion flags to auto select best candidate
2019-05-17 19:52:22 +10:00
Maxime Coste
4916471029
Add completion support to load-module
2019-05-13 17:34:45 +10:00
Maxime Coste
91386a535c
Support discarding selections in exec/eval -itersel
...
Only fail if all selections are discarded.
Fixes #2841
2019-05-13 17:34:43 +10:00
Maxime Coste
834f6916da
Do not keep a reference to ParametersDesc inside ParameterParser
...
This should fix #2900
2019-05-10 23:46:16 +10:00
Maxime Coste
f96547719d
Merge remote-tracking branch 'Delapouite/parse_lines'
2019-05-01 03:48:48 +10:00
Alex Leferry 2
910ace1611
Fix typo
2019-04-28 16:46:10 +02:00
Maxime Coste
229768841b
Fix parsing of faces with a base but no attributes
2019-04-28 00:35:52 +01:00
Delapouite
947e071066
Let parse_lines ensure that there's at least 1 line with \n
2019-04-27 19:29:16 +02:00
Maxime Coste
f6e58e7271
Fix crash when finishing insert completion with no completion candidates
2019-04-26 11:49:55 +01:00
Maxime Coste
0cc89b2b9f
Merge remote-tracking branch 'laelath/provides-requires'
2019-04-25 11:59:42 +01:00
Maxime Coste
1c8f1cbc2f
Fix wrapping of words with 'wrap col - indent < word len < wrap col'
...
Add a test case for those, and refactor bits of the wrap highlighter.
This explains part of the needed complexity in #2820 .
2019-04-24 11:40:57 +01:00
Maxime Coste
64ddd43be9
Only wrap before words that are shorter than the wrapping length
...
Closes #2820
2019-04-24 10:53:33 +01:00
Maxime Coste
c1471d38f1
Merge remote-tracking branch 'eraserhd/remote-refactors'
2019-04-24 09:01:00 +01:00
Maxime Coste
4e24ba86cc
Change faces alias to be a base that can be modified
...
Using <fg>,<bg>+<attr>@<base> will apply the given fg color,
bg color and attributes on top of base dynamically. Simply giving
<base> is a shorthand for default,default@<base>.
Inspired by the discussion in #2862
2019-04-23 23:15:23 +01:00