-
-
Notifications
You must be signed in to change notification settings - Fork 842
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
feat: Multi-select style actions #807
base: master
Are you sure you want to change the base?
Conversation
Now you can pass the entry that you want to take the action on for both actions and action sets. This is part 1 of being able to do things like taking actions on multiple entries, but only writing code for one :)
skip-checks: true
With functional wrappers around selections & entries (see #931 and I'd have in mind that, for any local actions = require 'telescope.actions'
local action_utils = require 'telescope.actions.utils'
telescope.setup {
defaults = {
mappings = {
i = {
["<C-v>"] = action_utils.with_selections(actions.select_vertical),
-- obviously only for builtin.git_status :)
["<C-s>"] = action_utils.with_entries(actions.git_staging_toggle)
},
},
}, Let me know what you think :) |
Looks like this PR might have long gone stale. Does anyone know if there's a workaround for selecting multiple files in telescope yet as this is quite a key missing feature compared to FZF. Thanks. |
+1 very much looking forward to this being official. Being able to select multiples (with TAB) but not being able to open them still is a bummer. Especially for a feature I use multiple times a day every day but I will try the workarounds. |
I think for now sending to quickflist is the best alternative when you can't open the files directly |
Yeah, I can stand that with vim-bqf's features but it's still a different feature all together. Luckily I have both now thanks to vim-bqf and this workaround |
WIP: Will update this later :)
Also will try and fix:
And I'll add docs when I'm done as well. Hopefully this is backwards compat, so when testing, please let me know if you experience breaking changes.