aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2026-09-02 10:59:24 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-09-02 11:00:19 +0000
commit9284ad2d92b2b2a9928e17a305bd595c7723861b (patch)
tree081d85d3779cba1645a461bf1de3eb5c3747169f /config.c
parentconfig: remove support for the deprecated colors and colors2 sections (diff)
config: remove support for the deprecated color-theme-switch-{1,2} key bindings
They were deprecated in 1.26.0, along with the 'colors' and 'colors2' sections.
Diffstat (limited to 'config.c')
-rw-r--r--config.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/config.c b/config.c
index e216f0d2..221258dd 100644
--- a/config.c
+++ b/config.c
@@ -183,8 +183,6 @@ static const char *const binding_action_map[] = {
[BIND_ACTION_QUIT] = "quit",
[BIND_ACTION_REGEX_LAUNCH] = "regex-launch",
[BIND_ACTION_REGEX_COPY] = "regex-copy",
- [BIND_ACTION_THEME_SWITCH_1] = "color-theme-switch-1",
- [BIND_ACTION_THEME_SWITCH_2] = "color-theme-switch-2",
[BIND_ACTION_THEME_SWITCH_DARK] = "color-theme-switch-dark",
[BIND_ACTION_THEME_SWITCH_LIGHT] = "color-theme-switch-light",
[BIND_ACTION_THEME_TOGGLE] = "color-theme-toggle",
@@ -2409,29 +2407,6 @@ parse_key_binding_section(struct context *ctx,
aux.regex_name = regex_name;
}
- if (action_map == binding_action_map &&
- action >= BIND_ACTION_THEME_SWITCH_1 &&
- action <= BIND_ACTION_THEME_SWITCH_2)
- {
- const char *use_instead =
- action_map[action == BIND_ACTION_THEME_SWITCH_1
- ? BIND_ACTION_THEME_SWITCH_DARK
- : BIND_ACTION_THEME_SWITCH_LIGHT];
-
- const char *notif = action == BIND_ACTION_THEME_SWITCH_1
- ? "[key-bindings].color-theme-switch-1: use [key-bindings].color-theme-switch-dark instead"
- : "[key-bindings].color-theme-switch-2: use [key-bindings].color-theme-switch-light instead";
-
- LOG_WARN("%s:%d: [key-bindings].%s: deprecated, use %s instead",
- ctx->path, ctx->lineno,
- action_map[action], use_instead);
-
- user_notification_add(
- &ctx->conf->notifications,
- USER_NOTIFICATION_DEPRECATED,
- xstrdup(notif));
- }
-
if (!value_to_key_combos(ctx, action, &aux, bindings, KEY_BINDING)) {
free_binding_aux(&aux);
return false;