Questions tagged [swiper]

27 questions
6
votes
2 answers

Swiper get last search term

How to get swiper to search for the last searched term , much like (default) isearch-forward does when pressing C-s twice?
yPhil
  • 963
  • 5
  • 22
6
votes
2 answers

How to show the total match count in swiper?

When using swiper for search, it only shows the number of matching lines. How can I view the number of matches?
xuhdev
  • 1,839
  • 13
  • 26
4
votes
1 answer

Escape Swiper even when match is required

Swiper automatically moves to the next location that matches your current input. You can press RET to return to the main buffer when the search is successful. When you type in a word that does not exist, Swiper remains at the last location where a…
olivaw
  • 141
  • 2
4
votes
1 answer

Show counsel-ag results in separate buffer?

I use counsel-projectile for Ivy + Projectile interoperability. But, when I run something like C-c p s s / M-x counsel-projectile-ag, the results are shown in the minibuffer, and I can't see any obvious way to move them to a buffer. Is there a way…
Henry
  • 203
  • 1
  • 5
4
votes
1 answer

Extending word search selection in swiper

I have been using helm from some time and am now trying ivy, counsel and swiper. Regarding swiper I am wondering if there is a way of extending the word search selection. Just like hitting C-w after a normal incremental search command with C-s. What…
nephewtom
  • 2,219
  • 17
  • 29
4
votes
3 answers

Is it possible to insert word at point in swiper?

I'm using swiper for searching, one thing i very much miss compared to isearch is to insert the word at point into swiper. I have icicles installed, but M-., which i usally use to insert word at point into the current minifbuffer, doesn't seem to…
Max
  • 311
  • 2
  • 11
4
votes
1 answer

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

Coming from helm, I am giving swiper and ivy-mode a shot. I'm looking for a way to highlight candidates in the way hl-line-mode does: full width background.
Mathieu Marques
  • 1,953
  • 1
  • 13
  • 30
4
votes
1 answer

How to make swiper-helm to use helm layout?

I set this in helm (setq helm-split-window-in-side-p nil) This forces helm to use selected window for helm session like this(When point is in right split, helm buffer popped in left split only). Now when I use swiper-helm, it doesn't honor this.…
Chillar Anand
  • 4,042
  • 1
  • 23
  • 52
3
votes
0 answers

How to delete lines in ivy-occur-mode?

In a typical search and replace type workflow, I use swiper to search for all instances of an expression that I want to edit in a buffer. To work on the instances collectively, I enter the ivy-occur edit mode. The occur instances are displayed line…
Tian
  • 288
  • 1
  • 8
3
votes
1 answer

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

I use swiper package to search and to navigate and I use C-n & C-p to search next and previous items. However, this doesn't go through the search items on the same line even though they are highlighted. I think it only cycles through the first items…
chanyoungs
  • 53
  • 9
3
votes
1 answer

How can I start swiper with an initial filter?

I'd like to start swiper with a filter pre-set on the search -- as if I'd entered a search expression and then used S-SPC (ivy-restrict-to-matches) to clear the query space to narrow the results down further. I can use (swiper "something to search…
Sean Allred
  • 6,861
  • 16
  • 85
2
votes
1 answer

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

I search the line containing rowid in the buffer, and want to copy all the lines in the result window. How to do that?
Daniel Wu
  • 95
  • 2
2
votes
3 answers

Mark input in swiper-thing-at-point

Having some command automatically populate the input string is a great thing (particularly, I refer to the feature that swiper-thing-at-point provides). However, I would like to enhance this functionality even more by being able to have the input…
2
votes
1 answer

dired-do-copy in tramp does not go to local when `\ C-j` is pressed. File path stays in the same directory

I am using dired-do-copy to copy a file from remote using tramp to local. When Copy file to path is promted. I used / C-j to go to local path but the path stays in the same directory , does not go to local root from remote. I have also tried M-x…
user23911
2
votes
0 answers

How do I cycle through file locations on counsel results?

I'm trying to look for all the occurrences of a word in my project and I'm using counsel for this. I get the list of occurrences and their locations in the minibuffer, but I'd like to cycle through the files at exactly the location of the…
Oin
  • 145
  • 5
1
2