Skip to content

Commit f04b561

Browse files
author
Angelo Olivera
committed
Improve wording for ctrlp_working_path_mode
Fixes #397
1 parent b5d3fe6 commit f04b561

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

doc/ctrlp.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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

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

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)