You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I use the vim cmdline far more often than specialized keymaps, and I use a lot of commandline abbreviations. For example, if I want to pick files from a specific directory, I have to write out lua Snacks.picker.files({ cwd = ... }), and while that's expressive and a better programmatic interface than the commandline, it would be nice to just have one abbreviation for something like Pick files where I could just write cwd=... after.
Describe the solution you'd like
A Pick command with useful completions. Sources followed by options, something like: Pick files cwd=dir\ with\ escaped\ spaces layout=ivy hidden=true
Describe alternatives you've considered
Currently I'm using this. It completes booleans, 'focus', 'layout', and 'cwd', but any key in opts that is not a table will be completed as a key.
Using fargs lets escaped whitespace work without any effort, but requires no spaces per key/value. I like this solution overall.
Did you check the docs?
Is your feature request related to a problem? Please describe.
I use the vim cmdline far more often than specialized keymaps, and I use a lot of commandline abbreviations. For example, if I want to pick files from a specific directory, I have to write out
lua Snacks.picker.files({ cwd = ... })
, and while that's expressive and a better programmatic interface than the commandline, it would be nice to just have one abbreviation for something likePick files
where I could just writecwd=...
after.Describe the solution you'd like
A
Pick
command with useful completions. Sources followed by options, something like:Pick files cwd=dir\ with\ escaped\ spaces layout=ivy hidden=true
Describe alternatives you've considered
Currently I'm using this. It completes booleans, 'focus', 'layout', and 'cwd', but any key in opts that is not a table will be completed as a key.
Using
fargs
lets escaped whitespace work without any effort, but requires no spaces per key/value. I like this solution overall.Additional context
No response
The text was updated successfully, but these errors were encountered: