withfig / autocomplete

IDE-style autocomplete for your existing terminal & shell
https://fig.io
MIT License
24.38k stars 5.4k forks source link

Missing File Autosuggestions for cat Command in Fig Terminal Plugin #2250

Open mirkobozzetto opened 5 months ago

mirkobozzetto commented 5 months ago

Sanity checks

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