Rename zsh widgets to avoid confusion
This commit is contained in:
		| @@ -1,15 +1,15 @@ | |||||||
| # Fuzzy find a file and then edit it | # Fuzzy find a file and then edit it | ||||||
|  |  | ||||||
| _fedit() { | _run_fedit() { | ||||||
|     fedit && zle reset-prompt |     fedit && zle reset-prompt | ||||||
| } | } | ||||||
|  |  | ||||||
| _etcedit() { | _run_etcedit() { | ||||||
|     fedit --etc && zle reset-prompt |     fedit --etc && zle reset-prompt | ||||||
| } | } | ||||||
|  |  | ||||||
| zle -N _fedit | zle -N _run_fedit | ||||||
| bindkey -M viins '^o' _fedit | bindkey -M viins '^o' _run_fedit | ||||||
|  |  | ||||||
| zle -N _etcedit | zle -N _run_etcedit | ||||||
| bindkey -M viins '^e' _etcedit | bindkey -M viins '^e' _run_etcedit | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| # Fuzzy-find a file and open it in less | # Fuzzy-find a file and open it in less | ||||||
| fless() { | _run_fless() { | ||||||
|     /usr/bin/fless && zle reset-prompt |     /usr/bin/fless && zle reset-prompt | ||||||
| } | } | ||||||
|  |  | ||||||
| zle -N fless | zle -N _run_fless | ||||||
| bindkey -M viins '^n' fless | bindkey -M viins '^n' _run_fless | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user