mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-23 15:23:29 +03:00
rc: Add some documentation for existing plugins..
This commit is contained in:
parent
4296305171
commit
d628cb50cf
23
rc/tools/autorestore.asciidoc
Normal file
23
rc/tools/autorestore.asciidoc
Normal file
@ -0,0 +1,23 @@
|
||||
= Automatically restore unsaved work after a crash.
|
||||
|
||||
When Kakoune crashes, it automatically writes out unsaved changes to backup
|
||||
files with predictable names. When you edit a file, if such a backup file
|
||||
exists, this plugin will automatically load the content of the backup file
|
||||
instead.
|
||||
|
||||
== Commands
|
||||
|
||||
*autorestore-restore-buffer*::
|
||||
Restore the backup for the current file if it exists.
|
||||
|
||||
*autorestore-purge-backups*::
|
||||
Remove all the backups of the current buffer.
|
||||
|
||||
*autorestore-disable*::
|
||||
Disable automatic backup recovering for this session.
|
||||
|
||||
== Options
|
||||
|
||||
*autorestore_purge_restored* (bool)::
|
||||
*default* true +
|
||||
If true, remove backups once they've been restored
|
15
rc/tools/doc.asciidoc
Normal file
15
rc/tools/doc.asciidoc
Normal file
@ -0,0 +1,15 @@
|
||||
= Kakoune's online documentation
|
||||
|
||||
== Commands
|
||||
|
||||
*doc* <topic>::
|
||||
*alias* help +
|
||||
display documentation about a topic. The completion list displays the
|
||||
available topics
|
||||
|
||||
== Options
|
||||
|
||||
*docsclient* (str)::
|
||||
If set, the `:doc` command (and other commands that display documentation)
|
||||
will try to display documentation in the Kakoune client with this name.
|
||||
See <<commands#clients-and-sessions,`:doc commands clients-and-sessions`>>
|
57
rc/tools/lint.asciidoc
Normal file
57
rc/tools/lint.asciidoc
Normal file
@ -0,0 +1,57 @@
|
||||
= Integrate with tools that check files for problems.
|
||||
|
||||
Many file-formats have "lint" tools that check for common problems and point out
|
||||
where they occur. Most of these tools produce output in the the traditional
|
||||
message format:
|
||||
|
||||
----
|
||||
{filename}:{line}:{column}: {kind}: {message}
|
||||
----
|
||||
|
||||
If the 'kind' field contains 'error', the message is treated as an error,
|
||||
otherwise it is assumed to be a warning.
|
||||
|
||||
This plugin can run such tools and collect the resulting messages. The complete
|
||||
output is collected in the `*lint-output*` buffer, and any lines in the current
|
||||
file with messages will have a marker displayed next to them in the left margin.
|
||||
When the cursor moves onto a line with the problem, the associated messages will
|
||||
be displayed in a tool tip..
|
||||
|
||||
== Commands
|
||||
|
||||
*lint-buffer*::
|
||||
*alias* lint +
|
||||
Pass the entire buffer through the program named in `lintcmd`. The buffer
|
||||
may contain unsaved changes.
|
||||
|
||||
*lint-selections* [-command <cmd>]::
|
||||
Pass each of the selections through `<cmd>` or, if the `-command` switch is
|
||||
not provided, through the program named in `lintcmd`. The buffer may contain
|
||||
unsaved changes.
|
||||
|
||||
*lint-hide-diagnostics*::
|
||||
Hide line markers and disable the automatic display of messages, if any.
|
||||
|
||||
*lint-next-message*::
|
||||
Jump to the next message generated by the last `lint-buffer` or
|
||||
`lint-selections` command.
|
||||
|
||||
*lint-previous-message*::
|
||||
Jump to the previous message generated by the last `lint-buffer` or
|
||||
`lint-selections` command.
|
||||
|
||||
== Options
|
||||
|
||||
*lintcmd* (str)::
|
||||
The shell command used by lint-buffer and lint-selections.
|
||||
+
|
||||
It will be given the path to a file containing the text to be
|
||||
linted, and must produce output in the format:
|
||||
|
||||
|
||||
*toolsclient* (str)::
|
||||
If set, the `:lint` command (and other commands that point out files and
|
||||
line-numbers) will try to display its results in the Kakoune client with
|
||||
this name.
|
||||
See <<commands#clients-and-sessions,`:doc commands clients-and-sessions`>>
|
||||
|
Loading…
Reference in New Issue
Block a user