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

Cannot use '%' or '#' in cmd arguments #17

Open
nickspoons opened this issue Nov 18, 2018 · 0 comments
Open

Cannot use '%' or '#' in cmd arguments #17

nickspoons opened this issue Nov 18, 2018 · 0 comments

Comments

@nickspoons
Copy link
Contributor

Commit b62de9d introduced the nice feature of having % and # automatically expanded. Unfortunately, it makes it impossible to e.g. :Grep asyncdo#run (grep for "asyncdo#run" using the :Grep command suggested in the docs).

I'm not exactly sure what the best way to handle this situation is, but I feel like % and # substitutions should be more explicit. What about some markers that represent explicit expansion? e.g.:

" From autoload/asyncdo.vim, expands to:
" :AsyncDo grep asyncdo#run autoload/*
:AsyncDo grep asyncdo#run {{%:h}}/*

This makes the expand substitution simpler (just look for {{...}}), and more powerful as it doesn't need to specify which things get expanded (currently % and # with phrte filename-modifiers, but not other filename-modifiers or expandable settings).

I can make a PR if this sounds like a sensible approach?

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

1 participant