Ben Judd
272b70298e
elif over "else if"
2021-04-19 11:53:19 -07:00
Maxime Coste
f7be47fb95
Merge remote-tracking branch 'Icantjuddle/fix_deprexated_mallinfo_call'
2021-04-19 20:56:55 +10:00
Ben Judd
b09eb5e010
Comments
2021-04-18 16:28:11 -07:00
Ben Judd
db3203fe59
mallinfo is deprecated in favor of mallinfo2
2021-04-17 13:49:21 -07:00
Taupiqueur
aa6ec5987c
Fix edit -readonly
command not setting readonly
option
2021-04-14 02:36:25 +02:00
Jim Tittsler
a7fb4c042a
Fix message typo
2021-01-01 15:15:27 +09:00
Cole Helbling
266e388c6b
commands: add "registers" subcommand to :debug
...
This prints all non-empty registers and their value(s) to the `*debug*`
buffer.
2020-12-23 14:22:44 -08:00
Maxime Coste
90043e7df0
Replace write -atomic
with write -method <method>
...
`-atomic` becomes `-method replace` and `-method overwrite` is now
supported explicitely instead of only available through the
writemethod option.
Fixes #3827
2020-10-27 20:20:18 +11:00
Maxime Coste
2cd323b314
Allow quiting last client with unsaved buffer in daemon mode
...
Because the server will out-live that client's disconnection it
is still ok to have modified buffers, the server will complain
on `kill`.
Fixes #3801
2020-10-19 20:39:25 +11:00
Maxime Coste
97e88b6087
Remove the rename-client's nc alias
...
Closes #3789
2020-10-19 20:30:33 +11:00
Maxime Coste
ec3d7c3104
Add support for removing from options
...
`set -remove ...` will remove from the current option value, substracting
from int, removing elements from vectors and maps.
2020-09-09 21:00:30 +10:00
Maxime Coste
669048f458
Rename DefinedHighlighters to SharedHighlighters
...
Matches the user facing name and seems more correct.
2020-08-08 11:19:02 +10:00
Maxime Coste
c2516f02f6
Do not trigger RegisterModified hooks on register about to be restored
...
This greatly reduces the amount of hooks triggered.
2020-07-21 20:27:42 +10:00
Maxime Coste
5df8073c3c
Code style tweaks
2020-07-19 12:54:41 +10:00
Maxime Coste
f2cc7bc891
Add User hook support
2020-07-04 13:48:27 +10:00
Maxime Coste
af175d2e7e
Output debug memory stats in a nice table
2020-05-19 17:16:37 +10:00
Maxime Coste
60154300f9
Support piping data to client stdin
...
Pass the client stdin fd to the server and open a fifo buffer
from it.
Fixes #3394
2020-05-10 19:30:13 +10:00
Maxime Coste
2fca4e5643
Fix traling whitespaces
2020-05-02 13:02:10 +10:00
Maxime Coste
ccecd5bd8e
Add support for alpha channel in colors
...
This makes it easier to define faces that lighten/darken whatever
they apply on.
2020-05-02 12:57:36 +10:00
Maxime Coste
8000cd092f
Fix internal command naming
2020-04-13 12:24:45 +10:00
Maxime Coste
c585107ab5
Add -override support to add-highlighter
...
This allow replacing a highlighter in place, not loosing its current
position in its parent.
Fixes #3436
2020-03-30 21:04:01 +11:00
Maxime Coste
09375edf54
Merge remote-tracking branch 'occivink/arrange-buffers'
2020-03-15 12:18:04 +11:00
Maxime Coste
31caae20eb
Allow reading from fifo in readonly buffers
...
readonly is supposed to prevent the user from modifying the buffer
and it can be useful to generate a readonly fifo buffer.
Fixes #3398
2020-03-14 12:58:22 +11:00
Olivier Perret
5c116ab850
Add a new 'arrange-buffers' to let users change the order of the buflist
2020-02-24 09:41:46 +01:00
Maxime Coste
93a889bd44
Merge remote-tracking branch 'lenormf/complete-register-names'
2020-02-22 08:39:35 +11:00
Frank LENORMAND
e06d61a3e0
src: Allow :write-all
to use -atomic, fix usage
...
It seems that when -atomic was implemented for `:write`, the usage
strings were not updated to reflect that a new flag was available.
The `write-all` command didn't benefit from the implementation of
the new flag despite also writing files - this commit fixes that.
2020-02-09 17:07:47 +01:00
Frank LENORMAND
c0cb5db6a4
src: Let :set-register
complete register names
...
This commit allows the `set-register` command to suggest candidates
named after punctuated registers, similarly to %reg{…} expansions.
2020-02-09 15:31:08 +01:00
Maxime Coste
22bfbd06af
Redraw relevant clients after adding/removing highlighters
2019-12-28 11:27:04 +11:00
Maxime Coste
7c1d4f5bd6
Avoid unnecessary std::function
2019-12-28 10:47:16 +11:00
Maxime Coste
15df0fc781
Add -scratch and -file switches to the rename-buffer command
2019-12-07 15:40:57 +11:00
Maxime Coste
023a65eeac
Optimize regex in command
2019-12-05 21:11:12 +11:00
Frank LENORMAND
d32a660863
src: Document the base face syntax in :set-face
2019-12-02 11:37:31 +01:00
Maxime Coste
085e7dd09e
Merge remote-tracking branch 'lenormf/patch-2'
2019-11-28 20:32:16 +11:00
Maxime Coste
6f087e899b
Complete rename-buffer with filenames
...
Fixes #3215
2019-11-24 18:11:29 +11:00
Maxime Coste
6fd486c65e
Replace tab characters with spaces in info/echo
...
This is tricky to fix better than that as tabs make text length
dependent on where it will get displayed and what preceedes it.
Also fix an issue with empty info title
Fixes #2237
2019-11-24 18:11:29 +11:00
Maxime Coste
cb1b03c0db
Add support for markup in info boxes
...
Fixes #2552
2019-11-22 21:50:51 +11:00
Maxime Coste
82e5346904
Add a -atomic switch to write and change clang.kak to take advantage
2019-11-21 23:38:32 +11:00
Frank LENORMAND
15f6485327
src: Give a reason why :rename-buffer
failed
2019-11-18 16:46:53 +00:00
Jason Felice
0f58f01428
Fix display column computations
...
Closes #3201
2019-11-12 20:43:14 -05:00
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
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
Jason Felice
d26bb0ce2b
Add static or const where useful
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
Jason Felice
c9fce9f83d
Merge selection list parsing into selection_list_from_strings
2019-11-07 14:51:04 -05: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
Frank LENORMAND
da2f6c296a
src: De-indent docstrings passed to command/option/mapping definitions
...
This commit implements formatting behaviour when the first character of a
docstring is a newline. In that case, the exact indentation level of the
next line will be removed from that line and all subsequent non-empty lines.
An error will be returned if a subsequent non-empty line does not have the
same indentation level.
The docstrings are always trimmed (surrounding whitespaces) whether the
first character is a newline or not, as was the case prior to this commit.
Example: the following declaration
```
define-command test -docstring %{
test: do something
Nothing really.
More
indented
lines.
} nop
```
would be rendered as
```
test: do something
Nothing really.
More
indented
lines.
```
Related to #2405
2019-07-25 12:28:04 +03:00
Maxime Coste
e42c81c8eb
Ensure current context switches away from buffer on delete-buffer
...
Fixes #3025
2019-07-22 20:26:39 +10:00