aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-04 19:39:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-07 15:33:32 +0000
commit0a1c5e44c4459390e927440a59acafafc8372da5 (patch)
tree75fa166e1972996adc49579cecee804cda84c86b
parentrender: urls: tweak positioning (diff)
config: rename ‘show-urls’ to ‘show-urls-launch’
-rw-r--r--config.c4
-rw-r--r--doc/foot.ini.5.scd2
-rw-r--r--foot.ini1
-rw-r--r--input.c2
-rw-r--r--wayland.h4
5 files changed, 7 insertions, 6 deletions
diff --git a/config.c b/config.c
index 2cf62f45..1c320da8 100644
--- a/config.c
+++ b/config.c
@@ -75,7 +75,7 @@ static const char *const binding_action_map[] = {
[BIND_ACTION_PIPE_SCROLLBACK] = "pipe-scrollback",
[BIND_ACTION_PIPE_VIEW] = "pipe-visible",
[BIND_ACTION_PIPE_SELECTED] = "pipe-selected",
- [BIND_ACTION_SHOW_URLS] = "show-urls",
+ [BIND_ACTION_SHOW_URLS_LAUNCH] = "show-urls-launch",
/* Mouse-specific actions */
[BIND_ACTION_SELECT_BEGIN] = "select-begin",
@@ -2114,7 +2114,7 @@ add_default_key_bindings(struct config *conf)
add_binding(BIND_ACTION_FONT_SIZE_RESET, ctrl, XKB_KEY_0);
add_binding(BIND_ACTION_FONT_SIZE_RESET, ctrl, XKB_KEY_KP_0);
add_binding(BIND_ACTION_SPAWN_TERMINAL, ctrl_shift, XKB_KEY_N);
- add_binding(BIND_ACTION_SHOW_URLS, ctrl_shift, XKB_KEY_F);
+ add_binding(BIND_ACTION_SHOW_URLS_LAUNCH, ctrl_shift, XKB_KEY_F);
#undef add_binding
}
diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd
index 0eb4cc11..4d552a67 100644
--- a/doc/foot.ini.5.scd
+++ b/doc/foot.ini.5.scd
@@ -495,7 +495,7 @@ e.g. *search-start=none*.
Default: _not bound_
-*show-urls*
+*show-urls-launch*
Enters URL mode, where all currently visible URLs are tagged with
a jump label with a key sequence that will open the URL. Default:
_Control+Shift+F_.
diff --git a/foot.ini b/foot.ini
index b8998c18..41dec6c6 100644
--- a/foot.ini
+++ b/foot.ini
@@ -97,6 +97,7 @@
# pipe-visible=[sh -c "xurls | bemenu | xargs -r firefox"] none
# pipe-scrollback=[sh -c "xurls | bemenu | xargs -r firefox"] none
# pipe-selected=[xargs -r firefox] none
+# show-urls=Control+Shift+F
[search-bindings]
# cancel=Control+g Escape
diff --git a/input.c b/input.c
index 9dbdaad1..dfbf4fa3 100644
--- a/input.c
+++ b/input.c
@@ -272,7 +272,7 @@ execute_binding(struct seat *seat, struct terminal *term,
return true;
}
- case BIND_ACTION_SHOW_URLS:
+ case BIND_ACTION_SHOW_URLS_LAUNCH:
xassert(!urls_mode_is_active(term));
urls_collect(term);
diff --git a/wayland.h b/wayland.h
index 2e5997e4..3ad7b862 100644
--- a/wayland.h
+++ b/wayland.h
@@ -49,7 +49,7 @@ enum bind_action_normal {
BIND_ACTION_PIPE_SCROLLBACK,
BIND_ACTION_PIPE_VIEW,
BIND_ACTION_PIPE_SELECTED,
- BIND_ACTION_SHOW_URLS,
+ BIND_ACTION_SHOW_URLS_LAUNCH,
/* Mouse specific actions - i.e. they require a mouse coordinate */
BIND_ACTION_SELECT_BEGIN,
@@ -60,7 +60,7 @@ enum bind_action_normal {
BIND_ACTION_SELECT_WORD_WS,
BIND_ACTION_SELECT_ROW,
- BIND_ACTION_KEY_COUNT = BIND_ACTION_SHOW_URLS + 1,
+ BIND_ACTION_KEY_COUNT = BIND_ACTION_SHOW_URLS_LAUNCH + 1,
BIND_ACTION_COUNT = BIND_ACTION_SELECT_ROW + 1,
};