about summary refs log tree commit diff stats
path: root/fzf-git/key-binding.zsh
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-11-22 12:17:26 +0000
committerDavid Morgan <djm_uk@protonmail.com>2022-11-22 12:17:26 +0000
commitb42841802d1d80cb2125a0a1bd87a2006dfdbe58 (patch)
tree692c5ecc691c7ae4fe50599b8493fe2cc3a49a90 /fzf-git/key-binding.zsh
parent9632522130b2203a36dedfd65ae46b1f77729207 (diff)
downloaddotfiles-b42841802d1d80cb2125a0a1bd87a2006dfdbe58.tar.gz
Use fzf-git.sh
Diffstat (limited to 'fzf-git/key-binding.zsh')
-rw-r--r--fzf-git/key-binding.zsh19
1 files changed, 0 insertions, 19 deletions
diff --git a/fzf-git/key-binding.zsh b/fzf-git/key-binding.zsh
deleted file mode 100644
index e44052e..0000000
--- a/fzf-git/key-binding.zsh
+++ /dev/null
@@ -1,19 +0,0 @@
-join-lines() {
-  local item
-  while read item; do
-    echo -n "${(q)item} "
-  done
-}
-
-bind-git-helper() {
-  local c
-  for c in $@; do
-    eval "fzf-g$c-widget() { local result=\$(_g$c | join-lines); zle reset-prompt; LBUFFER+=\$result }"
-    eval "zle -N fzf-g$c-widget"
-    eval "bindkey '^g^$c' fzf-g$c-widget"
-  done
-}
-bindkey -r "^g"
-bindkey "^g^g" send-break
-bind-git-helper f b t r h
-unset -f bind-git-helper