You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if I could get completions for file paths because of programs like glow.exe which require it. It appears based on this code that it is by design? I would expect default completion to a file path.
If ShellCompDirectiveNoFileComp is set the program explicitly requested that no path completion should be done. If ShellCompDirectiveNoFileComp is not set then it should complete paths, it has been a long time since I used powershell but this at least used to work correctly.
Reading your linked issue it seems like the issue is for other shells as well so guess this is a problem with your program not cobra itself.
I still think it is cobra. Usage like oh-my-posh.exe file + <TAB> won't complete file paths either.
Maybe glow needs the newest cobra build. Usage like oh-my-posh.exe init powershell file + <TAB>does work so I'm not sure how it is working. oh-my-posh only needs to pull from files on certain sub commands while glow + <TAB> for file paths is more natural?
It would be nice if I could get completions for file paths because of programs like
glow.exe
which require it. It appears based on this code that it is by design? I would expect default completion to a file path.cobra/powershell_completions.go
Lines 200 to 211 in 284f410
It is discussed a little below.
charmbracelet/glow#457
The text was updated successfully, but these errors were encountered: