mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -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
|
||||
default is `hollow` ([#1582][1582]).
|
||||
* New key binding: `quit` ([#1475][1475]).
|
||||
|
||||
[1582]: https://codeberg.org/dnkl/foot/issues/1582
|
||||
[1475]: https://codeberg.org/dnkl/foot/issues/1475
|
||||
|
||||
|
||||
### 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_NEXT] = "prompt-next",
|
||||
[BIND_ACTION_UNICODE_INPUT] = "unicode-input",
|
||||
[BIND_ACTION_QUIT] = "quit",
|
||||
|
||||
/* Mouse-specific actions */
|
||||
[BIND_ACTION_SCROLLBACK_UP_MOUSE] = "scrollback-up-mouse",
|
||||
|
|
|
|||
|
|
@ -925,6 +925,9 @@ e.g. *search-start=none*.
|
|||
|
||||
Default: _Control+Shift+u_.
|
||||
|
||||
*quit*
|
||||
Quit foot. Default: _none_.
|
||||
|
||||
# SECTION: search-bindings
|
||||
|
||||
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
|
||||
# primary-paste=Shift+Insert
|
||||
# unicode-input=none
|
||||
# quit=none
|
||||
# scrollback-up-page=Shift+Page_Up
|
||||
# scrollback-up-half-page=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);
|
||||
return true;
|
||||
|
||||
case BIND_ACTION_QUIT:
|
||||
term_shutdown(term);
|
||||
return true;
|
||||
|
||||
case BIND_ACTION_SELECT_BEGIN:
|
||||
selection_start(
|
||||
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_NEXT,
|
||||
BIND_ACTION_UNICODE_INPUT,
|
||||
BIND_ACTION_QUIT,
|
||||
|
||||
/* Mouse specific actions - i.e. they require a mouse coordinate */
|
||||
BIND_ACTION_SCROLLBACK_UP_MOUSE,
|
||||
|
|
@ -53,7 +54,7 @@ enum bind_action_normal {
|
|||
BIND_ACTION_SELECT_QUOTE,
|
||||
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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue