Skip to content

Commit 92ff0f8

Browse files
committed
Merge pull request #12 from redondos/doc_ctrlp_working_path_mode
Improve wording for ctrlp_working_path_mode
2 parents ae7c96f + 0c6f678 commit 92ff0f8

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

doc/ctrlp.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,12 @@ variable: >
180180
let g:ctrlp_working_path_mode = 'ra'
181181
<
182182
c - the directory of the current file.
183-
a - like "c", but only applies when the current working directory outside of
184-
CtrlP isn't a direct ancestor of the directory of the current file.
185-
r - the nearest ancestor that contains one of these directories or files:
183+
a - the directory of the current file, unless it is a subdirectory of the cwd
184+
r - the nearest ancestor of the current file that contains one of these
185+
directories or files:
186186
.git .hg .svn .bzr _darcs
187-
w - begin finding a root from the current working directory outside of CtrlP
188-
instead of from the directory of the current file (default). Only applies
189-
when "r" is also present.
187+
w - modifier to "r": start search from the cwd instead of the current file's
188+
directory
190189
0 or <empty> - disable this feature.
191190

192191
Note #1: if "a" or "c" is included with "r", use the behavior of "a" or "c" (as

readme.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ Use `:diffthis` when opening multiple files to run `:diffthis` on the first 4 fi
5050
let g:ctrlp_working_path_mode = 'ra'
5151
```
5252
53-
`'c'` - use the parent directory of the current file.
54-
`'a'` - use the parent directory of the current file if it is not a descendant of the current working directory outside of CtrlP.
55-
`'r'` - use the nearest ancestor of the current file that contains one of these markers: `.git` `.hg` `.svn` `.bzr` `_darcs`
56-
`0` or `''` (empty string) - use the current working directory outside of CtrlP.
53+
`'c'` - 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
57+
`0` or `''` (empty string) - disable this feature.
5758
5859
If none of the default markers (`.git` `.hg` `.svn` `.bzr` `_darcs`) are present in a project, you can define additional ones with `g:ctrlp_root_markers`:
5960

0 commit comments

Comments
 (0)