Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自動選擇搜索起始目錄 #43

Closed
chin33z opened this issue Mar 24, 2017 · 5 comments
Closed

自動選擇搜索起始目錄 #43

chin33z opened this issue Mar 24, 2017 · 5 comments

Comments

@chin33z
Copy link

chin33z commented Mar 24, 2017

請問有類似CtrlP的g:ctrlp_working_path_mode選項可以設定嗎?這還滿方便的.

@chin33z chin33z changed the title 工作根目錄 自動選擇搜索起始目錄 Mar 24, 2017
@Yggdroot
Copy link
Owner

目前还没有,我在考虑有没有加的必要。

@chin33z
Copy link
Author

chin33z commented Mar 27, 2017

謝謝

@Yggdroot
Copy link
Owner

我使用vim,一般是到某个project根目录下,打开vim,然后可以随便查找这个project的所有文件; 难道需要先进入某个子目录再查找吗?
g:ctrlp_working_path_mode选项的使用场景是怎样的呢,我没体会到有了那些设定有什么优点,可以说明一下吗?

@Yggdroot
Copy link
Owner

@chin33z @createwindow Feature added.

LeaderF/doc/leaderf.txt

Lines 446 to 471 in c253ca4

g:Lf_RootMarkers *g:Lf_RootMarkers*
Use this option to set the root markers.
e.g., >
let g:Lf_RootMarkers = ['.project', '.project2']
<
Default value is ['.git', '.hg', '.svn']
g:Lf_WorkingDirectoryMode *g:Lf_WorkingDirectoryMode*
This option customizes LeaderF's working directory.
e.g., >
let g:Lf_WorkingDirectoryMode = 'Ac'
<
c - the directory of the current working directory.(default)
a - the nearest ancestor of current working directory that contains one of
directories or files defined in |g:Lf_RootMarkers|. Fall back to 'c' if
no such ancestor directory found.
A - the nearest ancestor of current file that contains one of directories
or files defined in |g:Lf_RootMarkers|. Fall back to 'c' if no such
ancestor directory found.
f - the directory of the current file.
F - if the current working directory is not the direct ancestor of current
file, use the directory of the current file as LeaderF's working
directory, otherwise, same as 'c'.
Note: if "f", "F" is included with "a" or "A", use the behavior of "f" or
"F"(as a fallback) when a root can't be found.

@chin33z
Copy link
Author

chin33z commented Nov 29, 2017

謝謝!終於可以用了.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants