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

Open multiple files at once with 'toggle selection' #260

Open
austinwhite opened this issue Mar 30, 2023 · 3 comments
Open

Open multiple files at once with 'toggle selection' #260

austinwhite opened this issue Mar 30, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@austinwhite
Copy link

Is your feature request related to a problem? Please describe.
When I need to open more than 1 file I have to start the file browser several times because when a new buffer starts the one containing the file browser closes.

Describe the solution you'd like
Use the 'toggle selection' (<TAB>,<S-TAB>,<C-s>/s) option to select the files you'd like to open, then by pressing return each selection would open in separate buffers.

Additional context
This is how opening files works w/ the <C-o>/o option, it'd be cool if this functionality was replicated with vim buffers as well.

@austinwhite austinwhite added the enhancement New feature or request label Mar 30, 2023
@austinwhite
Copy link
Author

I can work on a pull request if this feature makes sense.

@fdschmidt93
Copy link
Member

I've been working extensively on this general concept of actions on multi selections upstream at telescope.nvim.

The reason that never got merged is because it was very hard to agree about general design choices (mostly for actions other than file opening).

Whipping this up for me should be rather quick. I'll see if I can add this to #210 The primary complexity stems from opening files and folders. I guess the latter would have to be ignored.

@akoskm
Copy link

akoskm commented Feb 22, 2024

Thanks for this fantastic plugin! I hope this feature gets implemented soon.

It's a typical workflow for me to grep the project for a text, and I get back a list of files, some of which I want to modify. As I go over the results list, I'd like to be able to pick files I like to open and modify using 'toggle selection'.

As a workaround, I'm using Nvim Spectre because its persistent search panel allows me to select the files I want to work on. It's not perfect because I still see all the other files I don't want to work on here, but it's a start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants