From 501a9fbb5e1ec09c26cf61c464cf5b4ae6dba28a Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 22 Mar 2022 19:07:06 +0100 Subject: url-mode: add a key binding that enables “persistent” URL mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is an alternative to ‘show-urls-launch’, where we stay in URL mode after activating an URL. Closes #964 --- config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.c') 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; } -- cgit v1.3