bling / fzf.el

A front-end for fzf
GNU General Public License v3.0
364 stars 49 forks source link

Refactor to stop using FZF_DEFAULT_COMMAND #70

Closed ghost closed 2 years ago

ghost commented 2 years ago

Changes

bling commented 2 years ago

can you please remove all the formatting changes? this creates a bunch of unnecessary diffs to review. also, by convention the fzf/ prefix is meant for private variables/functions, whereas fzf- is the public API meant to be called externally.

this dovetails into fzf-with-command. instead of deleting it and potentially breaking a ton of people out there, it'd be better to keep it around, call fzf/start internally and output a deprecation message so we can safely delete it in the future.

for the remaining changes....these are pretty major. perhaps @rolag has some thoughts here as they contributed the completion engine.

ghost commented 2 years ago

Hey @bling thanks for taking a look

Yea, sorry about that. I trimmed this PR down a lot to only include the bare minimum changes required to stop setting the environment variable, and a slight refactor to the after-term... function to help readability. Hopefully this makes the important changes clearer.

I'll hold the configurable grep change for now to keep prs incremental.