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. at the top of the terminal rather than at the bottom.
- `ncurses_assistant`: specify the nice assistant you get in info boxes, can - `ncurses_assistant`: specify the nice assistant you get in info boxes, can
be 'clippy' (the default), 'cat' or 'none' 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 - `ncurses_wheel_down_button` and `ncurses_wheel_up_button`: specify which
button send for wheel down/up events. 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 Faces
----- -----

View File

@ -7,7 +7,7 @@ kak - a vim inspired, selection oriented code editor
SYNOPSIS 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 DESCRIPTION
----------- -----------
@ -26,14 +26,8 @@ stays fixed and the cursor one moves around.
OPTIONS OPTIONS
------- -------
-q::
in filter mode, be quiet about errors applying keys
-u::
use a dummy user interface, for testing purposes
-n:: -n::
do not source kakrc files on startup do not load resource files on startup ('kakrc', 'autoload', 'rc' etc)
-l:: -l::
list existing sessions list existing sessions
@ -42,19 +36,31 @@ OPTIONS
run as a headless session (requires -s) run as a headless session (requires -s)
-e <command>:: -e <command>::
execute argument on initialisation execute the *command* after the initialization phase
-f <command>:: -f <keys>::
act as a filter, executing given keys on given files 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>:: -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>:: -c <session_id>::
connect to given session connect to the given session
-s <session_id>:: -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:: file::
one or more files to edit 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:: kak -f "ggO// kak: tabstop=8<esc>" *.c::
Insert a modeline that sets the tabstop variable at the beginning of several source code files 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 FILES
----- -----
If not started with the -n switch, Kakoune will source the '../share/kak/kakrc' file relative to the kak binary, 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, specify the nice assistant you get in info boxes,
can be *clippy* (the default), *cat* or *none* 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*::: *ncurses_wheel_down_button*, *ncurses_wheel_up_button*:::
specify which button send for wheel down/up events 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