conf: add definitions for pipe-{scrollback,view} bindings

This commit is contained in:
Daniel Eklöf 2020-07-15 09:46:13 +02:00
parent 22e7131241
commit 85c50099af
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 9 additions and 0 deletions

View file

@ -63,6 +63,8 @@ static const char *binding_action_map[] = {
[BIND_ACTION_MINIMIZE] = "minimize",
[BIND_ACTION_MAXIMIZE] = "maximize",
[BIND_ACTION_FULLSCREEN] = "fullscreen",
[BIND_ACTION_PIPE_SCROLLBACK] = "pipe-scrollback",
[BIND_ACTION_PIPE_VIEW] = "pipe-visible",
};
static_assert(ALEN(binding_action_map) == BIND_ACTION_COUNT,

View file

@ -101,6 +101,11 @@ execute_binding(struct seat *seat, struct terminal *term,
xdg_toplevel_set_fullscreen(term->window->xdg_toplevel, NULL);
break;
case BIND_ACTION_PIPE_SCROLLBACK:
case BIND_ACTION_PIPE_VIEW:
LOG_ERR("unimplemented");
break;
case BIND_ACTION_COUNT:
assert(false);
break;

View file

@ -39,6 +39,8 @@ enum bind_action_normal {
BIND_ACTION_MINIMIZE,
BIND_ACTION_MAXIMIZE,
BIND_ACTION_FULLSCREEN,
BIND_ACTION_PIPE_SCROLLBACK,
BIND_ACTION_PIPE_VIEW,
BIND_ACTION_COUNT,
};