2017-11-02 05:03:24 +03:00
|
|
|
= Options
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Description
|
2017-11-01 14:49:13 +03:00
|
|
|
|
2017-11-02 12:36:10 +03:00
|
|
|
Kakoune can store named and typed values that can be used both to
|
|
|
|
customize the core editor behaviour, and to store data used by extension
|
|
|
|
scripts.
|
2017-11-01 14:49:13 +03:00
|
|
|
|
2017-11-08 11:32:49 +03:00
|
|
|
[[set-option]]
|
2017-11-02 12:36:10 +03:00
|
|
|
Options can be modified using the `set-option` command:
|
2017-11-01 14:49:13 +03:00
|
|
|
|
2018-05-31 14:14:21 +03:00
|
|
|
--------------------------------------------
|
2020-09-09 12:38:12 +03:00
|
|
|
set-option [-add|-remove] <scope> <name> <values>...
|
2018-05-31 14:14:21 +03:00
|
|
|
--------------------------------------------
|
2017-11-01 14:49:13 +03:00
|
|
|
|
2017-11-02 12:36:10 +03:00
|
|
|
<scope> can be *global*, *buffer*, *window* or *current* (See
|
2018-04-05 12:35:03 +03:00
|
|
|
<<scopes#,`:doc scopes`>>). *current* relates to the narrowest scope in
|
2017-11-02 12:36:10 +03:00
|
|
|
which the option is already set.
|
2017-11-01 14:49:13 +03:00
|
|
|
|
2020-10-27 22:08:16 +03:00
|
|
|
When the option is a list or a map, multiple <values> can be given as
|
|
|
|
separate arguments, or can be omitted altogether in order to empty the
|
|
|
|
option.
|
2018-05-31 14:14:21 +03:00
|
|
|
|
2020-09-09 12:38:12 +03:00
|
|
|
If `-add` or `-remove` is specified, the new value is respectively *added*
|
|
|
|
to or *removed* from the current one instead of replacing it (the exact
|
|
|
|
outcome depends on the type, see below).
|
2018-04-05 12:35:03 +03:00
|
|
|
|
2017-11-08 11:32:49 +03:00
|
|
|
[[unset-option]]
|
2023-01-23 17:11:30 +03:00
|
|
|
Option values can be unset in a specific scope with the `unset-option`
|
2017-11-02 12:36:10 +03:00
|
|
|
command:
|
|
|
|
|
|
|
|
---------------------------
|
|
|
|
unset-option <scope> <name>
|
|
|
|
---------------------------
|
|
|
|
|
2020-05-28 19:37:26 +03:00
|
|
|
Unsetting an option will make it fallback to the value of its parent scope,
|
2017-11-02 12:36:10 +03:00
|
|
|
hence options cannot be unset from the *global* scope.
|
|
|
|
|
2017-11-08 11:32:49 +03:00
|
|
|
[[declare-option]]
|
2017-11-02 12:36:10 +03:00
|
|
|
New options can be declared using the `declare-option` command:
|
2017-11-01 14:49:13 +03:00
|
|
|
|
2018-05-31 14:14:21 +03:00
|
|
|
---------------------------------------------------
|
|
|
|
declare-option [-hidden] <type> <name> [<value>...]
|
|
|
|
---------------------------------------------------
|
2017-11-01 14:49:13 +03:00
|
|
|
|
|
|
|
If `-hidden` is specified, the option will not be displayed in completion
|
|
|
|
suggestions.
|
|
|
|
|
2017-11-08 11:32:49 +03:00
|
|
|
[[update-option]]
|
2017-11-02 12:36:10 +03:00
|
|
|
Certain option type can be *updated*, usually to match potential changes
|
|
|
|
in the buffer they relate to. This can be triggered by the `update-option`
|
|
|
|
command:
|
|
|
|
|
|
|
|
----------------------------
|
|
|
|
update-option <scope> <name>
|
|
|
|
----------------------------
|
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Types
|
2017-11-01 14:49:13 +03:00
|
|
|
|
2017-11-02 12:36:10 +03:00
|
|
|
All options have a type, which defines how they are translated to/from
|
|
|
|
text and their set of valid values.
|
2017-11-01 14:49:13 +03:00
|
|
|
|
|
|
|
Some types are usable for user defined options while some other types
|
|
|
|
are exclusively available to built-in options.
|
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*int*::
|
2018-04-05 12:35:03 +03:00
|
|
|
an integer number.
|
2020-09-09 12:38:12 +03:00
|
|
|
|
|
|
|
`set -add` performs a math addition. +
|
|
|
|
`set -remove` performs a math substraction. +
|
2017-11-02 12:36:10 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*bool*::
|
2017-11-02 12:36:10 +03:00
|
|
|
a boolean value, yes/true or no/false
|
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*str*::
|
2017-11-02 12:36:10 +03:00
|
|
|
a string, some freeform text
|
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*regex*::
|
2017-11-02 12:36:10 +03:00
|
|
|
as a string but the set commands will complain if the entered text
|
|
|
|
is not a valid regex
|
|
|
|
|
2017-11-01 14:49:13 +03:00
|
|
|
*coord*::
|
2018-04-05 12:35:03 +03:00
|
|
|
a line, column pair (separated by a comma)
|
2018-08-21 11:24:33 +03:00
|
|
|
Cannot be used with `declare-option`
|
2017-11-02 12:36:10 +03:00
|
|
|
|
2017-11-01 14:49:13 +03:00
|
|
|
*<type>-list*::
|
2018-05-31 14:14:21 +03:00
|
|
|
a list, elements are specified as separate arguments to the command.
|
2020-09-09 12:38:12 +03:00
|
|
|
|
|
|
|
`set -add` appends the new element to the list. +
|
|
|
|
`set -remove` removes each given element from the list. +
|
|
|
|
|
2018-08-21 11:24:33 +03:00
|
|
|
Only `int-list` and `str-list` options can be created with
|
|
|
|
`declare-option`.
|
2017-11-02 12:36:10 +03:00
|
|
|
|
2017-05-17 21:35:54 +03:00
|
|
|
*range-specs*::
|
2018-10-09 06:18:21 +03:00
|
|
|
a timestamp (like `%val{timestamp}`,
|
|
|
|
see <<expansions#value-expansions,`:doc expansions value-expansions`>>)
|
2020-04-06 04:13:24 +03:00
|
|
|
followed by a list of range descriptors.
|
|
|
|
|
|
|
|
Each range descriptor must use the syntax `a.b,c.d|string` or
|
|
|
|
`a.b+length|string`, with:
|
|
|
|
|
|
|
|
* _a_ is the line containing the first character
|
|
|
|
|
|
|
|
* _b_ is the number of bytes from the start of the line to the
|
|
|
|
first byte of the first character
|
|
|
|
|
|
|
|
* _c_ is the line containing the last character
|
|
|
|
|
|
|
|
* _d_ is the number of bytes from the start of the line to the
|
|
|
|
first byte of the last character
|
|
|
|
|
|
|
|
* _length_ is the length of the range in bytes, if 0 the range
|
|
|
|
is empty, but still valid.
|
|
|
|
|
|
|
|
* _string_ is an arbitrary string which is associated with
|
2021-10-29 19:14:22 +03:00
|
|
|
the range. Any `|` or `\` characters must be escaped as `\|` or `\\`.
|
2020-04-06 04:13:24 +03:00
|
|
|
|
|
|
|
All numeric fields are 1-based.
|
|
|
|
|
2020-05-28 19:37:26 +03:00
|
|
|
When the command `update-option` is used on an option of this type,
|
|
|
|
its ranges get updated according to all the buffer modifications
|
|
|
|
that happened since its timestamp.
|
2020-04-06 04:13:24 +03:00
|
|
|
|
2020-09-09 12:38:12 +03:00
|
|
|
`set -add` appends the new pairs to the list. +
|
|
|
|
`set -remove` removes the given pairs from the list. +
|
2017-11-02 12:36:10 +03:00
|
|
|
|
2020-04-06 04:13:24 +03:00
|
|
|
See <<highlighters#specs-highlighters,`:doc highlighters specs-highlighters`>>)
|
|
|
|
|
2017-05-25 11:02:10 +03:00
|
|
|
*line-specs*::
|
2018-05-31 14:14:21 +03:00
|
|
|
a list of a line number and a corresponding flag (`<line>|<flag
|
|
|
|
text>`), except for the first element which is just the timestamp
|
2020-05-28 19:37:26 +03:00
|
|
|
of the buffer. When `update-option` is used on an option of this
|
|
|
|
type, its lines get updated according to all the buffer modifications
|
2018-05-31 14:14:21 +03:00
|
|
|
that happened since its timestamp.
|
2018-03-06 13:34:00 +03:00
|
|
|
See <<highlighters#specs-highlighters,`:doc highlighters specs-highlighters`>>)
|
2020-09-09 12:38:12 +03:00
|
|
|
|
|
|
|
`set -add` appends the new specs to the list. +
|
|
|
|
`set -remove` removes the given specs from the list. +
|
2017-11-02 12:36:10 +03:00
|
|
|
|
2021-10-29 19:14:22 +03:00
|
|
|
Any `|` or `\` characters that occur within `<flag text>` must be
|
|
|
|
escaped as `\|` or `\\`.
|
|
|
|
|
2016-08-27 13:05:22 +03:00
|
|
|
*completions*::
|
2019-04-15 18:42:58 +03:00
|
|
|
a list of `<text>|<select cmd>|<menu text>` candidates,
|
2018-05-31 14:14:21 +03:00
|
|
|
except for the first element which follows the
|
2017-11-02 12:36:10 +03:00
|
|
|
`<line>.<column>[+<length>]@<timestamp>` format to define where the
|
2019-04-15 18:42:58 +03:00
|
|
|
completion apply in the buffer.
|
2021-06-10 17:27:13 +03:00
|
|
|
Any `|` or `\` characters that occur within the `<text>`,
|
|
|
|
`<select cmd>`, or `<menu text>` fields should be escaped as `\|`
|
|
|
|
or `\\`.
|
2019-04-15 18:42:58 +03:00
|
|
|
|
2022-01-09 22:25:50 +03:00
|
|
|
Options of this type are are meant to be added to the `completers`
|
|
|
|
option to provide insert mode completion. Candidates are shown if the
|
|
|
|
text typed by the user (between `<line>.<column>` and the cursor) is a
|
|
|
|
subsequence of `<text>`.
|
|
|
|
|
|
|
|
For each remaining candidate, the completion menu displays
|
|
|
|
`<text>`, followed by `<menu text>`, which is a Markup string (see
|
|
|
|
<<faces#markup-strings,`:doc faces markup-strings`>>).
|
|
|
|
|
|
|
|
As the user selects items from the completion menu, the text they typed
|
|
|
|
will be replaced with `<text>`, and the Kakoune command in
|
|
|
|
`<select cmd>` is executed. The common use case is to display element
|
|
|
|
specific documentation.
|
2019-04-15 18:42:58 +03:00
|
|
|
|
2020-09-09 12:38:12 +03:00
|
|
|
`set -add` adds given completions to the list. +
|
|
|
|
`set -remove` removes given completions from the list. +
|
2017-11-02 12:36:10 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*enum(value1|value2|...)*::
|
2017-11-02 12:36:10 +03:00
|
|
|
an enum, taking one of the given values
|
2018-08-21 11:24:33 +03:00
|
|
|
Cannot be used with `declare-option`
|
2017-11-02 12:36:10 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*flags(value1|value2|...)*::
|
2017-11-02 12:36:10 +03:00
|
|
|
a set of flags, taking a combination of the given values joined by a
|
2018-04-05 12:35:03 +03:00
|
|
|
'|' character.
|
2020-09-09 12:38:12 +03:00
|
|
|
|
|
|
|
`set -add` adds the given flags to the combination. +
|
|
|
|
`set -remove` removes the given flags to the combination. +
|
|
|
|
|
2018-08-21 11:24:33 +03:00
|
|
|
Cannot be used with `declare-option`
|
2018-04-05 12:35:03 +03:00
|
|
|
|
|
|
|
*<type>-to-<type>-map*::
|
2018-05-31 14:14:21 +03:00
|
|
|
a list of `key=value` pairs.
|
2020-09-09 12:38:12 +03:00
|
|
|
|
|
|
|
`set -add` adds the given pair to the hashmap or replace an already
|
|
|
|
existing key. +
|
|
|
|
`set -remove` removes the given pair from the hashmap, if only the
|
|
|
|
key is provided it removes that entry regardless of the associated
|
|
|
|
value. +
|
|
|
|
|
2018-08-21 11:24:14 +03:00
|
|
|
Only `str-to-str-map` options can be created with `declare-option`.
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Builtin options
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:36:10 +03:00
|
|
|
*tabstop* `int`::
|
2017-11-02 12:42:44 +03:00
|
|
|
_default_ 8 +
|
2017-11-02 12:36:10 +03:00
|
|
|
width of a tab character
|
|
|
|
|
|
|
|
*indentwidth* `int`::
|
2017-11-02 12:42:44 +03:00
|
|
|
_default_ 4 +
|
2017-11-02 12:36:10 +03:00
|
|
|
width (in spaces) used for indentation, 0 means a tab character
|
|
|
|
|
|
|
|
*scrolloff* `coord`::
|
2017-11-02 12:42:44 +03:00
|
|
|
_default_ 0,0 +
|
2017-11-02 12:36:10 +03:00
|
|
|
number of lines, columns to keep visible around the cursor when
|
|
|
|
scrolling
|
|
|
|
|
|
|
|
*eolformat* `enum(lf|crlf)`::
|
2017-11-02 12:42:44 +03:00
|
|
|
_default_ lf +
|
2017-11-02 12:36:10 +03:00
|
|
|
the format of end of lines when writing a buffer, this is autodetected
|
|
|
|
on load; values of this option assigned to the `window` scope are
|
|
|
|
ignored
|
|
|
|
|
|
|
|
*BOM* `enum(none|utf8)`::
|
2017-11-02 12:42:44 +03:00
|
|
|
_default_ none +
|
2017-11-02 12:36:10 +03:00
|
|
|
define if the file should be written with a unicode byte order mark;
|
|
|
|
values of this option assigned to the `window` scope are ignored
|
|
|
|
|
|
|
|
*readonly* `bool`::
|
2017-11-02 12:42:44 +03:00
|
|
|
_default_ false +
|
2017-11-02 12:36:10 +03:00
|
|
|
prevent modifications from being saved to disk, all buffers if set
|
|
|
|
to `true` in the `global` scope, or current buffer if set in the
|
|
|
|
`buffer` scope; values of this option assigned to the `window`
|
|
|
|
scope are ignored
|
|
|
|
|
|
|
|
*incsearch* `bool`::
|
2017-11-02 12:42:44 +03:00
|
|
|
_default_ true +
|
2017-11-02 12:36:10 +03:00
|
|
|
execute search as it is typed
|
|
|
|
|
|
|
|
*aligntab* `bool`::
|
2017-11-02 12:42:44 +03:00
|
|
|
_default_ false +
|
2017-11-02 12:36:10 +03:00
|
|
|
use tabs for alignment command
|
|
|
|
|
|
|
|
*autoinfo* `flags(command|onkey|normal)`::
|
2017-11-02 12:42:44 +03:00
|
|
|
_default_ command|onkey +
|
2017-11-02 12:36:10 +03:00
|
|
|
display automatic information box in the enabled contexts
|
|
|
|
|
2019-02-24 13:45:38 +03:00
|
|
|
*autocomplete* `flags(insert|prompt)`::
|
2018-07-15 02:45:17 +03:00
|
|
|
_default_ insert|prompt +
|
|
|
|
automatically display possible completions in the enabled modes.
|
2017-11-02 12:36:10 +03:00
|
|
|
|
|
|
|
*ignored_files* `regex`::
|
|
|
|
filenames matching this regex won't be considered as candidates
|
|
|
|
on filename completion (except if the text being completed already
|
|
|
|
matches it)
|
|
|
|
|
|
|
|
*disabled_hooks* `regex`::
|
|
|
|
hooks whose group matches this regex won't be executed. For example
|
2018-08-16 20:06:57 +03:00
|
|
|
indentation hooks can be disabled with `.*-indent`.
|
|
|
|
(See <<hooks#disabling-hooks,`:doc hooks`>>)
|
2017-11-02 12:36:10 +03:00
|
|
|
|
|
|
|
*filetype* `str`::
|
2018-08-22 15:56:15 +03:00
|
|
|
arbitrary string defining the type of the file. Filetype dependent
|
2017-11-02 12:36:10 +03:00
|
|
|
actions should hook on this option changing for activation/deactivation
|
|
|
|
|
|
|
|
*path* `str-list`::
|
2018-08-25 15:03:42 +03:00
|
|
|
_default_ ./ %/ /usr/include +
|
2018-03-23 12:24:18 +03:00
|
|
|
directories to search for *gf* command and filenames completion
|
|
|
|
`%/` represents the current buffer directory
|
2017-11-02 12:36:10 +03:00
|
|
|
|
|
|
|
*completers* `completer-list`::
|
2018-08-25 15:03:42 +03:00
|
|
|
_default_ filename word=all +
|
2017-11-02 12:36:10 +03:00
|
|
|
completion engines to use for insert mode completion (they are tried
|
|
|
|
in order until one generates candidates). Existing completers are:
|
|
|
|
|
|
|
|
*word=all*, *word=buffer*:::
|
|
|
|
which complete using words in all buffers (*word=all*)
|
|
|
|
or only the current one (*word=buffer*)
|
|
|
|
|
|
|
|
*filename*:::
|
|
|
|
which tries to detect when a filename is being entered and
|
|
|
|
provides completion based on local filesystem
|
|
|
|
|
2019-11-04 12:11:09 +03:00
|
|
|
*line=all*, *line=buffer*:::
|
|
|
|
which complete using lines in all buffers (*line=all*)
|
|
|
|
or only the current one (*line=buffer*)
|
2017-11-02 12:36:10 +03:00
|
|
|
|
|
|
|
*option=<opt-name>*:::
|
|
|
|
where *opt-name* is an option of type 'completions' whose
|
|
|
|
contents will be used
|
|
|
|
|
|
|
|
*static_words* `str-list`::
|
|
|
|
list of words that are always added to completion candidates
|
|
|
|
when completing words in insert mode
|
|
|
|
|
|
|
|
*extra_word_chars* `codepoint-list`::
|
|
|
|
a list of all additional codepoints that should be considered
|
2021-06-09 10:50:03 +03:00
|
|
|
part of a word, for the purposes of the `w`, `b`, and `e` commands
|
|
|
|
(See <<keys#movement,`:doc keys movement`>>).
|
|
|
|
If this option is empty, Kakoune pretends it contains an
|
|
|
|
underscore, otherwise the value is used as-is.
|
|
|
|
This must be set on the buffer, not the window,
|
2019-09-26 16:25:57 +03:00
|
|
|
for word completion to offer words containing these codepoints.
|
2017-11-04 10:53:53 +03:00
|
|
|
|
|
|
|
*matching_pairs* `codepoint-list`::
|
2018-08-25 15:03:42 +03:00
|
|
|
_default_ ( ) { } [ ] < > +
|
2017-11-04 10:53:53 +03:00
|
|
|
a list of codepoints that are to be treated as matching pairs
|
|
|
|
for the *m* command.
|
2017-11-02 12:36:10 +03:00
|
|
|
|
|
|
|
*autoreload* `enum(yes|no|ask)`::
|
2017-11-02 12:42:44 +03:00
|
|
|
_default_ ask +
|
2017-11-02 12:36:10 +03:00
|
|
|
auto reload the buffers when an external modification is detected
|
|
|
|
|
2019-02-12 12:54:37 +03:00
|
|
|
*writemethod* `enum(overwrite|replace)`::
|
|
|
|
_default_ overwrite +
|
|
|
|
method used to write buffers to file, `overwrite` will open the
|
|
|
|
existing file and write on top of the previous data, `replace`
|
|
|
|
will open a temporary file next to the target file, write it and
|
|
|
|
then rename it to the target file.
|
|
|
|
|
2017-11-02 12:36:10 +03:00
|
|
|
*debug* `flags(hooks|shell|profile|keys|commands)`::
|
2024-07-23 01:02:15 +03:00
|
|
|
dump various debug information in the `\*debug*` buffer
|
2017-11-02 12:36:10 +03:00
|
|
|
|
|
|
|
*idle_timeout* `int`::
|
2017-11-02 12:42:44 +03:00
|
|
|
_default_ 50 +
|
2017-11-02 12:36:10 +03:00
|
|
|
timeout, in milliseconds, with no user input that will trigger the
|
|
|
|
*PromptIdle*, *InsertIdle* and *NormalIdle* hooks, and autocompletion.
|
|
|
|
|
2019-07-06 18:37:30 +03:00
|
|
|
*fs_check_timeout* `int`::
|
2017-11-02 12:42:44 +03:00
|
|
|
_default_ 500 +
|
2017-11-02 12:36:10 +03:00
|
|
|
timeout, in milliseconds, between checks in normal mode of modifications
|
|
|
|
of the file associated with the current buffer on the filesystem.
|
|
|
|
|
|
|
|
*modelinefmt* `string`::
|
|
|
|
A format string used to generate the mode line, that string is
|
|
|
|
first expanded as a command line would be (expanding '%...{...}'
|
2018-09-25 09:41:53 +03:00
|
|
|
strings), then markup tags are applied (see
|
|
|
|
<<faces#markup-strings,`:doc faces markup-strings`>>)
|
2017-11-06 12:08:59 +03:00
|
|
|
Two special atoms are available as markup:
|
2017-11-02 12:36:10 +03:00
|
|
|
|
|
|
|
*`{{mode_info}}`*:::
|
|
|
|
Information about the current mode, such as `insert 3 sel` or
|
|
|
|
`prompt`. The faces used are StatusLineMode, StatusLineInfo,
|
|
|
|
and StatusLineValue.
|
|
|
|
|
|
|
|
*`{{context_info}}`*:::
|
|
|
|
Information such as `[+][recording (@)][no-hooks][new file][fifo]`,
|
|
|
|
in face Information.
|
|
|
|
|
|
|
|
The default value is '%val{bufname} %val{cursor_line}:%val{cursor_char_column} {{context_info}} {{mode_info}} - %val{client}@[%val{session}]'
|
|
|
|
|
|
|
|
*ui_options* `str-to-str-map`::
|
2018-05-31 14:14:21 +03:00
|
|
|
a list of `key=value` pairs that are forwarded to the user
|
2022-02-14 05:27:31 +03:00
|
|
|
interface implementation. The NCurses UI supports the following options:
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2019-11-16 13:27:06 +03:00
|
|
|
*terminal_set_title*:::
|
2017-11-02 12:36:10 +03:00
|
|
|
if *yes* or *true*, the terminal emulator title will
|
|
|
|
be changed
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2024-09-08 14:53:49 +03:00
|
|
|
*terminal_title*:::
|
|
|
|
if set, the terminal title will be set to this string
|
|
|
|
else it will be derived from the modeline.
|
|
|
|
|
2019-11-16 13:27:06 +03:00
|
|
|
*terminal_status_on_top*:::
|
2017-11-02 12:36:10 +03:00
|
|
|
if *yes*, or *true* the status line will be placed
|
|
|
|
at the top of the terminal rather than at the bottom
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2019-11-16 13:27:06 +03:00
|
|
|
*terminal_assistant*:::
|
2017-11-12 17:44:04 +03:00
|
|
|
specify the nice assistant displayed in info boxes,
|
2017-11-02 12:36:10 +03:00
|
|
|
can be *clippy* (the default), *cat*, *dilbert* or *none*
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2019-11-16 13:27:06 +03:00
|
|
|
*terminal_enable_mouse*:::
|
2017-11-02 12:36:10 +03:00
|
|
|
boolean option that enables mouse support
|
2016-10-29 10:48:02 +03:00
|
|
|
|
2019-11-16 13:27:06 +03:00
|
|
|
*terminal_shift_function_key*:::
|
2018-04-12 14:28:15 +03:00
|
|
|
Function key from which shifted function key start, if the
|
2018-04-11 13:29:35 +03:00
|
|
|
terminal sends F13 for <s-F1>, this should be set to 12.
|
2018-06-04 02:39:32 +03:00
|
|
|
|
2021-07-09 13:53:17 +03:00
|
|
|
*terminal_padding_char*:::
|
2021-04-05 21:21:48 +03:00
|
|
|
character used to indicate the area out of the displayed buffer
|
|
|
|
(defaults to '~')
|
|
|
|
|
2021-07-09 13:53:17 +03:00
|
|
|
*terminal_padding_fill*:::
|
2021-04-05 21:21:48 +03:00
|
|
|
if *yes* or *true*, fill the padding area with the padding character
|
|
|
|
instead of displaying a single character at the beginning of the
|
|
|
|
padding line (defaults to *false*)
|
|
|
|
|
2021-09-02 13:44:19 +03:00
|
|
|
*terminal_synchronized*:::
|
2021-09-26 03:45:23 +03:00
|
|
|
if *yes* or *true*, emit synchronized output escape sequences and
|
|
|
|
reduce terminal output with sequences that could trigger flickering
|
|
|
|
if unsynchronized (defaults to *false*)
|
2021-07-09 13:53:17 +03:00
|
|
|
|
2023-02-16 05:07:08 +03:00
|
|
|
*terminal_info_max_width*:::
|
|
|
|
set the maximum allowable width of an info box. set to zero for
|
|
|
|
no limit.
|
|
|
|
|
2018-06-04 02:39:32 +03:00
|
|
|
[[startup-info]]
|
|
|
|
*startup_info_version* `int`::
|
|
|
|
_default_ 0 +
|
|
|
|
Controls which messages will be displayed in the startup info box, only messages
|
|
|
|
relating to a Kakoune version greater than this value will be displayed. Versions
|
|
|
|
are written as a single number: Like `20180413` for version `2018.04.13`
|
2019-03-18 18:14:46 +03:00
|
|
|
|
|
|
|
== Current values
|
|
|
|
|
|
|
|
The current value for an option can be viewed using
|
|
|
|
<<expansions#option-expansions, `:doc expansions option-expansions`>>.
|
|
|
|
|
|
|
|
For example, the current value of the `BOM` option can be displayed in the
|
|
|
|
status line using the `echo` command:
|
|
|
|
|
|
|
|
--------------
|
|
|
|
echo %opt{BOM}
|
|
|
|
--------------
|
|
|
|
|
2024-07-23 01:02:15 +03:00
|
|
|
The current values for all options can be dumped to the `\*debug*` buffer using
|
2019-03-18 18:14:46 +03:00
|
|
|
the following command:
|
|
|
|
|
|
|
|
-------------
|
|
|
|
debug options
|
|
|
|
-------------
|