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

Comments

Projects
None yet
4 participants
@priyadarshan

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

This comment has been minimized.

Show comment
Hide comment
@abo-abo

abo-abo Jul 28, 2015

Owner

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.

Owner

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

This comment has been minimized.

Show comment
Hide comment
@priyadarshan

priyadarshan 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.

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

This comment has been minimized.

Show comment
Hide comment
@xuchunyang

xuchunyang Jul 29, 2015

Contributor

You need to install the counsel package.

Contributor

xuchunyang commented Jul 29, 2015

You need to install the counsel package.

@priyadarshan

This comment has been minimized.

Show comment
Hide comment
@priyadarshan

priyadarshan 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!

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

This comment has been minimized.

Show comment
Hide comment
@abo-abo

abo-abo Aug 21, 2015

Owner

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

Owner

abo-abo commented Aug 21, 2015

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

@priyadarshan

This comment has been minimized.

Show comment
Hide comment
@priyadarshan

priyadarshan Aug 21, 2015

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

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

@priyadarshan

This comment has been minimized.

Show comment
Hide comment
@priyadarshan

priyadarshan 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!

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

This comment has been minimized.

Show comment
Hide comment
@s-kostyaev

s-kostyaev 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.

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

This comment has been minimized.

Show comment
Hide comment
@abo-abo

abo-abo May 24, 2016

Owner

@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.

Owner

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

This comment has been minimized.

Show comment
Hide comment
@s-kostyaev

s-kostyaev May 24, 2016

counsel-ag is great. Thanks.

counsel-ag is great. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment