From 489017791447ec1f817a6d84988e24a543c40f05 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 11 Feb 2022 09:39:12 -0800 Subject: seek/nav: handle macos option/alt key nonsense --- nav | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nav') diff --git a/nav b/nav index d55ced8..a67ecf2 100755 --- a/nav +++ b/nav @@ -1,10 +1,12 @@ +#!/usr/bin/env bash cat \ <(echo "edit: enter | prnt: alt-enter | view: alt-0..6 | pgup/pgdn: scroll") \ <(fd --exclude=_ -t f . $PWD | sed "s,$PWD/*,,g") \ | fzf \ --bind "alt-enter:accept" \ --bind "enter:execute(vim {})" \ - --bind "ctrl-/:change-preview-window(88|hidden|)" \ + --bind "esc:ignore" \ + --bind "ctrl-/:change-preview-window(90%|hidden|)" \ --bind "alt-0:change-preview(bat -p --color always {})" \ --bind "alt-1:change-preview(git log --color=always --date=relative --abbrev-commit --pretty=format:'%Cred%h%Creset %s / %an %Creset%C(yellow)%d%Creset%Cgreen(%cr)%Creset' -- {})" \ --bind "alt-2:change-preview(git log --color=always {})" \ -- cgit v1.2.3