Questions tagged [ivy]

Ivy is a generic completion mechanism for Emacs.

From the Ivy Manual:

Ivy is an interactive interface for completion in Emacs. Emacs uses completion mechanism in a variety of contexts: code, menus, commands, variables, functions, etc. Completion entails listing, sorting, filtering, previewing, and applying actions on selected items. When active, ivy-mode completes the selection process by narrowing available choices while previewing in the minibuffer. Selecting the final candidate is either through simple keyboard character inputs or through powerful regular expressions.

142 questions
21
votes
2 answers

Enable ivy fuzzy matching everywhere, except in swiper

I have been using flx-ido-mode for a while and I like it. Ivy can behave the same way by using ivy--regex-fuzzy. The problem is that swiper will also use fuzzy matching now and in this case I don't really like it (at least not as a default, all the…
B_old
  • 717
  • 5
  • 14
16
votes
6 answers

Ivy disable completion for a command in minibuffer

Can I disable ivy completion for a single command while in minibuffer? For example I am in folder ~/code/study/ . If I open find file and autocomplete with Ivy I will see Find file: ~/code/study/ ./ ../ [...] and I want, in a single jump go to…
Rafa de Castro
  • 1,231
  • 10
  • 14
16
votes
2 answers

How can I setup eshell to use ivy for tab completion?

I'm very fond of ivy for completion and love that a simple (ivy-mode 1) is enough to get ivy almost everywhere that Emacs uses some sort of completion (that is acomplished by overriding completeing-read, I believe). But this doesn't setup eshell to…
Omar
  • 4,732
  • 1
  • 17
  • 32
13
votes
1 answer

Code auto completion with ivy

In a big C++ project I use dabberv-expand (aka M-/). Rtags, ctags, csope etc do not work by different reasons. Unfortunately I do not know how to enforce dabbrev to use a fuzzy search. So I decided to use ivy. The following code does almost…
Alex
  • 133
  • 1
  • 4
10
votes
1 answer

how to ignore current selection from ivy when my typed text matches one

I run into this issue from time to time when I want to create a new file but the new name matches a pattern already so my Ivy auto-complete setup will pick the matched option when I press Enter instead of just directly using the text I have entered…
Vince W.
  • 395
  • 2
  • 11
7
votes
0 answers

Hierarchical org refile support with ivy

When I enable ivy-mode in an org buffer and C-c C-w for refile, all headlines are presented as refile targets. So far so good. I relied on the org default setting (org-outline-path-complete-in-steps 't) which presents me a hierarchical possibility…
JohnDoe
  • 203
  • 1
  • 8
7
votes
3 answers

How to remove files from recentf / ivy-virtual-buffers?

I find ivy's virtual buffers feature ((setq ivy-use-virtual-buffers t)) very handy for navigating to files whose buffers have been closed. Like ido's virtual buffers,it uses recentf to present those files as if their buffers were still open when…
Croad Langshan
  • 3,192
  • 14
  • 42
7
votes
2 answers

How to ignore certain filename patterns in `find-file`/`counsel-find-file`?

When using stock find-file or counsel-find-file, is there a way to ignore certain files that I almost never want to open by hand? Examples include .elc files and backups.
Nova
  • 1,059
  • 9
  • 21
6
votes
1 answer

Equivalent of helm-ag-edit with ivy

I've been trying to switch to Ivy from Helm for the past little while. One feature I miss (and because of this I keep helm installed) is the ability to run helm-ag, and then to hit C-c C-e so I can edit the lines in the file that helm-ag matched. Is…
Ashton Wiersdorf
  • 349
  • 1
  • 11
6
votes
1 answer

Ivy: sort candidates by most recently used

I'm coming from Helm to Ivy just to try it out, and one thing I miss greatly from Helm is how the default candidate when hitting M-x is whatever the last command was. Is there some way to sort Ivy's results by most-recently used?
Ashton Wiersdorf
  • 349
  • 1
  • 11
6
votes
1 answer

Display corresponding key binding of command during M-x completion

As an example, when I use M-x save-buffer Emacs says in the minibuffer: You can run the command ‘save-buffer’ with C-x C-s I'm using Swiper/Ivy; I want to know if there is a way to instruct Ivy to append the keybinding of a command while it shows…
Anderson Torres
  • 250
  • 2
  • 8
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
0 answers

ivy preview buffer without buffer creation

When searching in a project using a counsel-ag, I want to implement a preview, similar to the counsel-grep. Now I use copy-paste from counsel-ag with :update-fn (lambda () (counsel-grep-action (ivy-state-current ivy-last))) But it opens…
sivakov512
  • 516
  • 3
  • 13
6
votes
2 answers

Edit org-mode tags using ido or ivy completion

I'd like to try a different method of specifying tags than the built-in single character codes. How can I tag headings using ido or ivy completion? I think I would like at least two commands: Toggle a single tag on a heading Edit the list of tags…
Croad Langshan
  • 3,192
  • 14
  • 42
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
1
2 3
9 10