zoxide/templates
Koichi Murase 3de6f2ca58 Care about terminals not responding to DSR in Bash integration
The current method of using the DSR request (\e[5n) and response
(\e[0n) for the operating status relies on the assumption that the
terminal supports the DSR request for the operating status and always
responds with the good status (\e[0n) instead of the bad one (\e[3n).
However, the terminal may not support \e[5n or may return another
status in principle.

Moreover, when a non-trivial shell framework is involved, the DSR
response might be processed by an unintended part.  For example, when
ble.sh (https://github.com/akinomyoga/ble.sh) is loaded in the Bash
session, since we use "\builtin bind" instead of "bind" replaced by
ble.sh, the response would be processed by Readline (which is
deactivated by ble.sh) instead of ble.sh (i.e., the line editor in
action).  As a result, the attempt to replace the command line will
fail.

As a fallback for such a situation, it is still worth inserting the
target directory through the command line.  This patch restores an
older logic to insert the completion.

This patch provides a fallback to the issue reported in the following
places:

[1] https://github.com/ajeetdsouza/zoxide/issues/1043#issuecomment-2845790391
[2] https://github.com/akinomyoga/ble.sh/issues/580#issuecomment-2845818748
2025-05-10 16:32:45 +09:00
..
bash.txt Care about terminals not responding to DSR in Bash integration 2025-05-10 16:32:45 +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