Skip to content

multi-occur like feature? #182

Description

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

Activity

  1. abo-abo commented on Jul 28, 2015

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

  2. priyadarshan commented on Jul 29, 2015

    @priyadarshan
    Author

    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.

  3. xuchunyang commented on Jul 29, 2015

    @xuchunyang
    Contributor

    You need to install the counsel package.

  4. priyadarshan commented on Jul 29, 2015

    @priyadarshan
    Author

    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!

  5. abo-abo commented on Aug 21, 2015

    @abo-abo
    Owner

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

  6. priyadarshan commented on Aug 21, 2015

    @priyadarshan
    Author

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

  7. priyadarshan commented on Aug 22, 2015

    @priyadarshan
    Author

    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!

  8. s-kostyaev commented on May 24, 2016

    @s-kostyaev

    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.

  9. abo-abo commented on May 24, 2016

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

  10. s-kostyaev commented on May 24, 2016

    @s-kostyaev

    counsel-ag is great. Thanks.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions