Questions tagged [ivy]

Ivy is a generic completion mechanism for Emacs.

Filter by
Sorted by
Tagged with
15
votes
2answers
1k views

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-...
9
votes
2answers
3k views

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 ...
8
votes
4answers
2k views

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/ ./...
7
votes
1answer
2k views

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 ...
6
votes
3answers
674 views

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 ...
6
votes
0answers
186 views

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-...
6
votes
2answers
206 views

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?
4
votes
2answers
1k views

What's the equivalent of `helm-find` in ivy/counsel? I want to find files **recursively**

helm-find is Preconfigured ‘helm’ for the find shell command I need the same functionality with ivy/counsel.
4
votes
1answer
450 views

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 ...
4
votes
1answer
97 views

Open directory containing file during counsel-file-jump

I use counsel-file-jump to search files recursively. I would like to open the directory that contains a particular file candidate. I can execute counsel-dired after I open the file, which allows me to ...
4
votes
1answer
793 views

How to switch between Ivy completion styles?

There are three Ivy completion styles: ivy--regex-plus ivy--regex-ignore-order ivy--regex-fuzzy C-o (hydra-ivy/body) m toggles between ivy "ivy--regex-plus" and "ivy--regex-fuzzy". How to switch to ...
4
votes
2answers
758 views

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: ...
4
votes
2answers
393 views

