zoxide/templates
Koichi Murase 891fa79e06 Remove ineffective attempt of redraw-current-line in Bash integration
The current version attempts to run "redraw-current-line" and
"__zoxide_z_complete_helper" by 1) first replacing the keybinding to
\[0n to "redraw-current-line", 2) printing \e[5n, 3) replacing the
keybinding to \e[0n with "__zoxide_z_complete_helper", and 4) finally
printing \e[5n.

However, this does not work as expected.  This ends up running
"__zoxide_z_complete_helper" twice.  This is because Bash/Readline
processes the next inputs after the current completion finishes.
Since the above steps 1-4 are performed inside the completion
function, Bash/Readline starts processing the response \e[0n (even if
it is immediately returned with zero time) only after the keybinding
to \e[0n is replaced with "__zoxide_z_complete_helper".

In the first place, Bash/Readline automatically redraws the command
line after processing the keybinding with "bind -x", so one does not
need to explicitly call "redraw-current-line".

This patch simply removes steps 1-2, which did not perform what was
expected.
2025-05-10 00:19:26 +09:00
..
bash.txt Remove ineffective attempt of redraw-current-line in Bash integration 2025-05-10 00:19:26 +09:00
elvish.txt fix(elvish): before-chdir should assign to oldpwd upvalue (#818) 2024-05-29 15:06:28 +05:30
fish.txt Remove builtin from abbr 2024-09-19 15:21:34 +08:00
nushell.txt nushell: fix jumping to symlinks that are not in the database (#1032) 2025-04-13 08:46:27 -05:00
posix.txt Add support for ksh (#885) 2024-09-13 05:00:42 +05:30
powershell.txt powershell: Ignore errors from `__zoxide_hooked` (#1038) 2025-04-10 15:46:57 +05:30
tcsh.txt csh -> tcsh 2025-05-06 00:26:07 -07:00
xonsh.txt Add support for csh (#1047) 2025-05-06 11:28:54 +05:30
zsh.txt bash doctor 2025-01-09 04:36:18 +05:30