mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
doc + meson.build: update information about foot.ini, small cleanup
- foot.ini.5: mention location of example config file - foot.1: replace outdated (or incomplete) information about the location of the config file with references to foot.ini.5 - foot.1 and foot.ini.5: conform to scdoc specification, thus surround each header with (at least) one blank line. additionally consistently use exactly one line before/after each header (was sometimes two before) - foot.1: some parts of the keybindings had their own section, move into KEYBOARD SHORTCUTS section - foot.1: move EXIT STATUS section to the end where it is commonly found - foot.1: copy information about config file handling from the beginning of foot.ini.5 into the CONFIGURATION section of foot.1 - INSTALL.md: foot.ini is no longer included in the documentation - meson.build: do not bundle foot.ini with documentation anymore, see also https://codeberg.org/dnkl/foot/pulls/1015 Closes #1002
This commit is contained in:
parent
9907d7bbe9
commit
e6f884a9e1
4 changed files with 34 additions and 36 deletions
|
|
@ -149,8 +149,8 @@ Available compile-time options:
|
||||||
| `-Ddefault-terminfo` | string | `foot` | Default value of `TERM` | none |
|
| `-Ddefault-terminfo` | string | `foot` | Default value of `TERM` | none |
|
||||||
| `-Dcustom-terminfo-install-location` | string | `${datadir}/terminfo` | Value to set `TERMINFO` to | None |
|
| `-Dcustom-terminfo-install-location` | string | `${datadir}/terminfo` | Value to set `TERMINFO` to | None |
|
||||||
|
|
||||||
Documentation includes the man pages, the example `foot.ini`, readme,
|
Documentation includes the man pages, readme, changelog and license
|
||||||
changelog and license files.
|
files.
|
||||||
|
|
||||||
`-Ddefault-terminfo`: I strongly recommend leaving the default
|
`-Ddefault-terminfo`: I strongly recommend leaving the default
|
||||||
value. Use this option if you plan on installing the terminfo files
|
value. Use this option if you plan on installing the terminfo files
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
foot(1)
|
foot(1)
|
||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
foot - Wayland terminal emulator
|
foot - Wayland terminal emulator
|
||||||
|
|
||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
|
|
||||||
*foot* [_OPTIONS_]++
|
*foot* [_OPTIONS_]++
|
||||||
*foot* [_OPTIONS_] <_command_> [_COMMAND OPTIONS_]
|
*foot* [_OPTIONS_] <_command_> [_COMMAND OPTIONS_]
|
||||||
|
|
||||||
|
|
@ -23,8 +25,7 @@ the foot command line
|
||||||
# OPTIONS
|
# OPTIONS
|
||||||
|
|
||||||
*-c*,*--config*=_PATH_
|
*-c*,*--config*=_PATH_
|
||||||
Path to configuration file. Default:
|
Path to configuration file, see *foot.ini*(5) for details.
|
||||||
*$XDG_CONFIG_HOME/foot/foot.ini*.
|
|
||||||
|
|
||||||
*-C*,*--check-config*
|
*-C*,*--check-config*
|
||||||
Verify configuration and then exit with 0 if ok, otherwise exit
|
Verify configuration and then exit with 0 if ok, otherwise exit
|
||||||
|
|
@ -164,13 +165,6 @@ the foot command line
|
||||||
with the same results as with xterm, instead of producing an
|
with the same results as with xterm, instead of producing an
|
||||||
"invalid option" error.
|
"invalid option" error.
|
||||||
|
|
||||||
# EXIT STATUS
|
|
||||||
|
|
||||||
Foot will exit with code 230 if there is a failure in foot itself.
|
|
||||||
|
|
||||||
In all other cases, the exit code is that of the client application
|
|
||||||
(i.e. the shell).
|
|
||||||
|
|
||||||
# KEYBOARD SHORTCUTS
|
# KEYBOARD SHORTCUTS
|
||||||
|
|
||||||
The following keyboard shortcuts are available by default. They can be
|
The following keyboard shortcuts are available by default. They can be
|
||||||
|
|
@ -211,7 +205,6 @@ default) available; see *foot.ini*(5).
|
||||||
*ctrl*+*shift*+*u*
|
*ctrl*+*shift*+*u*
|
||||||
Activate URL mode, allowing you to "launch" URLs.
|
Activate URL mode, allowing you to "launch" URLs.
|
||||||
|
|
||||||
|
|
||||||
## SCROLLBACK SEARCH
|
## SCROLLBACK SEARCH
|
||||||
|
|
||||||
*ctrl*+*r*
|
*ctrl*+*r*
|
||||||
|
|
@ -245,7 +238,7 @@ default) available; see *foot.ini*(5).
|
||||||
selection. The terminal selection is kept, allowing you to press
|
selection. The terminal selection is kept, allowing you to press
|
||||||
*ctrl*+*shift*+*c* to copy it to the clipboard.
|
*ctrl*+*shift*+*c* to copy it to the clipboard.
|
||||||
|
|
||||||
# URL MODE
|
## URL MODE
|
||||||
|
|
||||||
*t*
|
*t*
|
||||||
Toggle URL visibility in jump label.
|
Toggle URL visibility in jump label.
|
||||||
|
|
@ -253,8 +246,7 @@ default) available; see *foot.ini*(5).
|
||||||
*escape*, *ctrl*+*g*, *ctrl*+*c*, *ctrl*+*d*
|
*escape*, *ctrl*+*g*, *ctrl*+*c*, *ctrl*+*d*
|
||||||
Exit URL mode without launching a URL.
|
Exit URL mode without launching a URL.
|
||||||
|
|
||||||
|
## MOUSE SHORTCUTS
|
||||||
# MOUSE SHORTCUTS
|
|
||||||
|
|
||||||
*left*, single-click
|
*left*, single-click
|
||||||
Drag to select; when released, the selected text is copied to the
|
Drag to select; when released, the selected text is copied to the
|
||||||
|
|
@ -365,7 +357,18 @@ numbers, when in _application_ mode.
|
||||||
|
|
||||||
# CONFIGURATION
|
# CONFIGURATION
|
||||||
|
|
||||||
See *foot.ini*(5)
|
foot will search for a configuration file in the following locations,
|
||||||
|
in this order:
|
||||||
|
|
||||||
|
- *XDG_CONFIG_HOME/foot/foot.ini* (defaulting to
|
||||||
|
*~/.config/foot/foot.ini* if unset)
|
||||||
|
- *XDG_CONFIG_DIRS/foot/foot.ini* (defaulting to
|
||||||
|
*/etc/xdg/foot/foot.ini* if unset)
|
||||||
|
|
||||||
|
An example configuration file containing all options with their default value
|
||||||
|
commented out will usually be installed to */etc/xdg/foot/foot.ini*.
|
||||||
|
|
||||||
|
For more information, see *foot.ini*(5).
|
||||||
|
|
||||||
# TERMINFO
|
# TERMINFO
|
||||||
|
|
||||||
|
|
@ -446,6 +449,12 @@ capability in the multi query. This allows us to send a proper
|
||||||
success/fail flag for each queried capability. Responses for all
|
success/fail flag for each queried capability. Responses for all
|
||||||
queried capabilities are always sent. No queries are ever dropped.
|
queried capabilities are always sent. No queries are ever dropped.
|
||||||
|
|
||||||
|
# EXIT STATUS
|
||||||
|
|
||||||
|
Foot will exit with code 230 if there is a failure in foot itself.
|
||||||
|
|
||||||
|
In all other cases, the exit code is that of the client application
|
||||||
|
(i.e. the shell).
|
||||||
|
|
||||||
# ENVIRONMENT
|
# ENVIRONMENT
|
||||||
|
|
||||||
|
|
@ -456,11 +465,12 @@ The following environment variables are used by foot:
|
||||||
specified and the *shell* option in *foot.ini*(5) is not set.
|
specified and the *shell* option in *foot.ini*(5) is not set.
|
||||||
|
|
||||||
*XDG\_CONFIG\_HOME*
|
*XDG\_CONFIG\_HOME*
|
||||||
Used to determine the default location of *foot.ini*(5).
|
Used to determine the location of the configuration file, see
|
||||||
|
*foot.ini*(5) for details.
|
||||||
|
|
||||||
*XDG\_CONFIG\_DIRS*
|
*XDG\_CONFIG\_DIRS*
|
||||||
Used to determine the default fallback location of *foot.ini*(5),
|
Used to determine the location of the configuration file, see
|
||||||
when not found in *${XDG\_CONFIG\_HOME:-~/.config}*.
|
*foot.ini*(5) for details.
|
||||||
|
|
||||||
*XDG\_RUNTIME\_DIR*
|
*XDG\_RUNTIME\_DIR*
|
||||||
Used to construct the default _PATH_ for the *--server*
|
Used to construct the default _PATH_ for the *--server*
|
||||||
|
|
@ -507,7 +517,6 @@ The report should contain the following:
|
||||||
with symbols.
|
with symbols.
|
||||||
- Steps to reproduce. The more details the better.
|
- Steps to reproduce. The more details the better.
|
||||||
|
|
||||||
|
|
||||||
# IRC
|
# IRC
|
||||||
|
|
||||||
\#foot on irc.libera.chat
|
\#foot on irc.libera.chat
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
foot.ini(5)
|
foot.ini(5)
|
||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
foot.ini - configuration file for *foot*(1)
|
foot.ini - configuration file for *foot*(1)
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
|
|
@ -18,6 +19,9 @@ in this order:
|
||||||
- *XDG_CONFIG_DIRS/foot/foot.ini* (defaulting to
|
- *XDG_CONFIG_DIRS/foot/foot.ini* (defaulting to
|
||||||
*/etc/xdg/foot/foot.ini* if unset)
|
*/etc/xdg/foot/foot.ini* if unset)
|
||||||
|
|
||||||
|
An example configuration file containing all options with their default value
|
||||||
|
commented out will usually be installed to */etc/xdg/foot/foot.ini*.
|
||||||
|
|
||||||
# SECTION: main
|
# SECTION: main
|
||||||
|
|
||||||
*shell*
|
*shell*
|
||||||
|
|
@ -301,7 +305,6 @@ in this order:
|
||||||
(including SMT). Note that this is not always the best value. In
|
(including SMT). Note that this is not always the best value. In
|
||||||
some cases, the number of physical _cores_ is better.
|
some cases, the number of physical _cores_ is better.
|
||||||
|
|
||||||
|
|
||||||
# SECTION: bell
|
# SECTION: bell
|
||||||
|
|
||||||
*urgent*
|
*urgent*
|
||||||
|
|
@ -333,7 +336,6 @@ in this order:
|
||||||
Whether to run the command on *BEL* even while focused. Default:
|
Whether to run the command on *BEL* even while focused. Default:
|
||||||
_no_
|
_no_
|
||||||
|
|
||||||
|
|
||||||
# SECTION: scrollback
|
# SECTION: scrollback
|
||||||
|
|
||||||
*lines*
|
*lines*
|
||||||
|
|
@ -359,7 +361,6 @@ in this order:
|
||||||
string. This option is ignored if
|
string. This option is ignored if
|
||||||
*indicator-position=none*. Default: _empty string_.
|
*indicator-position=none*. Default: _empty string_.
|
||||||
|
|
||||||
|
|
||||||
# SECTION: url
|
# SECTION: url
|
||||||
|
|
||||||
*launch*
|
*launch*
|
||||||
|
|
@ -403,7 +404,6 @@ in this order:
|
||||||
Default:
|
Default:
|
||||||
_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-\_.,~:;/?#@!$&%\*+="'()[]_
|
_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-\_.,~:;/?#@!$&%\*+="'()[]_
|
||||||
|
|
||||||
|
|
||||||
# SECTION: cursor
|
# SECTION: cursor
|
||||||
|
|
||||||
This section controls the cursor style and color. Note that
|
This section controls the cursor style and color. Note that
|
||||||
|
|
@ -446,7 +446,6 @@ applications can change these at runtime.
|
||||||
|
|
||||||
Default: _font underline thickness_.
|
Default: _font underline thickness_.
|
||||||
|
|
||||||
|
|
||||||
# SECTION: mouse
|
# SECTION: mouse
|
||||||
|
|
||||||
*hide-when-typing*
|
*hide-when-typing*
|
||||||
|
|
@ -471,7 +470,6 @@ applications can change these at runtime.
|
||||||
|
|
||||||
Default: _yes_.
|
Default: _yes_.
|
||||||
|
|
||||||
|
|
||||||
# SECTION: colors
|
# SECTION: colors
|
||||||
|
|
||||||
This section controls the 16 ANSI colors, the default foreground and
|
This section controls the 16 ANSI colors, the default foreground and
|
||||||
|
|
@ -559,7 +557,6 @@ can configure the background transparency with the _alpha_ option.
|
||||||
Color to use for the underline used to highlight URLs in URL
|
Color to use for the underline used to highlight URLs in URL
|
||||||
mode. Default: _regular3_.
|
mode. Default: _regular3_.
|
||||||
|
|
||||||
|
|
||||||
# SECTION: csd
|
# SECTION: csd
|
||||||
|
|
||||||
This section controls the look of the _CSDs_ (Client Side
|
This section controls the look of the _CSDs_ (Client Side
|
||||||
|
|
@ -640,7 +637,6 @@ Examples:
|
||||||
Close button's background color. Default: use the default
|
Close button's background color. Default: use the default
|
||||||
_regular1_ color (red).
|
_regular1_ color (red).
|
||||||
|
|
||||||
|
|
||||||
# SECTION: key-bindings
|
# SECTION: key-bindings
|
||||||
|
|
||||||
This section lets you override the default key bindings.
|
This section lets you override the default key bindings.
|
||||||
|
|
@ -765,7 +761,6 @@ e.g. *search-start=none*.
|
||||||
jump label with a key sequence that will place the URL in the
|
jump label with a key sequence that will place the URL in the
|
||||||
clipboard. Default: _none_.
|
clipboard. Default: _none_.
|
||||||
|
|
||||||
|
|
||||||
# SECTION: search-bindings
|
# SECTION: search-bindings
|
||||||
|
|
||||||
This section lets you override the default key bindings used in
|
This section lets you override the default key bindings used in
|
||||||
|
|
@ -844,7 +839,6 @@ scrollback search mode. The syntax is exactly the same as the regular
|
||||||
Paste from the _primary selection_ into the search
|
Paste from the _primary selection_ into the search
|
||||||
buffer. Default: _Shift+Insert_.
|
buffer. Default: _Shift+Insert_.
|
||||||
|
|
||||||
|
|
||||||
# SECTION: url-bindings
|
# SECTION: url-bindings
|
||||||
|
|
||||||
This section lets you override the default key bindings used in URL
|
This section lets you override the default key bindings used in URL
|
||||||
|
|
@ -871,7 +865,6 @@ Be careful; do not use single-letter keys that are also used in
|
||||||
|
|
||||||
Default: _t_.
|
Default: _t_.
|
||||||
|
|
||||||
|
|
||||||
# SECTION: text-bindings
|
# SECTION: text-bindings
|
||||||
|
|
||||||
This section lets you remap key combinations to custom escape
|
This section lets you remap key combinations to custom escape
|
||||||
|
|
@ -902,7 +895,6 @@ Another example: to remap _Super+c_ to _Control+c_:
|
||||||
|
|
||||||
*\\x03 = Mod4+c*
|
*\\x03 = Mod4+c*
|
||||||
|
|
||||||
|
|
||||||
# SECTION: mouse-bindings
|
# SECTION: mouse-bindings
|
||||||
|
|
||||||
This section lets you override the default mouse bindings.
|
This section lets you override the default mouse bindings.
|
||||||
|
|
@ -979,11 +971,9 @@ actions listed under *key-bindings* can be used here as well.
|
||||||
*select-extend* operations to be character wise. This action is
|
*select-extend* operations to be character wise. This action is
|
||||||
ignored for block selections. Default: _Control+BTN\_RIGHT_.
|
ignored for block selections. Default: _Control+BTN\_RIGHT_.
|
||||||
|
|
||||||
|
|
||||||
*primary-paste*
|
*primary-paste*
|
||||||
Pastes from the _primary selection_. Default: _BTN\_MIDDLE_.
|
Pastes from the _primary selection_. Default: _BTN\_MIDDLE_.
|
||||||
|
|
||||||
|
|
||||||
# TWEAK
|
# TWEAK
|
||||||
|
|
||||||
This section is for advanced users and describes configuration options
|
This section is for advanced users and describes configuration options
|
||||||
|
|
@ -1223,7 +1213,6 @@ any of these options.
|
||||||
*sixel*
|
*sixel*
|
||||||
Boolean. When enabled, foot will process sixel images. Default: _yes_
|
Boolean. When enabled, foot will process sixel images. Default: _yes_
|
||||||
|
|
||||||
|
|
||||||
# SEE ALSO
|
# SEE ALSO
|
||||||
|
|
||||||
*foot*(1), *footclient*(1)
|
*foot*(1), *footclient*(1)
|
||||||
|
|
|
||||||
|
|
@ -266,11 +266,11 @@ if systemd.found()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
scdoc = dependency('scdoc', native: true, required: get_option('docs'))
|
scdoc = dependency('scdoc', native: true, required: get_option('docs'))
|
||||||
|
install_data('foot.ini', install_dir: join_paths(get_option('sysconfdir'), 'xdg', 'foot'))
|
||||||
if scdoc.found()
|
if scdoc.found()
|
||||||
install_data(
|
install_data(
|
||||||
'LICENSE', 'README.md', 'CHANGELOG.md',
|
'LICENSE', 'README.md', 'CHANGELOG.md',
|
||||||
install_dir: join_paths(get_option('datadir'), 'doc', 'foot'))
|
install_dir: join_paths(get_option('datadir'), 'doc', 'foot'))
|
||||||
install_data('foot.ini', install_dir: join_paths(get_option('sysconfdir'), 'xdg', 'foot'))
|
|
||||||
subdir('doc')
|
subdir('doc')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue