-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add multiple buffers at once #54
Comments
I don't use helm, but patches are welcome. Since nobody seems to be clamoring for this, it might be considered out of scope. |
Let's keep this one open for now. I actually ran into a situation yesterday when I wanted this feature and remembered this ticket. |
@alphapapa: I'm looking into this, and... I guess I'm not as proficient with Helm as I thought (which wasn't very). How do I select a series of files in Helm and feed them to an arbitrary command, e.g., |
With commit 0b693bd, |
I'd like to be able to add multiple buffers at once without helm, just using the generic I was thinking about creating a new issue, but searched the closed issues first and found this. The issue title doesn't mention helm explicitly, so I think a more generic solution could be discussed. Now that I think about it, it would be also useful to batch-remove buffers from a perspective. I haven't created my own Instead of via completing-read-multiple, it is also convenient to add/remove marked buffers from (defun meliache/persp-ibuffer-remove-marked-buffers ()
(interactive)
(dolist (buffer (ibuffer-get-marked-buffers))
(persp-remove-buffer buffer)))
(defun meliache/persp-ibuffer-add-marked-buffers ()
(interactive)
(dolist (buffer (ibuffer-get-marked-buffers))
(persp-add-buffer buffer))) It might be useful to have some similar functions built in or at least documented somewhere. |
Re: Re: ibuffer. Your functions look fine, I can add them (feel free to open a PR [and don’t forget the needed |
Re: ibuffer. Thanks, I might do the PR. I came up with the functions rather on the fly, while writing the comment I wanted to write that such functions would be useful, but then I thought this should be easy to do myself if there's a way to get the marked buffers and it was. I didn't think much about keymaps yet, after all we don't have a special "persp-ibuffer" mode, so the only way would be to add keybindings to ibuffer-mode-map (or create a new keymap). So far I just used the commands interactively via When I run Also I didn't think yet whether I should unmark the files after executing one of the above commands. I think we could continue such discussions in the PR. |
I use Helm, so when I tried
persp-add-buffer
, I selected several buffers with Helm, but only the first one was added. It would be very helpful if you could add multiple buffers at once. I was going to add all my org-mode buffers to an org-mode perspective, but doing it one-at-a-time...The text was updated successfully, but these errors were encountered: