withfig / autocomplete

IDE-style autocomplete for your existing terminal & shell

Home Page:https://fig.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`cd` now suggests `~` as the first suggestion, which doesn't work with the 'Navigate Down' tab feature

oresttokovenko opened this issue · comments

Sanity checks

  • My issue relates to a specific CLI completion spec (e.g. git checkout is missing options in git completion spec). If your issue is more general, please create your issue here: withfig/fig
  • I have searched github.com/withfig/autocomplete/issues and there are no duplicates of my issue
  • I would like to work on this.

What CLI tool does this relate to?

autocomplete

Which statement makes the most sense?

There is a bug with this completion spec

Issue Details

If you have the Tab set to Navigate Down, and try to cd into a directory, the first suggestion will automatically be the home directory ~, and it switches to Insert Suggestion for that option. Therefore, you press Tab expecting to navigate past this option, but instead if enters it and you get cd ~. If you use the down arrow to navigate past the tilde option, the Tab function resumes as Navigate Down.