mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +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,13 @@
|
||||
function _gho_bind --description 'ctrl-o: gho (tv --inline), then redraw the prompt in the right place'
|
||||
set -l before $PWD
|
||||
gho
|
||||
if test "$PWD" = "$before"
|
||||
# Cancelled (or the nvim action ran): tv --inline left the cursor on
|
||||
# the line below the prompt; step back so repaint redraws in place.
|
||||
printf '\033[A' >/dev/tty
|
||||
else
|
||||
# cd + clear + onefetch: put the prompt below onefetch's output.
|
||||
printf '\n' >/dev/tty
|
||||
end
|
||||
commandline -f repaint
|
||||
end
|
||||
Reference in new issue
Block a user