mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
parent
fa07c1ec67
commit
b400903e25
6 changed files with 13 additions and 1 deletions
|
|
@ -55,8 +55,10 @@
|
||||||
|
|
||||||
* `cursor.unfocused-style=unchanged|hollow|none` to `foot.ini`. The
|
* `cursor.unfocused-style=unchanged|hollow|none` to `foot.ini`. The
|
||||||
default is `hollow` ([#1582][1582]).
|
default is `hollow` ([#1582][1582]).
|
||||||
|
* New key binding: `quit` ([#1475][1475]).
|
||||||
|
|
||||||
[1582]: https://codeberg.org/dnkl/foot/issues/1582
|
[1582]: https://codeberg.org/dnkl/foot/issues/1582
|
||||||
|
[1475]: https://codeberg.org/dnkl/foot/issues/1475
|
||||||
|
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
||||||
1
config.c
1
config.c
|
|
@ -119,6 +119,7 @@ static const char *const binding_action_map[] = {
|
||||||
[BIND_ACTION_PROMPT_PREV] = "prompt-prev",
|
[BIND_ACTION_PROMPT_PREV] = "prompt-prev",
|
||||||
[BIND_ACTION_PROMPT_NEXT] = "prompt-next",
|
[BIND_ACTION_PROMPT_NEXT] = "prompt-next",
|
||||||
[BIND_ACTION_UNICODE_INPUT] = "unicode-input",
|
[BIND_ACTION_UNICODE_INPUT] = "unicode-input",
|
||||||
|
[BIND_ACTION_QUIT] = "quit",
|
||||||
|
|
||||||
/* Mouse-specific actions */
|
/* Mouse-specific actions */
|
||||||
[BIND_ACTION_SCROLLBACK_UP_MOUSE] = "scrollback-up-mouse",
|
[BIND_ACTION_SCROLLBACK_UP_MOUSE] = "scrollback-up-mouse",
|
||||||
|
|
|
||||||
|
|
@ -925,6 +925,9 @@ e.g. *search-start=none*.
|
||||||
|
|
||||||
Default: _Control+Shift+u_.
|
Default: _Control+Shift+u_.
|
||||||
|
|
||||||
|
*quit*
|
||||||
|
Quit foot. 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
|
||||||
|
|
|
||||||
1
foot.ini
1
foot.ini
|
|
@ -193,6 +193,7 @@
|
||||||
# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste
|
# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste
|
||||||
# primary-paste=Shift+Insert
|
# primary-paste=Shift+Insert
|
||||||
# unicode-input=none
|
# unicode-input=none
|
||||||
|
# quit=none
|
||||||
# scrollback-up-page=Shift+Page_Up
|
# scrollback-up-page=Shift+Page_Up
|
||||||
# scrollback-up-half-page=none
|
# scrollback-up-half-page=none
|
||||||
# scrollback-up-line=none
|
# scrollback-up-line=none
|
||||||
|
|
|
||||||
4
input.c
4
input.c
|
|
@ -444,6 +444,10 @@ execute_binding(struct seat *seat, struct terminal *term,
|
||||||
unicode_mode_activate(seat);
|
unicode_mode_activate(seat);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
case BIND_ACTION_QUIT:
|
||||||
|
term_shutdown(term);
|
||||||
|
return true;
|
||||||
|
|
||||||
case BIND_ACTION_SELECT_BEGIN:
|
case BIND_ACTION_SELECT_BEGIN:
|
||||||
selection_start(
|
selection_start(
|
||||||
term, seat->mouse.col, seat->mouse.row, SELECTION_CHAR_WISE, false);
|
term, seat->mouse.col, seat->mouse.row, SELECTION_CHAR_WISE, false);
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ enum bind_action_normal {
|
||||||
BIND_ACTION_PROMPT_PREV,
|
BIND_ACTION_PROMPT_PREV,
|
||||||
BIND_ACTION_PROMPT_NEXT,
|
BIND_ACTION_PROMPT_NEXT,
|
||||||
BIND_ACTION_UNICODE_INPUT,
|
BIND_ACTION_UNICODE_INPUT,
|
||||||
|
BIND_ACTION_QUIT,
|
||||||
|
|
||||||
/* Mouse specific actions - i.e. they require a mouse coordinate */
|
/* Mouse specific actions - i.e. they require a mouse coordinate */
|
||||||
BIND_ACTION_SCROLLBACK_UP_MOUSE,
|
BIND_ACTION_SCROLLBACK_UP_MOUSE,
|
||||||
|
|
@ -53,7 +54,7 @@ enum bind_action_normal {
|
||||||
BIND_ACTION_SELECT_QUOTE,
|
BIND_ACTION_SELECT_QUOTE,
|
||||||
BIND_ACTION_SELECT_ROW,
|
BIND_ACTION_SELECT_ROW,
|
||||||
|
|
||||||
BIND_ACTION_KEY_COUNT = BIND_ACTION_UNICODE_INPUT + 1,
|
BIND_ACTION_KEY_COUNT = BIND_ACTION_QUIT + 1,
|
||||||
BIND_ACTION_COUNT = BIND_ACTION_SELECT_ROW + 1,
|
BIND_ACTION_COUNT = BIND_ACTION_SELECT_ROW + 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue