aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-03-22 18:07:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-17 09:24:27 +0000
commit501a9fbb5e1ec09c26cf61c464cf5b4ae6dba28a (patch)
treeb14ea152b7d8a93d3533c31c1024cdb059fe2b80 /config.c
parentchangelog: scrollback search mode highlights all matches (diff)
url-mode: add a key binding that enables “persistent” URL mode
This is an alternative to ‘show-urls-launch’, where we stay in URL mode after activating an URL. Closes #964
Diffstat (limited to 'config.c')
-rw-r--r--config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.c b/config.c
index fee47c03..f9ddf5e4 100644
--- a/config.c
+++ b/config.c
@@ -113,6 +113,7 @@ static const char *const binding_action_map[] = {
[BIND_ACTION_PIPE_SELECTED] = "pipe-selected",
[BIND_ACTION_SHOW_URLS_COPY] = "show-urls-copy",
[BIND_ACTION_SHOW_URLS_LAUNCH] = "show-urls-launch",
+ [BIND_ACTION_SHOW_URLS_PERSISTENT] = "show-urls-persistent",
[BIND_ACTION_TEXT_BINDING] = "text-binding",
/* Mouse-specific actions */
@@ -516,7 +517,7 @@ value_to_wchars(struct context *ctx, char32_t **res)
{
char32_t *s = ambstoc32(ctx->value);
if (s == NULL) {
- LOG_CONTEXTUAL_ERR("not a valie string value");
+ LOG_CONTEXTUAL_ERR("not a valid string value");
return false;
}