From 8d898429d21a9d523c12ab11857e3a7183b09c7c Mon Sep 17 00:00:00 2001 From: LangLangbart <92653266+LangLangBart@users.noreply.github.com> Date: Thu, 14 Dec 2023 19:41:10 +0100 Subject: [PATCH] chore: Remove toggle-preview bindings in view_history_commands --- .pre-commit-config.yaml | 2 +- gh-find-code | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ef8d1cc..f74cf83 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/crate-ci/typos - rev: v1.16.24 + rev: v1.16.25 hooks: - id: typos args: [--format, brief, --write-changes] diff --git a/gh-find-code b/gh-find-code index 311566e..ae21e42 100755 --- a/gh-find-code +++ b/gh-find-code @@ -594,10 +594,10 @@ view_history_commands() { --bind 'ctrl-t:execute-silent:open_query_in_browser {q}' \ --bind 'enter:execute:[[ -n {q} && -n {} ]] && open_in_pager=true view_contents {}' \ --bind 'esc:become:' \ - --bind '?:toggle-preview+change-preview(print_help_text)+change-preview-window:~0:+1' \ + --bind '?:change-preview(print_help_text)+change-preview-window:~0:+1' \ --bind 'load:change-preview([[ -n {q} && -n {} ]] && view_contents {})+change-preview-window:+{1}+3/3' \ --bind 'scroll-up:offset-up,scroll-down:offset-down' \ - --bind 'tab:toggle-preview+change-preview-window(hidden|nohidden:+{1}+3/3)+change-preview:[[ -n {q} && -n {} ]] && view_contents {}' \ + --bind 'tab:change-preview-window(hidden|nohidden:+{1}+3/3)+change-preview:[[ -n {q} && -n {} ]] && view_contents {}' \ --border block \ --color 'bg+:233,bg:235,gutter:235,border:238,scrollbar:235' \ --color 'preview-bg:234,preview-border:236,preview-scrollbar:237' \