atom / fuzzy-finder

Find and open files quickly
MIT License
276 stars 138 forks source link

Externalize the maxItems value #84

Open andruhon opened 9 years ago

andruhon commented 9 years ago

It would be nice to have the maxItems value option. There are sometimes more than 10 files with similar names.

The maxItems value is currently hardcoded in the

https://github.com/atom/fuzzy-finder/blob/master/lib/fuzzy-finder-view.coffee#L16

tnrich commented 9 years ago

+1 This is a showstopper for me as it is..

mehcode commented 9 years ago

I have an alternative (and maybe more general) suggestion. Drop the maxItems concept and lazy-load items 10-15 at a time while scrolling.

bbudd commented 9 years ago

Can I +∞ this?

Right now my workaround is in my init.coffee script (idea given to me by someone else):

FFV = require '/Applications/Atom.app/Contents/Resources/app.asar/node_modules/fuzzy-finder/lib/fuzzy-finder-view.js'

init = FFV.prototype.initialize;
FFV.prototype.initialize = ->
  init.apply this, arguments
  this.setMaxItems 50