Closed techhazard closed 8 years ago
Hey, thanks for this. I think I would prefer if there was just a g:fuzzy_opencmd
variable that defaulted to edit
, and the user could configure it to whatever they wanted to, ex tab drop
in your case. If you make those changes I'll merge it in.
What do you think? Do you want me to remove the toggles as well?
Yeah I think the toggles are unnecessary.
The way I see it: the toggles are an easy way to get started using tabs/jumps beyond that we have the opencmd that offers full customisability (which overrides the toggles anyway)
Would you mind leaving the toggles in place?
The problem is we're then using three global options to do what a single option can do. I think it's more confusing. Best would be to document usage of fuzzy_opencmd
with examples of how to use it to open files in new tabs, or to drop into already open buffers. There's other ways to open files too, ex: split and vsplit, and there's no reason there should be an option to specifically open in a new tab, but not to open in a split. But we don't want to multiply the number of options!
good point
I edited the first comment to reflect my changes
Great, thanks! I'll add your examples to the doc once I create it :sweat_smile:
This commit adds a new setting:
g:fuzzy_opencmd
opens the file with the specified command instead of the current oneNot setting
g:fuzzy_opencmd
is equivalent to setting it to'edit'
Examples:Open in (v)split or jump is an exercise for the reader ;-)