Closed deeuu closed 4 years ago
Hey,
Capturing the output of grep in fzf_ssh results in the reported back cursor issue. Here's my xonfig if you're curious:
grep
fzf_ssh
xonfig
+------------------+-----------------+ | xonsh | 0.9.18 | | Python | 3.8.3 | | PLY | 3.11 | | have readline | True | | prompt toolkit | 3.0.5 | | shell type | prompt_toolkit | | pygments | 2.6.1 | | on posix | True | | on linux | True | | distro | unknown | | on darwin | False | | on windows | False | | on cygwin | False | | on msys2 | False | | is superuser | False | | default encoding | utf-8 | | xonsh encoding | utf-8 | | encoding errors | surrogateescape | +------------------+-----------------+
To get around this, this PR proposes re.findall to filter the host names of the ssh configs.
re.findall
Hi @deeuu, thanks for the PR! I don't really understand the mechanics of the "back cursor issue", but I like the new code more anyway.
Hey,
Capturing the output of
grep
infzf_ssh
results in the reported back cursor issue. Here's myxonfig
if you're curious:To get around this, this PR proposes
re.findall
to filter the host names of the ssh configs.