cmp-path icon indicating copy to clipboard operation
cmp-path copied to clipboard

Completion is broken when using curly braces in shell scripts

Open hermitmaster opened this issue 3 years ago • 1 comments

Completion is broken when using curly braces in shell scripts. export XDG_CONFIG_HOME="${HOME}/" for example, offers completions from the root of the filesystem. If I remove the curly braces, it works as expected.

hermitmaster avatar Nov 09 '22 22:11 hermitmaster

Yeah, this is very annoying and goes against shellcheck standard of using curly braces with variables.

See Shellcheck SC2250:

Prefer putting braces around variable references even when not strictly required.

Working on making a pull request, but I don't know Lua at all, so it may be a bit.

ediw8311xht avatar Aug 15 '24 10:08 ediw8311xht