Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Autocomplete non-executables #1980

Closed
CIPop opened this issue Dec 5, 2018 · 2 comments
Closed

Feature Request: Autocomplete non-executables #1980

CIPop opened this issue Dec 5, 2018 · 2 comments

Comments

@CIPop
Copy link

CIPop commented Dec 5, 2018

There are many issues like #508 pointing out that non-executables don't autocomplete.
A current workaround exists: set exec_match_style to -1

# name: Executable match style
# type: enum
#  0 = PATH only
#  1 = PATH and CWD
#  2 = PATH, CWD, and directories
# Changes how Clink will match executables when there is no path separator on
# the line. 0 = PATH only, 1 = PATH and CWD, 2 = PATH, CWD, and directories. In
# all cases both executables and directories are matched when there is a path
# separator present. A value of -1 will disable executable matching completely.
exec_match_style = 2

This is a feature request to allow autocompletion for local files either:

  1. All local files could auto-complete.
  2. Allow us to define executables (*.exe, *.cmd, etc)
@CIPop
Copy link
Author

CIPop commented Dec 5, 2018

#2 is explained here: #826 (comment)

On Windows in cmd.exe sessions executeable file extensions are configured by the PATHEXT environment variable. Mine is currently set to:
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

I'll leave this item opened - can we have this automatically populated by cmder instead of all of us adding to this environment? Maybe another config such as exec_extensions = ...?

@daxgames
Copy link
Member

daxgames commented Dec 7, 2018

You can auto-populate it by editing your user_profile.cmd. Something like:

set PATHEXT=%PATH_EXT%,.PY,.PL

The above will make *.pl and *.py files autocomplete.

If you want to do the -1 thing and that does what you want then that is also an option.

This will not be added as a feature of Cmder. That is why you have user init scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants