Maxime Coste
e964b68ab8
Add support for selecting and exporting selections in display columns
...
Fixes #2724
2019-11-12 21:56:45 +11:00
Maxime Coste
7a8f57f97b
Add support for a -codepoint switch to the select command
2019-11-12 21:21:24 +11:00
Jason Felice
5fae16faef
Implement %val{selections_char_desc}
...
Fixes #3194
2019-11-12 20:54:32 +11:00
Maxime Coste
6eb820dc54
Fix use after free in enter_user_mode, use user.<name>
for modename
...
Fixes #3192
2019-11-12 08:54:49 +11:00
Maxime Coste
5060a4733a
Add mode information to next-key mode name
...
Currently expose an additional name, the format is up for
discussion.
Fixes #1855
Fixes #2569
Fixes #2672
2019-11-11 21:47:47 +11:00
Maxime Coste
f119fb9524
Aggregatify ConcatView
2019-11-10 12:04:44 +11:00
Jason Felice
87e5a2f512
Avoid copy constructing BufferCoord when comparing
2019-11-09 12:53:45 -05:00
Jason Felice
9692e491ac
Fix bad comparison when parsing OSI sequences
2019-11-09 12:53:45 -05:00
Jason Felice
c589f475a5
Add override
2019-11-09 12:53:45 -05:00
Jason Felice
d26bb0ce2b
Add static or const where useful
2019-11-09 12:53:45 -05:00
Jason Felice
49ca512733
Remove unused trim_whitespaces()
2019-11-09 12:53:45 -05:00
Maxime Coste
d85259f801
Merge remote-tracking branch 'eraserhd/selection-list-cleanup'
2019-11-09 08:50:09 +11:00
Maxime Coste
8e63aa1548
Check that stdout is a tty in ncurses ui
2019-11-09 08:19:45 +11:00
Jason Felice
c9fce9f83d
Merge selection list parsing into selection_list_from_strings
2019-11-07 14:51:04 -05:00
Maxime Coste
f794a35de3
Merge remote-tracking branch 'Delapouite/parameterdesc'
2019-11-07 20:15:14 +11:00
Maxime Coste
3e7301ede7
Support \x and \u escapes in regex character classes
...
Change \u to use 6 digits to cover the full unicode range.
Fixes #3172
2019-11-06 20:48:48 +11:00
Frank LENORMAND
3816f1fa43
src: Make sure clients connect from a TTY
...
Fixes #3159
2019-11-05 20:24:08 +01:00
Maxime Coste
294a5b72e6
Fix some ncurses rendering issues
2019-11-05 17:36:21 +11:00
Maxime Coste
6f3124d678
Split clearing to end of line out of NCursesUI::Window::draw
...
Explicitely clear instead of relying on a brittle heuristic.
2019-11-05 08:04:58 +11:00
Maxime Coste
0f292d343b
Use a specific WrapMarker face for wrap highlighter wrapped line marker
2019-11-04 21:49:54 +11:00
Delapouite
6f6b219787
Use single_param more and add double_params
2019-11-01 18:25:55 +01:00
Maxime Coste
a49ae162f4
Add a -verbatim switch to evaluate-commands for perfect forwarding
...
-verbatim will disable argument parsing in evaluate-commands, making
it possible to forward a single command to a different context without
triggering a reparsing of the arguments.
Fixes -try-client support in grep.kak
Closes #3153
2019-10-23 22:30:23 +11:00
Maxime Coste
362021c1d3
Merge remote-tracking branch 'lenormf/key-semicolon'
2019-10-23 22:10:06 +11:00
Maxime Coste
db2db951c3
Only allow minus at the begining of json numbers
2019-10-23 22:08:07 +11:00
Dan Rosén
c792986768
Teach JSON parser negative numbers
2019-10-22 21:14:38 +02:00
Frank LENORMAND
21614cb06e
src: Create a <semicolon> named key
...
This commit allows using the <semicolon> expansion in commands, instead
of `\;`.
It makes commands look more elegant, and prevents new-comers from
falling into the trap of using <a-;> without escaping the semicolon.
2019-10-22 11:02:06 +02:00
Maxime Coste
3c34de7fe7
Remove explicit sizes from make_array calls
2019-10-17 22:48:22 +11:00
Maxime Coste
dc536da513
Split clang/gcc specific arguments
2019-10-17 12:30:24 +11:00
Maxime Coste
6a893b4e56
Limit word completion menu filename length
2019-10-17 08:15:33 +11:00
Maxime Coste
c7f106a09b
Slight code style change
2019-10-17 08:15:12 +11:00
Maxime Coste
e4fb70ebec
Replace ModeChange hooks by ModePush and ModePop
...
Remove deprecated InsertBegin, InsertEnd, NormalBegin, NormalEnd
hooks.
Closes #2545
2019-10-16 20:45:53 +11:00
Maxime Coste
3a36a2486e
Slight cleanup of the menu display code
2019-10-16 20:45:53 +11:00
Maxime Coste
081595fa2f
Support specifying the user configuration with KAKOUNE_CONFIG_DIR
...
Fixes #3072
Closes #3081
2019-10-10 20:26:27 +11:00
Delapouite
2148b84274
Add unambiguous titles for infobox "enter combining operator"
...
fix #3089
2019-10-10 08:34:36 +02:00
Maxime Coste
a2993ea104
Check that stdin is readable before calling read
...
This should not be necessary, but it works around a bug in WSL.
Fixes #3112
2019-10-08 18:38:05 +11:00
Maxime Coste
2f1be14b5f
Avoid negative initial coordinates
...
Fixes #3111
2019-10-03 21:18:51 +10:00
Maxime Coste
aa6a7e544d
Fix some clang warnings
2019-09-26 20:22:27 +10:00
Maxime Coste
1d9a9bc308
Remove unneeded NCursesUI::Window::mark_dirty and redraws
...
A bug in client.cc was always forcing full redraws of the windows,
leading to much more terminal output traffic than necessary.
2019-09-26 20:14:08 +10:00
Maxime Coste
7f141e83ce
Additional NCursesUI code cleanups
2019-09-25 22:46:39 +10:00
Maxime Coste
2eccbbbe6f
Avoid unnecessary allocations in NCursesUI::Window::draw calls
...
Pass an ArrayView<DisplayAtom> instead of a DisplayLine& so that
the newly common case of passing a single atom does not require
constructing a Vector.
2019-09-25 22:46:39 +10:00
Maxime Coste
f855deaf8b
Refactor NCursesUI::Window to reduce the exposed methods
...
This should make an alternate implementation simpler as less state
has to be tracked.
2019-09-25 22:46:39 +10:00
Maxime Coste
9c2d2ad694
Do not set O_NONBLOCK on stdin
...
It is not necessary, and impacts also writing to stdout, leading
to broken display on old ncurses versions.
Fixes #3087
2019-09-25 20:33:01 +10:00
Maxime Coste
de3ff78b22
Restore stdin status flags on suspend and quit
...
Those flags are shared with the parent process, so the non-block
flag added impacts their execution.
2019-09-24 23:28:11 +10:00
Maxime Coste
f066014d33
Merge remote-tracking branch 'laelath/suppress-init-list-lifetime-warning'
2019-09-22 22:41:25 +10:00
Maxime Coste
df6d0355d6
Add support for parsing SS3 key sequences
...
As discussed on #3087 , fixes part of that issue.
2019-09-22 09:16:47 +10:00
Justin Frank
8094ded9b5
Added -Wno-init-list-lifetime to CXXFLAGS
2019-09-17 13:38:17 -07:00
Maxime Coste
8cca77c949
Accept docstrings with last line not fully indented
...
When trimming indent, the last line, if only containing
whitespaces does not need to match the indent, so that
this indentation style works:
-docstring %{
indented string
}
2019-09-17 21:48:00 +10:00
Maxime Coste
c787128a7c
Restore palette before suspend
2019-09-16 21:57:53 +10:00
Maxime Coste
bfc07b53a2
Correctly restore terminal state on suspend
2019-09-16 07:38:24 +10:00
Maxime Coste
afd5006e8b
Small style tweak
2019-09-16 07:38:24 +10:00