Revert "fish: functions/gl: Pipe commit view to bat"

This reverts commit ec838cb54e.

We forgot that copying is not so easy when using bat or less.
This commit is contained in:
Sanchayan Maity 2023-01-26 14:08:43 +05:30
parent 780ea535f7
commit 5abfc19676
Signed by: sanchayanmaity
GPG Key ID: 6F6A0609C12038F3
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function gl --description 'Git browse commits'
git log --color=always --format='%C(auto)%h%d %s %C(green)%C(bold)%cr% C(blue)%an' $argv | fzf --exact --no-sort --reverse --tiebreak=index --no-multi --ansi \
--preview="$view_commit" \
--header="ENTER to view, CTRL-Y to copy hash, CTRL-O to open on GitHub, CTRL-X to checkout, CTRL-C to exit, CTRL-S to cherry-pick" \
--bind "enter:execute:$view_commit_nvim | bat -ldiff --pager 'less -R'" \
--bind "enter:execute:$view_commit_nvim | nvim -R -" \
--bind "ctrl-y:execute:$copy_commit_hash" \
--bind "ctrl-x:execute:$git_checkout" \
--bind "ctrl-o:execute:$github_open" \