Add self documentation to ui_options
* For now the non ui code will hold this information. Ideally the UI would be able to describe its options in some way.
This commit is contained in:
parent
a6cd764042
commit
faa3b3b173
10
src/main.cc
10
src/main.cc
|
@ -226,8 +226,14 @@ void register_options()
|
||||||
"autoreload buffer when a filesystem modification is detected",
|
"autoreload buffer when a filesystem modification is detected",
|
||||||
Ask);
|
Ask);
|
||||||
reg.declare_option("ui_options",
|
reg.declare_option("ui_options",
|
||||||
"colon separated list of <key>=<value> options that are"
|
"colon separated list of <key>=<value> options that are "
|
||||||
"passed to and interpreted by the user interface",
|
"passed to and interpreted by the ncurses user interface\n"
|
||||||
|
"<key>: <value>:\n"
|
||||||
|
" ncurses_assistant clippy|cat|bool\n"
|
||||||
|
" ncurses_status_on_top bool\n"
|
||||||
|
" ncurses_set_title bool\n"
|
||||||
|
" ncurses_wheel_up_button int\n"
|
||||||
|
" ncurses_wheel_down_button int\n",
|
||||||
UserInterface::Options{});
|
UserInterface::Options{});
|
||||||
reg.declare_option("modelinefmt", "format string used to generate the modeline",
|
reg.declare_option("modelinefmt", "format string used to generate the modeline",
|
||||||
"%val{bufname} %val{cursor_line}:%val{cursor_char_column} "_str);
|
"%val{bufname} %val{cursor_line}:%val{cursor_char_column} "_str);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user