-
Notifications
You must be signed in to change notification settings - Fork 40
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
Flag expansion #27
Comments
Does one of these option solve your request? You can set an initial prompt: You can define custom quote shortcuts, like for instance
|
My preferred usage would be Initially, I was thinking of adding a double-dash ( Why? Well, you can actually do Here's what I am using: local semi_quote = function(opts)
opts = opts or {}
opts = vim.tbl_extend('force', default_opts, opts)
return function(prompt_bufnr)
local picker = action_state.get_current_picker(prompt_bufnr)
local prompt = picker:_get_prompt()
if opts.trim then
prompt = vim.trim(prompt)
end
prompt = prompt:gsub(opts.quote_char, '\\' .. opts.quote_char)
prompt = opts.prefix .. opts.quote_char .. prompt
picker:set_prompt(prompt)
end
end I've found a couple of small annoyances (at least for me). I will submit PRs and leave it up to you to decide if they make sense. |
I've requested a similar feature to
ripgrep
: BurntSushi/ripgrep#2273Here is the short summary from the linked issue:
I think it would be useful to create custom expansions (or token replacements, maybe?!).
Does this make sense to include it in this plugin?
I can think of many use cases actually:
-NF
->--no-fixed-strings
-NM
->--g '**/node_modules/**' --no-ignore
I think this can be achieved relatively easily, by trying to replace exact matches in each prompt part.
The text was updated successfully, but these errors were encountered: