withfig/autocomplete

Missing File Autosuggestions for cat Command in Fig Terminal Plugin

mirkobozzetto opened this issue · 0 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?

fit autocomplete

Which statement makes the most sense?

There are errors with this completion spec

Issue Details

Problem Description:
When using the cat command in the terminal with the Fig plugin, I encounter an issue with autosuggestions. While the options for the cat command are appropriately suggested, the files associated with this command do not appear in Fig's autosuggestion menu. This issue forces me to exit the autosuggestion by pressing Esc, and then use Tab to manually select files.

Steps to Reproduce:

Open the terminal with the Fig plugin enabled.
Type cat followed by a space.
Notice that the options for the cat command are suggested, but the files are not.
Expected Behavior:
When typing the cat command, in addition to the command options, a list of relevant files should automatically be suggested by Fig, allowing for quick selection without the need to use Esc and then Tab.

Environment:
Fig Version: fig_cli 2.17.0
iTerm2-01-24 at 12 33-OvgKuIQx
iTerm2-01-24 at 12 34-8RdMN12y

Operating System: 14.3 (23D56)
Terminal Used: zsh