clink icon indicating copy to clipboard operation
clink copied to clipboard

Clink doesn't autocomplete ENV variables

Open tilkinsc opened this issue 7 years ago • 4 comments

I don't like the fact that tab doesn't expand ENV variables

This

C:\>%cd%

Should be after tab is pressed

C:\>C:\

tilkinsc avatar Jan 14 '18 05:01 tilkinsc

You can expand them by pressing CTRL+ALT+E From my very brief testing, it seems that you have to type the variable in the form %var%, then have the cursor on or immediately after it and press the keystroke.

But note that %CD% may not be an actual environment variable. It is special in some way, so echo %CD% does output the current directory, but %CD% doesn't expand with this keystroke.

drwatsoncode avatar Feb 22 '18 04:02 drwatsoncode

I actually didn't mean any of this.

I have a %prog% variable that loads to "C:\programming" and I can't use tab to navigate, I have to use ctrl alt e + project_na + tab to get "C:\programming\project_name"

tilkinsc avatar Feb 23 '18 07:02 tilkinsc

The chrisant996/clink fork now supports this (as of v1.2.25) if you turn on the match.expand_envvars Clink setting by running clink set match.expand_envvars true.

chrisant996 avatar Aug 03 '21 16:08 chrisant996

I'll check it out thanks

tilkinsc avatar Aug 06 '21 04:08 tilkinsc