wincent / command-t

⌨️ Fast file navigation for Neovim and Vim
BSD 2-Clause "Simplified" License
2.76k stars 321 forks source link

Command-t only lists 15 entries #303

Closed colmheaney closed 7 years ago

colmheaney commented 7 years ago

I'm facing a problem where Command-t only lists a maximum of 15 entries no matter how many files are in the directory.

I'm using the system Vim (7.4) on Sierra and have compiled command-t using the system ruby 2.0.0

:ruby puts "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
2.0.0-p648

I did:

> cd ~/.vim/bundle/command-t/ruby/command-t
> /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
> make
compiling ext.c
compiling match.c
compiling matcher.c
linking shared-object ext.bundle

I've tried setting g:CommandTMaxFiles to a large number but this has no effect and besides all of the directories I've tested have been less than the 100,000 files default value.

wincent commented 7 years ago

Sounds like you don't like the default value of g:CommandTMaxHeight (docs).

You can either set it to 0 (to use all available space) or some other number greater than 15. Or, just start typing letters from the path & filename that you're searching for, and it will soon appear in the top 15 results.

colmheaney commented 7 years ago

Ah, my apologies, I knew I must have been doing something stupid! Thanks for the quick response