From 129ca17ccda3f6e832041ee97c4ed584cd7511e5 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Sun, 21 Jun 2020 23:17:18 -0700 Subject: [PATCH] Rename zsh widgets to avoid confusion --- zsh/plugins/fedit.zsh | 12 ++++++------ zsh/plugins/fless.zsh | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/zsh/plugins/fedit.zsh b/zsh/plugins/fedit.zsh index d7373bc..9f182c7 100644 --- a/zsh/plugins/fedit.zsh +++ b/zsh/plugins/fedit.zsh @@ -1,15 +1,15 @@ # Fuzzy find a file and then edit it -_fedit() { +_run_fedit() { fedit && zle reset-prompt } -_etcedit() { +_run_etcedit() { fedit --etc && zle reset-prompt } -zle -N _fedit -bindkey -M viins '^o' _fedit +zle -N _run_fedit +bindkey -M viins '^o' _run_fedit -zle -N _etcedit -bindkey -M viins '^e' _etcedit +zle -N _run_etcedit +bindkey -M viins '^e' _run_etcedit diff --git a/zsh/plugins/fless.zsh b/zsh/plugins/fless.zsh index 132b571..751fdeb 100644 --- a/zsh/plugins/fless.zsh +++ b/zsh/plugins/fless.zsh @@ -1,7 +1,7 @@ # Fuzzy-find a file and open it in less -fless() { +_run_fless() { /usr/bin/fless && zle reset-prompt } -zle -N fless -bindkey -M viins '^n' fless +zle -N _run_fless +bindkey -M viins '^n' _run_fless