After enabling ivy-mode, `dired-create-directory' does not allow me to choose an entry not in the completion list [duplicate]

Is there any way to allow me to type in a new dir name that is not in the completion list generated by ivy-mode?
4
votes
1answer
161 views

sql-connect with Ivy

I've switched from helm to Ivy and mostly everything works, but today I noticed that connecting to databases with sql-connect doesn't work anymore. I have the following in the variable sql-connection-...
4
votes
2answers
536 views

How to toggle regex for helm/ivy user input?

IIUC, all helm commands (including helm-swoop, swiper-helm) have regex enabled by default for user input. Can we toggle/disable it by some command/shortcut? Let me know if I missed something. Using ...
4
votes
2answers
302 views

Display search results in their own buffer

I've use helm and ivy with swiper the search is great but I like to be able to keep search results in a buffer, navigate and edit my code and switch back to my search results buffer.
4
votes
0answers
576 views

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 '...
3
votes
1answer
292 views

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 ...
3
votes
1answer
321 views

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 ...
3
votes
1answer
282 views

distinguish ido/ivy's virtual-buffers with equal names using directory?

I really like the ido-use-virtual-buffers/ivy-use-virtual-buffers features, but unfortunately if you have five files named style.css in different projects, it is less useful. With already-opened ...
3
votes
2answers
133 views

How to select a rotating Hydra option?

From SPC f f (counsel-find-file) minibuffer, open Hydra with C-o (hydra-ivy/body). This is what hydra looks on my system: The Hydra right column has "[m] matcher: order". Pressing 'm' rotates matcher ...
3
votes
1answer
213 views

Compatibility with the function (ivy-switch-buffer) of ivy-mode and bm (a bookmark package)

The package ivy-mode has the function ivy-switch-buffer, which use the build in variable bookmark-alist to incorporate bookmarks to its options. I use the package bm to store my bookmarks, which use ...
3
votes
1answer
50 views

completion for .bash_history

I am considering implementing an ivy-powered bash_history greper for term-mode, but before I do I wanted to know if this has already been done, by some fancy company-bashhistory package or whatever. ...
3
votes
1answer
258 views

More convenient auto-completion using ivy

I have the following lines in ~/.emacs: (require 'counsel) (with-eval-after-load 'org (define-key org-mode-map (kbd "C-c C-c") #'counsel-org-tag)) (with-eval-after-load 'org-agenda (define-key ...
3
votes
0answers
49 views

Does ivy-occur have a follow mode?

In org-agenda, it is possible to enable a "follow mode" so that moving the point over an agenda item automatically displays the linked item in another window. In ivy-occur, you need to press f to get ...
2
votes
1answer
914 views

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.
2
votes
1answer
418 views

How to create a new buffer with ivy-switch-buffer that shares a substring with an existing buffer?

Suppose I have a file opened called "analysis-evaluation.tex" and I'd like to create a new buffer called "eval". When using Ido, I would press C-j to create a new buffer rather than switching to an ...
2
votes
2answers
380 views

Insert file path via counsel

A common part of my workflow is to copy and paste file paths into Emacs. This is usually done by navigating to the file in my desktop environment or from a terminal. What would be more convenient is ...
2
votes
3answers
2k views

How to find file name a few levels down in directory?

I am new to emacs (using Spacemacs with Evil and Ivy). This is how I open a file: SPC f f (counsel-find-file) Find file: I entered path of file. Ivy matches words one directory at a time. But ...
2
votes
2answers
573 views

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?
2
votes
2answers
279 views

How to stop “completing-read” / “ivy-completing-read” from sorting?

Recently, when using Ivy and calling completing-read, my output is being sorted (instead of showing up in the order passed in). How can I prevent sorting the input to completing-read when using Ivy?
2
votes
1answer
39 views

Scope minibuffer history to specific Counsel commands

If I run bookmark-jump and use invoke M-p, it cycles through the history of bookmarks specifically. If I run counsel-bookmark-jump, M-p cycles through the generic minibuffer history, which is more or ...
2
votes
1answer
167 views

after previous `counsel-yank-pop`, `yank` the last yanked entry

short: after a counsel-yank-pop, yank does not yank the same entry. How can I achieve that behavior? long: Having a kill-ring like: foo bar baz When doing a C-y (yank) and M-y (yank-pop) 'bar' ...
2
votes
1answer
406 views

Change face for ivy-custom-match

From the Ivy manual: Customizability is about being able to use different methods and interfaces of completion to tailor the selection process. For example, adding a custom display function that ...
2
votes
1answer
74 views

How to tell Ivy to use completing-read-default for specific command? (org-tags-view, in particular)

Ivy (+swiper +counsel) is very cool and I use it constantly for an ever growing number of tasks. But there are some cases in which the requirements of a certain completion task defeats Ivy's logic. ...
2
votes
1answer
116 views

Rebind TAB to show help in counsel minibuffer

I'm in the process of migrating from helm to ivy/counsel, and I would like to replicate a binding that I had in my previous setup. When browsing the results minibuffer (for example in counsel-M-x), ...
2
votes
1answer
212 views

Disable ivy-mode in a specific buffer

Evaluating (ivy-mode 0) in a buffer kills ivy across all the other buffers, too. How to stop ivy in a specific buffer only (I don't need it in ERC, where i want TAB to give me a list of all the people ...
2
votes
1answer
508 views

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.
2
votes
1answer
409 views

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 ...
2
votes
1answer
126 views

Emacs mark and copy/move to buffers or bookmarked directories

Is there a way to use bookmarks or the buffer list of open buffers to efficiently copy/move marked files/directories to another directory? As an example, imagine I want to copy the files foo.txt and ...
2
votes
1answer
522 views

How do I prevent autocompletion when trying to save a file? [duplicate]

I have an existing directory called ~/app_scripts and a buffer open with a file I would like to save. I want to save it to ~/scripts/script.py, but the ~/scripts dir does not yet exist. When I hit C-x ...
2
votes
1answer
214 views

Which faces do Ivy/Counsel use in the minibuffer?

Which faces are being applied to the indicated text, i.e. the strings 3114, M-x, and C-x C-c, in the following screenshot? I am using the packages Ivy and Counsel, in case that is relevant.
2
votes
1answer
157 views

How to highlight search tool matches in minibuffer?

These search tools list results in the minibuffer, but the matches are not highlighting: SPC s a f (ag) SPC s g f (grep) SPC s k f (ack) SPC s t f (pt) Help describe does highlight matches. Would ...
2
votes
1answer
246 views

default of “calling” when run counsel-git-grep

counsel-git-grep is nice to search git repository, but by default it can't show the candidate lively. Meaning if I use down arrow to select the next candidate, the buffer doesn't change, and one ...
2
votes
0answers
14 views

How to prevent magit with ivy from selecting an author email address? [duplicate]

I have a git repository containing commits with 3 of my email addresses. When I try to view the log and filter by author (-A) and then enter a few letters of my last name, I see a list of the 3 email ...
2
votes
1answer
176 views

Equivalent to `ido-find-file` functionality for ivy/counsel?

I really like how ido-find-file, if it can’t find a file matching your string (and you’ve let it idle for like a second), will search your whole home directory for files matching that string, and then ...
1
vote
1answer
195 views

How to keep Ivy from quitting when I press backspace in the minibuffer?

It's pretty annoying when I hold down Backspace one character too long in the minibuffer, causing Ivy to quit and then accidentally deleting some characters in the main buffer I'm working in. How do ...
1
vote
2answers
89 views

Transform w3m buffer names in ivy-switch-buffer

emacs-w3m really likes to have its buffers have names like *w3m*<16> or *w3m* so when switching buffers, it's impossible to tell just from the names which buffer is displaying which web page. I'...
1
vote
2answers
255 views

How can I store an org-link to a list of search results from ivy-occur?

When I use counsel-rg to grep through a directory hierarchy, once a list of search results has been displayed in the minibuffer, I can use ivy-occur to save the list in a dedicated buffer. How can I ...
1
vote
1answer
131 views

Omit current and parent directories in Ivy find-file completion

I'm using Ivy in a fairly standard Spacemacs setup. When I'm opening a file I'd like . and .. to be omitted from the list of completion candidates. In particular, I'd like to be able to tab through ...