mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-24 09:05:48 -04:00
config: rename scrollback-indicator-style value 'moving' to 'relative'
This commit is contained in:
parent
c4679e474e
commit
e3be2cbd6f
4 changed files with 7 additions and 7 deletions
4
config.c
4
config.c
|
|
@ -297,7 +297,7 @@ parse_section_main(const char *key, const char *value, struct config *conf,
|
||||||
else if (strcmp(value, "static") == 0)
|
else if (strcmp(value, "static") == 0)
|
||||||
conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_STATIC;
|
conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_STATIC;
|
||||||
else if (strcmp(value, "moving") == 0)
|
else if (strcmp(value, "moving") == 0)
|
||||||
conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_MOVING;
|
conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_RELATIVE;
|
||||||
else {
|
else {
|
||||||
LOG_ERR("%s:%d: scrollback-indicator-style must be one of "
|
LOG_ERR("%s:%d: scrollback-indicator-style must be one of "
|
||||||
"'none', 'static' or 'moving'",
|
"'none', 'static' or 'moving'",
|
||||||
|
|
@ -948,7 +948,7 @@ config_load(struct config *conf, const char *conf_path)
|
||||||
.scrollback = {
|
.scrollback = {
|
||||||
.lines = 1000,
|
.lines = 1000,
|
||||||
.indicator = {
|
.indicator = {
|
||||||
.style = SCROLLBACK_INDICATOR_STYLE_MOVING,
|
.style = SCROLLBACK_INDICATOR_STYLE_RELATIVE,
|
||||||
.format = SCROLLBACK_INDICATOR_FORMAT_PERCENT,
|
.format = SCROLLBACK_INDICATOR_FORMAT_PERCENT,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
2
config.h
2
config.h
|
|
@ -46,7 +46,7 @@ struct config {
|
||||||
enum {
|
enum {
|
||||||
SCROLLBACK_INDICATOR_STYLE_NONE,
|
SCROLLBACK_INDICATOR_STYLE_NONE,
|
||||||
SCROLLBACK_INDICATOR_STYLE_STATIC,
|
SCROLLBACK_INDICATOR_STYLE_STATIC,
|
||||||
SCROLLBACK_INDICATOR_STYLE_MOVING
|
SCROLLBACK_INDICATOR_STYLE_RELATIVE
|
||||||
} style;
|
} style;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
|
||||||
|
|
@ -70,11 +70,11 @@ in this order:
|
||||||
|
|
||||||
*scrollback-indicator-style*
|
*scrollback-indicator-style*
|
||||||
Configures the style of the scrollback position indicator. One of
|
Configures the style of the scrollback position indicator. One of
|
||||||
*none*, *static* or *moving*. *none* disables the indicator
|
*none*, *static* or *relative*. *none* disables the indicator
|
||||||
completely. *static* always renders the indicator near the top at
|
completely. *static* always renders the indicator near the top at
|
||||||
the window, and *moving* renders the indicator at the position
|
the window, and *relative* renders the indicator at the position
|
||||||
corresponding to the current scrollback position. Default:
|
corresponding to the current scrollback position. Default:
|
||||||
_moving_.
|
_relative_.
|
||||||
|
|
||||||
*scrollback-indicator-format*
|
*scrollback-indicator-format*
|
||||||
Which format to use when displaying the scrollback position
|
Which format to use when displaying the scrollback position
|
||||||
|
|
|
||||||
2
footrc
2
footrc
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# font=monospace
|
# font=monospace
|
||||||
# scrollback=1000
|
# scrollback=1000
|
||||||
# scrollback-indicator-style=moving
|
# scrollback-indicator-style=relative
|
||||||
# scrollback-indicator-format=percent
|
# scrollback-indicator-format=percent
|
||||||
# geometry=700x500
|
# geometry=700x500
|
||||||
# pad=2x2
|
# pad=2x2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue