1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-28 22:22:41 +03:00

Merge remote-tracking branch 'lenormf/fix-doc-ui-options'

This commit is contained in:
Maxime Coste 2016-10-29 11:31:47 +01:00
commit b7e89276e8
3 changed files with 41 additions and 17 deletions

View File

@ -931,8 +931,16 @@ Some options are built in Kakoune, and can be used to control it's behaviour:
at the top of the terminal rather than at the bottom.
- `ncurses_assistant`: specify the nice assistant you get in info boxes, can
be 'clippy' (the default), 'cat' or 'none'
- `ncurses_enable_mouse`: boolean option that enables mouse support
- `ncurses_wheel_down_button` and `ncurses_wheel_up_button`: specify which
button send for wheel down/up events.
- `ncurses_buffer_padding_str`: string that will be used to mark the
end of the buffer.
- `ncurses_buffer_padding_type`: if set to `fill`, the padding string
will fill the entire space between the end of the buffer and the
bottom of the current window, if set to `single` the padding
string will be inserted once at the end of the buffer. A value of
`off` disables any kind of padding.
Faces
-----

View File

@ -7,7 +7,7 @@ kak - a vim inspired, selection oriented code editor
SYNOPSIS
--------
*kak* [-q] [-u] [-n] [-l] [-e command] [-f command] [-p session_id] [-c session_id|[[-d] -s session_id] file ...
*kak* [-q] [-n] [-l] [-ro] [-clear] [-ui ui_type] [-e command] [-f keys] [-p session_id] [-c session_id|[[-d] -s session_id] file ...
DESCRIPTION
-----------
@ -26,14 +26,8 @@ stays fixed and the cursor one moves around.
OPTIONS
-------
-q::
in filter mode, be quiet about errors applying keys
-u::
use a dummy user interface, for testing purposes
-n::
do not source kakrc files on startup
do not load resource files on startup ('kakrc', 'autoload', 'rc' etc)
-l::
list existing sessions
@ -42,19 +36,31 @@ OPTIONS
run as a headless session (requires -s)
-e <command>::
execute argument on initialisation
execute the *command* after the initialization phase
-f <command>::
act as a filter, executing given keys on given files
-f <keys>::
enter in 'filter mode' and execute *keys* on the files passed as arguments
-q::
when in 'filter mode', don't print any errors
-p <session_id>::
just send stdin as commands to the given session
send the commands written on the standard input to session *session_id*
-c <session_id>::
connect to given session
connect to the given session
-s <session_id>::
set session name
rename the current session name to *session_id*
-ui <type>::
select the user interface, can be one of 'ncurses', 'dummy' or 'json'
-clear::
remove sessions that terminated in an incorrect state (e.g. after a crash)
-ro::
enter in 'readonly mode', all the buffers opened will not be written to disk
file::
one or more files to edit
@ -80,9 +86,6 @@ kak ./file1.txt /path/to/file2.c::
kak -f "ggO// kak: tabstop=8<esc>" *.c::
Insert a modeline that sets the tabstop variable at the beginning of several source code files
kak -e "man dup2"::
Use Kakoune as a man pager
FILES
-----
If not started with the -n switch, Kakoune will source the '../share/kak/kakrc' file relative to the kak binary,

View File

@ -155,5 +155,18 @@ Builtin options
specify the nice assistant you get in info boxes,
can be *clippy* (the default), *cat* or *none*
*ncurses_enable_mouse*:::
boolean option that enables mouse support
*ncurses_wheel_down_button*, *ncurses_wheel_up_button*:::
specify which button send for wheel down/up events
*ncurses_buffer_padding_str*:::
string that will be used to mark the end of the buffer
*ncurses_buffer_padding_type*:::
if set to `fill`, the padding string will fill the entire space
between the end of the buffer and the bottom of the current
window, if set to `single` the padding string will be inserted
once at the end of the buffer. A value of `off` disables any
kind of padding