mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
feat(config): switch tv pickers to --inline and improve prompt redraw handling
This commit is contained in:
1 parent
19aeed21ac
commit
a5bf3e9194
10 files changed
+173
-57
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user