From: Sergey Matveev Date: Fri, 26 Apr 2024 06:29:39 +0000 (+0300) Subject: Have not used zshfe for years X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain Have not used zshfe for years --- diff --git a/vim/.vim/pack/stargrave/start/zshfe/autoload/zshfe.vim b/vim/.vim/pack/stargrave/start/zshfe/autoload/zshfe.vim deleted file mode 100644 index bb94dd6..0000000 --- a/vim/.vim/pack/stargrave/start/zshfe/autoload/zshfe.vim +++ /dev/null @@ -1,7 +0,0 @@ -vim9script - -export def Do(query: string, opencmd: string) - silent var result = systemlist(g:zshfe_path .. " " .. query) - if len(result) == 0 | return | endif - execute opencmd .. " " .. result[0][: -2] -enddef diff --git a/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.vim b/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.vim deleted file mode 100644 index cb05d99..0000000 --- a/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.vim +++ /dev/null @@ -1,18 +0,0 @@ -vim9script - -# zsh file completion caller -# Maintainer: Sergey Matveev -# License: GNU General Public License version 3 of the License or later - -if exists("*zshfe#Do") | finish | endif -if !exists("g:zshfe_path") - g:zshfe_path = expand(":p:h") .. "/zshfe.zsh" -endif - -command! -nargs=1 Fe call zshfe#Do(, "edit") -command! -nargs=1 Fsp call zshfe#Do(, "split") -command! -nargs=1 Fvs call zshfe#Do(, "vsplit") - -nmap e :Fe -nmap :Fsp -nmap v :Fvs diff --git a/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.zsh b/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.zsh deleted file mode 100755 index 9222054..0000000 --- a/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.zsh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env zsh - -setopt ERR_EXIT -zmodload zsh/zpty -zpty zshfe zsh -zpty -w zshfe "print ZSHFE $*"$'\t EFHSZ\nexit\n' -zpty -r zshfe zshfe "*exit" -print -- $zshfe | sed -n "s/^ZSHFE \(.*\) EFHSZ/\1/p"