10 votes
Accepted

Swiper get last search term

When you invoke swiper press M-p to search for previously searched thing. M-n will let you search for the word under cursor. C-s will search for the next occurence. UPD, thx @Basil After you ...
Maxim Kim's user avatar
  • 1,766
9 votes
Accepted

Show counsel-ag results in separate buffer?

Try C-c C-o (ivy-occur) in the minibuffer.
Erik Hetzner's user avatar
8 votes

Is it possible to insert word at point in swiper?

You can insert symbol at point with M-n - the same key as the history forward, which is one of the recommended Emacs workflows for inserting thing at point. Additionally, M-j will extend the ...
abo-abo's user avatar
  • 14.1k
7 votes
Accepted

Extending word search selection in swiper

Try M-j, which is bound to ivy-yank-word in the ivy minibuffer key map. It's worth reading through the the ivy manual, either in Emacs or online. The relevant key bindings are discussed here: http://...
glucas's user avatar
  • 20.6k
5 votes

Swiper - How to move pointer to the next search item in the same line

Press C-' (swiper-avy) to select any visible candidate. Even if there are many candidates on the same line.
abo-abo's user avatar
  • 14.1k
3 votes
Accepted

How to copy the search result (using Swiper) from search buffer in doom emacs?

From the swiper search, type C-c C-o That will open a separate buffer with the search results. From there you can copy whatever you like just like you can from any other buffer.
izkon's user avatar
  • 1,878
3 votes
Accepted

How can I start swiper with an initial filter?

It's a bit tricky, since you can't call anything after read-from-minibuffer (called by ivy-read called by swiper) until it returns. However, there's a visible function swiper--update-input-ivy that's ...
abo-abo's user avatar
  • 14.1k
3 votes
Accepted

Is it possible to insert word at point in swiper?

Its not quite the word at point, but M-j puts the current subword in the minibuffer. If you are at the beginning of the word, it puts the word in.
John Kitchin's user avatar
  • 11.9k
2 votes
Accepted

How to highlight ivy candidates in the manner of hl-line?

You probably want: (setq ivy-format-function 'ivy-format-function-line)
abo-abo's user avatar
  • 14.1k
2 votes
Accepted

Mark input in swiper-thing-at-point

I use helm-swoop just like what you described, so the same technique can work for you in swiper too. Helm-swoop picks up the input at point and I want it to be selected automatically, so I can ...
Tom's user avatar
  • 1,260
1 vote
Accepted

With swiper counsel ivy installed I get a 4 digit number in front of M-x in the mini-buffer. What does this number relate to?

I think you are referring to ivy-count-format. From the manual: A string that specifies display of number of candidates and current candidate, if one exists. You can customize it if the default ...
Manuel Uberti's user avatar
1 vote

Mark input in swiper-thing-at-point

I don't have an answer related to Swiper, sorry. But FWIW, Icicles provides what (I think) you're describing. You can insert buffer text at point into the minibuffer (appending it to what's already ...
Drew's user avatar
  • 77.5k
1 vote
Accepted

Why can't Emacs find counsel and swiper, even though they (and Ivy) seem installed, and Ivy working?

Adding the following to my .emacs seems to solve the problem: (package-initialize) But I'm a little bit confused, because 41.1 Packaging Basics says that Whenever Emacs starts up, it ...
Emre Sevinç's user avatar
1 vote
Accepted

How can I get swiper to remember the last search I ran?

C-s after calling swiper will bring up the last search. M-p will iterate back through the search history. M-n will do the same the other way. If you followed the installation instructions and used the ...
Muihlinn's user avatar
  • 2,624
1 vote

Escape Swiper even when match is required

You can try (setq swiper-stay-on-quit t). When you hit C-g you'll be redirected to the location selected by swiper.
aadcg's user avatar
  • 1,248
1 vote

Mark input in swiper-thing-at-point

For completeness, here is what I ended up implementing, based on @Tom's answer: (defun acg/with-marked-input (&rest args) "Mark input of minibuffer. To be used as advice before any function ...
Arthur Colombini Gusmão's user avatar
1 vote

How to show the total match count in swiper?

https://github.com/abo-abo/swiper/issues/1931#issuecomment-479513287 "Please test swiper-isearch. It's no longer line-based like swiper, which makes it display the total number of matches. It also ...
junnu's user avatar
  • 780
1 vote

Is it possible to insert word at point in swiper?

What happens if you just remove any other (e.g. swiper) binding of M-.? For example, if you do (define-key swiper-map (kbd "M-.") nil). I'm guessing that won't help, because this is a minibuffer ...
Drew's user avatar
  • 77.5k

Only top scored, non community-wiki answers of a minimum length are eligible