wincent / command-t

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

Support configuring a list of scanners #321

Closed mkhl closed 2 years ago

mkhl commented 6 years ago

Note: This is a work in progress!

This changeset allows users to configure a list of scanners to try in order, like

let g:CommandTFileScanner = ['watchman', 'git', 'find', 'ruby']

by providing a composite file scanner that has a list of scanners it delegates to. Configuring a single value is still supported so we don’t break users’ configuration.

This also allows us to drop the hardcoded fallback mechanisms used by the watchman and git scanners.

Some open points: