Questions tagged [ivy]

Ivy is a generic completion mechanism for Emacs.

Filter by
Sorted by
Tagged with
0
votes
1answer
78 views

Change face for non-selected ivy items

I'd like to change the foreground color of non-current ivy items. The only way that I've found to do that so far is to define my own ivy-format-function like this: (defun aj/ivy-format-function-line (...
2
votes
2answers
449 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?
0
votes
1answer
45 views

Cursor position variable

Here's my function: (defun scroller-down () "Scrolling down conditional for buffer and minibuffer." (interactive) (if (active-minibuffer-window) (ivy-scroll-down-command) (scroll-down-...
2
votes
1answer
329 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.
1
vote
1answer
311 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 ...
4
votes
2answers
1k 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 ...
2
votes
2answers
909 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
1answer
303 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 ...
3
votes
1answer
55 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. ...
2
votes
1answer
310 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 ...
3
votes
2answers
698 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 ...
3
votes
1answer
424 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 ...
1
vote
0answers
256 views

ivy-hydra: error upon C-o

While trying to figure out another problem. I was advised to use the ivy-hydra package. By default, it appears that ivy-hydra is NOT included with prelude-ivy. So I did a package-install ret ivy-...
2
votes
1answer
763 views

prelude-ivy: How to select and open multiple files

I have installed Ivy (along with Swiper and Counsel) as part of Prelude by doing a (require 'prelude-ivy) in my prelude-modules.el file. It seems to work, but I am not able to figure out how to do ...
3
votes
1answer
384 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 ...
1
vote
2answers
117 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'...
6
votes
0answers
867 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 '...
4
votes
2answers
476 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.
2
votes
1answer
208 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' ...
0
votes
1answer
519 views

Making counsel-find-file not open dired on ./

I sometimes "accidentally" hit TAB again when I've already completed myself into a subdirectory. This means the current dir ./ is highlighted and ivy opens it with dired. This is basically never ever ...
1
vote
0answers
207 views

Specifying filetype when using counsel-git-grep

I'm using counsel-git-grep to search inside a project for a specific string, which works great. However, I would like to additionally specify a filetype pattern to reduce the result set. I tried ...
1
vote
0answers
153 views

how can i thoroughly change (key “C-x”) in ivy-minibuffer-map?

one thing very interesting, i tried to (define-key ivy-minibuffer-map (kbd "C-x") 'ivy-kill-line) ..well then i restart my emacs, the first time i use the ivy to complete something, i type C-x ...
1
vote
0answers
131 views

Accidentally deleted Ivy. Now what?

I went to M-x list-packages and accidentally deleted Ivy. How do I get it back in M-x list packages now?
1
vote
0answers
356 views

A Tramp file is stuck in my buffer cache

I'm using Emacs 25.3.1 with Spacemacs 0.200.9. I have Ivy installed. At some point in the past, I opened a Tramp session to a local machine over SSH. Now, when I'm not on that network and I try to ...
2
votes
1answer
304 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
1answer
195 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 ...
4
votes
1answer
1k 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 ...
1
vote
1answer
275 views

Using default results with ivy and `read-file-name`

I have recently started using ivy, and I've been very happy with it. The only behaviour which I've found quite surprising, is the combination of completions and read-file-name. As an example, if I ...
4
votes
2answers
1k 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: ...
5
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
187 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-...
3
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 ...
6
votes
0answers
265 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-...
3
votes
1answer
376 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 ...
1
vote
1answer
248 views

What is causing background colors to blend?

I'm using ivy which defines two faces that can highlight matches, ivy-current-match and ivy-highlight-face. It's possible that both can be applied to one match. I've noticed that in some cases the ...
3
votes
1answer
331 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 ...
11
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 ...
2
votes
1answer
1k 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.
3
votes
1answer
232 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 ...
16
votes
2answers
2k 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-...
2
votes
1answer
488 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 ...
3
votes
1answer
510 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
1answer
704 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.
3
votes
1answer
475 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 ...

1
2