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

command "namespace" #18

Closed
justinmk opened this issue Sep 29, 2015 · 2 comments
Closed

command "namespace" #18

justinmk opened this issue Sep 29, 2015 · 2 comments

Comments

@justinmk
Copy link
Contributor

Thanks for this plugin, it's great.

I'm here to make my usual request :) The plugin defines a bunch of commands like History and Lines. But for most users the "namespace pollution" is not worth it because fzf actions are generally bound to normal-mode commands.

For the case where a user wants to try something from the command line, "namespacing" helps the user discover the available commands. This can be done either by prefixing all fzf.vim commands (FzfLines, FzfHistory), or by having a single command that takes sub-commands (Fzf lines, Fzf history) similar to git, hg, etc.

I don't suggest wrapping the default commands in a if !exists('g:fzf_default_commands') guard because that's lame. 😅

@junegunn
Copy link
Owner

It's a valid request. This repo was intially supposed to be a collection of the commands that I use, take it or leave it (or fork it) kind of stuff. So I haven't paid enough attention to the customizability and I'm still not sure how it should be done. But optional command prefix sounds like a good start. I like both of the approaches you mentioned, but considering command-line completion, the first one should be simpler to implement and easier to use.

@netei
Copy link

netei commented Sep 30, 2015

Also agree with that, and I prefer the one word commands (eg FzfLines, FzfHistory)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants