Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuzzy autocomplete is not working with relative path #3519

Closed
anki-code opened this issue Apr 14, 2020 · 1 comment · Fixed by #3546
Closed

Fuzzy autocomplete is not working with relative path #3519

anki-code opened this issue Apr 14, 2020 · 1 comment · Fixed by #3546

Comments

@anki-code
Copy link
Member

anki-code commented Apr 14, 2020

Hi! The xonsh is great!

I have the case:

mkdir -p /tmp/test/dir1 /tmp/test/dir2

cd /tmp/test
ls 2<tab>        # autocomplete shows dir2
ls ./2<tab>      # autocomplete shows nothing, "dir2" expected

cd /tmp/test/dir1
ls ../2<tab>     # autocomplete shows nothing, "dir2" expected

It looks like if there is . in the path it is not working.

What I'm doing wrong?

$ xonfig                                                                                                                                                                                                                               
+------------------+----------------------+
| xonsh            | 0.9.17               |
| Git SHA          | feeb6315             |
| Commit Date      | Mar 19 10:50:33 2020 |
| Python           | 3.7.6                |
| PLY              | 3.11                 |
| have readline    | True                 |
| prompt toolkit   | 3.0.3                |
| shell type       | prompt_toolkit2      |
| pygments         | 2.5.2                |
| 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      |
+------------------+----------------------+
@anki-code anki-code changed the title Fuzzy autocomplete not working with relative path Fuzzy autocomplete is not working with relative path Apr 14, 2020
@scopatz
Copy link
Member

scopatz commented Apr 17, 2020

Thanks for posting this @anki-code! I am seeing this same issue. It must not be normalizing the paths. Any help here would be really appreciated!

gforsyth pushed a commit that referenced this issue May 1, 2020
Co-authored-by: anki-code <anki-code>
gforsyth pushed a commit that referenced this issue May 5, 2020
* Fix #3519

* xontrib-prompt-bar

* xontrib-pipeliner

* pypi

Co-authored-by: anki-code <anki-code>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants