command-t icon indicating copy to clipboard operation
command-t copied to clipboard

As a user I would like to be able to configure Command-T to use Vim's default path

Open 99arobe opened this issue 7 years ago • 0 comments

From the docs I can see that when a user invokes :CommandT:

the project directory is determined according to the value of the |g:CommandTTraverseSCM| setting, which defaults to the SCM root of the current file

In order to modify this, a user can change either i) the options for the g:CommandTTraverseSCM setting or ii) invoke :CommandT with a path as an argument like this:

:CommandT ../path/to/other/files

Vim also has a built in path variable. The setting for this can be viewed using:

:set path?

The :find command can take a filename as an argument and it will then search for this file based on Vim's path setting. For example, if Vim's path variable was set to:

path=/fruits/apple,/drinks/water

then the find command will search through both the /fruits/apple and the /drinks/water directories without having to specify them as additional arguments to the find command. For example:

find foo.txt

will search in both the /fruits/apple and the /drinks/water directories.

Is there a way to change Command-T's settings to use Vim's path variable instead of trying to find the relevant directory by traversing the current files path for a SCM setup?

Alternatively, is there a way to specify multiple paths to invoke Command-T with?

99arobe avatar Apr 21 '18 09:04 99arobe