File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,13 +181,12 @@ variable: >
181181 let g:ctrlp_working_path_mode = 'ra'
182182<
183183 c - the directory of the current file.
184- a - like "c", but only applies when the current working directory outside of
185- CtrlP isn't a direct ancestor of the directory of the current file.
186- r - the nearest ancestor that contains one of these directories or files:
184+ a - the directory of the current file, unless it is a subdirectory of the cwd
185+ r - the nearest ancestor of the current file that contains one of these
186+ directories or files:
187187 .git .hg .svn .bzr _darcs
188- w - begin finding a root from the current working directory outside of CtrlP
189- instead of from the directory of the current file (default). Only applies
190- when "r" is also present.
188+ w - modifier to "r": start search from the cwd instead of the current file's
189+ directory
191190 0 or <empty> - disable this feature.
192191
193192Note #1: if "a" or "c" is included with "r", use the behavior of "a" or "c" (as
Original file line number Diff line number Diff line change @@ -51,8 +51,9 @@ Use `:diffthis` when opening multiple files to run `:diffthis` on the first 4 fi
5151 ```
5252
5353 `'c'` - the directory of the current file.
54- `'r'` - the nearest ancestor that contains one of these directories or files: `.git` `.hg` `.svn` `.bzr` `_darcs`
55- `'a'` - like c, but only if the current working directory outside of CtrlP is not a direct ancestor of the directory of the current file.
54+ `'a'` - the directory of the current file, unless it is a subdirectory of the cwd
55+ `'r'` - the nearest ancestor of the current file that contains one of these directories or files: `.git` `.hg` `.svn` `.bzr` `_darcs`
56+ `'w'` - modifier to "r": start search from the cwd instead of the current file's directory
5657 `0` or `''` (empty string) - disable this feature.
5758
5859 Define additional root markers with the `g:ctrlp_root_markers` option.
You can’t perform that action at this time.
0 commit comments