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

g:Lf_MruFileExclude not work #149

Closed
2 of 6 tasks
Cooie opened this issue May 4, 2018 · 6 comments
Closed
2 of 6 tasks

g:Lf_MruFileExclude not work #149

Cooie opened this issue May 4, 2018 · 6 comments

Comments

@Cooie
Copy link

Cooie commented May 4, 2018

  • vim or neovim?

    • vim
    • neovim
  • vim --version or nvim --version:
    VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 18 2018 15:30:48)
    macOS version
    Included patches: 1-1700
    Compiled by Homebrew

  • Output of :echo has("python"): 0

  • Output of :echo has("python3"): 1

  • Output of :echo &pythondll(only vim, not neovim): nothing printed

  • Output of :echo &pythonthreedll(only vim, not neovim): nothing printed

  • Output of :py print(sys.version): Sorry, the command is not available in this version

  • Output of :py3 print(sys.version): 3.6.5

  • Operating system:

    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Configurations related to LeaderF in vimrc:

let g:Lf_WildIgnore = {
            \ 'dir': ['.svn','.git','.hg'],
            \ 'file': ['*.sw?','~$*','*.bak','*.exe','*.o','*.so','*.py[co]']
            \}
let g:Lf_MruFileExclude = ['*.sw?','~$*','*.bak','*.exe','*.o','*.so','*.py[co]', '*.cnx']

Describe your question, feature request, or bug.

Mrus still show .cnx files when I set g:Lf_MruFileExclude. By the way, how can I exclude files in specific directory? I have add .git direcotry in g:Lf_WildIgnore but mrns still show files in .git directory.

@Yggdroot
Copy link
Owner

Yggdroot commented May 4, 2018

g:Lf_WildIgnore does not work for MRU, it only works for LeaderfFile.
g:Lf_MruFileExclude indicates that files match pattern defined in it won't be recorded in MRU cache. If you have opened the .cnx file before setting g:Lf_MruFileExclude, the .cnx file can still be shown, the .cnx file after the setting won't show in the MRU.
Maybe I need add a g:Lf_MruWildIgnore option to meet your requirement.

@Cooie
Copy link
Author

Cooie commented May 5, 2018

How can I refresh MRU cache? I have tried use F5 but not work.

@Yggdroot
Copy link
Owner

Yggdroot commented May 9, 2018

Why do you want to refresh the cache?

@Cooie
Copy link
Author

Cooie commented May 9, 2018

Sorry for misunderstanding your reply. There is no need to refresh the cache.

By the way, I think it may be better to make g:Lf_WildIgnore works for all modes than add a new g:Lf_MruWildIgnore.

@nooberfsh
Copy link

Adding g:Lf_MruWildIgnore +1

Yggdroot added a commit that referenced this issue May 11, 2018
add g:Lf_MruWildIgnore
@Cooie
Copy link
Author

Cooie commented May 11, 2018

I have updated LeaderF and replaced g:Lf_MruFileExclude with g:Lf_MruWildIgnore.

Thanks a lot for making the charming plugin!

@Cooie Cooie closed this as completed May 11, 2018
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

3 participants