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

multi-occur like feature? #182

Closed
priyadarshan opened this issue Jul 28, 2015 · 10 comments
Closed

multi-occur like feature? #182

priyadarshan opened this issue Jul 28, 2015 · 10 comments

Comments

@priyadarshan
Copy link

@priyadarshan priyadarshan commented Jul 28, 2015

I love swiper, also because it does not force the user to use helm, like for example helm-swoop.

I wish I could use it on multiple buffer/files. I could not find this feature in the code nor in any ticket yet: is it possible to use multi-occur like features with swiper, something like this?

If not, may I submit a feature request, for your consideration?

Thank you for swiper!

@abo-abo
Copy link
Owner

@abo-abo abo-abo commented Jul 28, 2015

Swiper doesn't do that yet, since I never actually got a use of multi-occur. However this package provides counsel-git-grep and counsel-ag, which are great alternatives to multi-occur: there's no need to select a buffer list, since it's determined automatically.

I can add swiper-multi-occur, just to have it, but I think that the two commands that I mentioned above are superior in 95% of the cases.

@priyadarshan
Copy link
Author

@priyadarshan priyadarshan commented Jul 29, 2015

Thank you very much for considering that.

I tried to run counsel-git-grep or counsel-ag, but those commands do not come up with M-x. I just installed swiper from Melpa. When I run M-x counsel-git-grep I get

Debugger entered--Lisp error: (error "`counsel-git-grep' is not a valid command name")

Command swiper runs fine, though.

@xuchunyang
Copy link
Contributor

@xuchunyang xuchunyang commented Jul 29, 2015

You need to install the counsel package.

@priyadarshan
Copy link
Author

@priyadarshan priyadarshan commented Jul 29, 2015

Thank you very much. Seeing counsel.el as part of the swiper package, I was trying (require 'counsel). I did not think it needed to be installed via package. Thank you for that.

I tried counsel-git-grep and counsel-ag, which are excellent.

Once use case I use a lot, is to open multiple buffers (sometimes I use helm-multi-files), /not/ belonging to a current project source. In that case, swiper-multi-occur would be a real boon.

Thank you!

@abo-abo abo-abo closed this in 860e276 Aug 21, 2015
@abo-abo
Copy link
Owner

@abo-abo abo-abo commented Aug 21, 2015

Please test. See the commit message for usage instructions, it's very similar to counsel-org-tag.

@priyadarshan
Copy link
Author

@priyadarshan priyadarshan commented Aug 21, 2015

🎉 Thank you so much, I shall test for a while and report back.

@priyadarshan
Copy link
Author

@priyadarshan priyadarshan commented Aug 22, 2015

Thank you, it works. I could not find a way to add all buffers at once, something like swiper-multi-buffers-all to apply all buffers. That would be an excellent addition, for some future release.

With that it would be useful an option, something like swiper-multi-buffers-all-ignore, that will allow to ignore listed buffers when swiper-multi-buffers-all is executed.

Thank you so much for swiper!

@s-kostyaev
Copy link

@s-kostyaev s-kostyaev commented May 24, 2016

Is it possible to add editing (like in multi-occur) to swiper-all? Multi-occur with ivy is broken - I can't stop selecting buffers.

@abo-abo
Copy link
Owner

@abo-abo abo-abo commented May 24, 2016

@s-kostyaev It's possible but has very little priority. Editing is already implemented for counsel-git-grep and counsel-ag via wgrep. Those two commands are better than swiper-all.

@s-kostyaev
Copy link

@s-kostyaev s-kostyaev commented May 24, 2016

counsel-ag is great. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.