feat(config): switch tv pickers to --inline and improve prompt redraw handling

This commit is contained in:
Prad Nukala committed 2026-09-30 11:54:14 -04:00
1 parent 19aeed21ac
commit a5bf3e9194
10 files changed
+173 -57

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
function _tv_inline --description 'tv --inline below the prompt, cursor back on the prompt line; stdout is the pick'
# tv --inline opens on the line below the prompt and leaves the cursor on
# its own first row when it exits; step back up so the following
# `commandline -f repaint` redraws the prompt in place instead of one line
# lower. /dev/tty keeps the move out of callers that capture stdout (gho).
tv $argv --inline
set -l st $status
printf '\033[A' >/dev/tty
return $st
end