Skip to content

Commit b6e930a

Browse files
committed
Migrate the raw troff kakoune man page to the asciidoc format
1 parent caa8760 commit b6e930a

File tree

3 files changed

+93
-149
lines changed

3 files changed

+93
-149
lines changed

doc/kakoune.1

-147
This file was deleted.

doc/kakoune.1.txt

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
kakoune(1)
2+
==========
3+
4+
NAME
5+
----
6+
kakoune - a vim inspired, selection oriented code editor
7+
8+
SYNOPSIS
9+
--------
10+
*kak* [-q] [-u] [-n] [-l] [-e command] [-f command] [-p session_id] [-c session_id|[[-d] -s session_id] file ...
11+
12+
DESCRIPTION
13+
-----------
14+
15+
Kakoune is a code editor heavily inspired by Vim, as such most of its commands are similar to Vi's ones, and it shares Vi's "keystrokes as a text editing language" model.
16+
17+
Kakoune can operate in two modes, normal and insertion. In insertion mode, keys are directly inserted into the current buffer. In normal mode, keys are used to manipulate the current selection and to enter insertion mode.
18+
19+
Kakoune has a strong focus on interactivity, most commands provide immediate and incremental results, while still being competitive (as in keystroke count) with Vim.
20+
21+
Kakoune works on selections, which are oriented, inclusive range of characters, selections have an anchor and a cursor character. Most commands move both of them, except when extending selection where the anchor character stays fixed and the cursor one moves around.
22+
23+
OPTIONS
24+
-------
25+
26+
-q::
27+
in filter mode, be quiet about errors applying keys
28+
29+
-u::
30+
use a dummy user interface, for testing purposes
31+
32+
-n::
33+
do not source kakrc files on startup
34+
35+
-l::
36+
list existing sessions
37+
38+
-d::
39+
run as a headless session (requires -s)
40+
41+
-e <command>::
42+
execute argument on initialisation
43+
44+
-f <command>::
45+
act as a filter, executing given keys on given files
46+
47+
-p <session_id>::
48+
just send stdin as commands to the given session
49+
50+
-c <session_id>::
51+
connect to given session
52+
53+
-s <session_id>::
54+
set session name
55+
56+
file::
57+
one or more files to edit
58+
59+
At startup, if -n is not specified, Kakoune will try to source the file '../share/kak/kakrc' relative to the kak binary. This kak file will then try to recursively source any files in
60+
*$XDG_CONFIG_HOME*'/kak/autoload' (with *$XDG_CONFIG_HOME* defaulting to *$HOME*'/.config', and falling back to '../share/kak/autoload' if that autoload directory does not exist), and finally
61+
*$XDG_CONFIG_HOME*'/kak/kakrc'.
62+
63+
That leads to the following behaviour: by default, with no user autoload directory, the system wide autoload directory is used, once the user wants control on autoloading, they can
64+
create an autoload directory and eventually symlink individual scripts, or the whole system wide autoload directory. They can as well add any new scripts not provided with Kakoune.
65+
66+
EXAMPLES
67+
--------
68+
69+
kak /path/to/file::
70+
Edit a file
71+
72+
kak ./file1.txt /path/to/file2.c::
73+
Edit multiple files (multiple buffers will be created)
74+
75+
kak -f "ggO// kak: tabstop=8<esc>" *.c::
76+
Insert a modeline that sets the tabstop variable at the beginning of several source code files
77+
78+
kak -e "man dup2"::
79+
Use Kakoune as a man pager
80+
81+
FILES
82+
-----
83+
84+
If not started with the -n switch, Kakoune will source the '../share/kak/kakrc' file relative to the kak binary, which will source additional files:
85+
86+
* if the *$XDG_CONFIG_HOME*'/kak/autoload' directory exists, load every '*.kak' files in it, and load recursively any subdirectory
87+
* if it does not exists, fall back to the system wide autoload directory in '../share/kak/autoload'
88+
89+
After that, if it exists, source the *$XDG_CONFIG_HOME*'/kak/kakrc' file which should be used for user configuration.
90+
In order to continue autoloading site-wide files with a local autoload directory, just add a symbolic link to '../share/kak/autoload' into your local autoload directory.

src/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ test:
6767
cd ../test && ./run
6868
tags:
6969
ctags -R
70-
man:
71-
gzip -fk ../doc/kakoune.1
70+
man: ../doc/kakoune.1.txt
71+
a2x -f manpage $<
72+
gzip -fk $(basename $<)
7273

7374
clean:
7475
rm -f .*.o .*.d kak tags

0 commit comments

Comments
 (0)