From f04b5619b709e7e3ea0d56cff6769facdd3b7c07 Mon Sep 17 00:00:00 2001 From: Angelo Olivera Date: Mon, 21 Apr 2014 11:12:04 -0700 Subject: [PATCH] Improve wording for ctrlp_working_path_mode Fixes #397 --- doc/ctrlp.txt | 11 +++++------ readme.md | 5 +++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/ctrlp.txt b/doc/ctrlp.txt index e697b937..e06af69a 100644 --- a/doc/ctrlp.txt +++ b/doc/ctrlp.txt @@ -181,13 +181,12 @@ variable: > let g:ctrlp_working_path_mode = 'ra' < c - the directory of the current file. - a - like "c", but only applies when the current working directory outside of - CtrlP isn't a direct ancestor of the directory of the current file. - r - the nearest ancestor that contains one of these directories or files: + a - the directory of the current file, unless it is a subdirectory of the cwd + r - the nearest ancestor of the current file that contains one of these + directories or files: .git .hg .svn .bzr _darcs - w - begin finding a root from the current working directory outside of CtrlP - instead of from the directory of the current file (default). Only applies - when "r" is also present. + w - modifier to "r": start search from the cwd instead of the current file's + directory 0 or - disable this feature. Note #1: if "a" or "c" is included with "r", use the behavior of "a" or "c" (as diff --git a/readme.md b/readme.md index bcd07c7f..373e7259 100644 --- a/readme.md +++ b/readme.md @@ -51,8 +51,9 @@ Use `:diffthis` when opening multiple files to run `:diffthis` on the first 4 fi ``` `'c'` - the directory of the current file. - `'r'` - the nearest ancestor that contains one of these directories or files: `.git` `.hg` `.svn` `.bzr` `_darcs` - `'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. + `'a'` - the directory of the current file, unless it is a subdirectory of the cwd + `'r'` - the nearest ancestor of the current file that contains one of these directories or files: `.git` `.hg` `.svn` `.bzr` `_darcs` + `'w'` - modifier to "r": start search from the cwd instead of the current file's directory `0` or `''` (empty string) - disable this feature. Define additional root markers with the `g:ctrlp_root_markers` option.