Replace tmux split editing with kitty split
This commit is contained in:
parent
b3758b0c8e
commit
205558b999
2 changed files with 5 additions and 6 deletions
|
@ -1,18 +0,0 @@
|
|||
ECLHEIGHT=${ECLHEIGHT:-5}
|
||||
edit-command-line-tmux() {
|
||||
local tmpfile=${TMPPREFIX:-/tmp/zsh}ecl$$
|
||||
|
||||
print -R - "$PREBUFFER$BUFFER" >$tmpfile
|
||||
exec </dev/tty
|
||||
if [ -n "$TMUX" ] && [ "$UID" -ne 0 ]; then
|
||||
tmux splitw -v -l $ECLHEIGHT "vim -c 'set laststatus=0 showtabline=0 ft=zsh' $tmpfile"
|
||||
pid=$(ps -ef | awk "/[0-9] vim.*${tmpfile:t}/ { print \$2 }")
|
||||
wait_on_pid $pid
|
||||
else
|
||||
${=${VISUAL:-${EDITOR:-vi}}} $tmpfile
|
||||
fi
|
||||
print -Rz - "$(<$tmpfile)"
|
||||
|
||||
command rm -f $tmpfile
|
||||
zle send-break # Force reload from the buffer stack
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue