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

Allow user defined scanners. #248

Closed
kevincox opened this issue Oct 23, 2016 · 3 comments
Closed

Allow user defined scanners. #248

kevincox opened this issue Oct 23, 2016 · 3 comments

Comments

@kevincox
Copy link

It would be nice to be able to specify scanners without modifying command-t's source. For example a locate based scanner would be useful. Or someone might want to have a git ls-files -co scanner rather then the default git scanner.

Most commands output one file a line or files separated by null bytes. It would be nice to have a scanner (or one per split) that take a command to run and get results by splitting on nulls or newlines.

A nice benefit is that the find scanner can use it :)

@wincent
Copy link
Owner

wincent commented Oct 24, 2016

Agreed that this would be nice. Ideally, the existing scanners would be refactored so that they behaved like third-party plug-ins rather than being baked into the source (they'd still be bundled, for convenience, but have them operate via the same API that any third-party plug-ins would need to use would be the way to keep the API "intellectually honest").

@kevincox
Copy link
Author

Sounds good. In fact if I start work on #249 I might do it in such a way that a custom scanner can be provided in addition to the find and git ones.

@wincent
Copy link
Owner

wincent commented Aug 26, 2022

Given the big rewrite for v6.0.x, I'm closing all older issues as there is unlikely to be anything significant happening on the 5-x-devel branch from here on1. Feedback issue for 6.0.x is here:

Footnotes

  1. Patches and PRs would be welcome, but my personal efforts are going to be directed towards main.

@wincent wincent closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants