search-and-edit jump to line number

This commit is contained in:
Noah Masur 2022-07-22 09:49:21 -04:00
parent 8705f2a96f
commit 2a4a8efa48

View File

@ -15,6 +15,7 @@ set vimfile ( \
--preview 'bat --color=always {1} --highlight-line {2}' \
--preview-window 'up,60%,border-bottom,+{2}+3/3,~3'
)
and set line_number (echo $vimfile | tr -d '\r' | cut -d':' -f2)
and set vimfile (echo $vimfile | tr -d '\r' | cut -d':' -f1)
and commandline -r "vim $vimfile"
and commandline -r "vim +$line_number $vimfile"
and commandline -f execute