Questions tagged [ivy]

Ivy is a generic completion mechanism for Emacs.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Understand edebug stack tracing

so for some unknown reason, whenever I edebug-defun to counsel-jq, I get the following error edebug-syntax-error: Invalid read syntax: "Expected one of", symbolp, lambda-expr stack trace ...
2 votes
1 answer
53 views

Why is ivy-switch-buffer not found in counsel-M-x, but works when called by C-x b (or from the scratch buffer)

According to helpful-key, C-x b is bound to ivy switch buffer: According to the code, that is an interactive function. However, when I look for it in the Counsel-M-x menu, it's not found: I figured ...
0 votes
1 answer
166 views

Fuzzy Search with Counsel

I have this function: crux-rename-file-and-buffer , but when I do M-x rename, why isn't this shown as an alternative? I thought ivy was supposed to assist with that, using a fuzzy search? Why is it ...
3 votes
1 answer
45 views

Emacs recent buffers use `~` abbreviation?

I have my entire Spacemacs config syncing between a Mac and a Linux machine, which provides a lot of benefits. My packages are always up to date on both systems, a configuration change on one machine ...
0 votes
1 answer
68 views

How to enable fuzzy matching in Ivy's prompt-buffer via use-package?

I used to use Helm and I really liked it. After watching System Crafter's YouTube series called "Emacs from Scratch", I decided to use the configuration showcased. The YouTuber prefers Ivy ...
1 vote
1 answer
46 views

Ivy minibuffer colums not left-justified with my setup

I am following System Crafters series on Emacs from Scratch on YouTube. With my configuration as I have set it up, Ivy doesn't appear in nice left-justified easy-to-read columns. I am trying to figure ...
0 votes
0 answers
16 views

How to change location of filetags on minibuffer

When doing an org-roam-node-find, using Ivy as my completion system, I get in the minibuffer the name of the nodes, and on the far right the filetags for those nodes. But for some of them the tags get ...
1 vote
1 answer
156 views

Insert path into buffer with vertico.el

I have recently switched from ivy to vertico for the file completion menu system (the new default in doom). Sometimes I want to insert the full path to a file into the current buffer (for example ...
0 votes
1 answer
30 views

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?

It doesn’t seem to be related either to the line I am in nor to the number of chars in the document.
1 vote
0 answers
104 views

How to speed up tramp with ivy

I use ivy for file and buffer completion. As soon as I have one (dired) buffer which gets its content via tramp from a (slow) remote server all buffer and file selection commands become very slow even ...
  • 1,111
1 vote
1 answer
98 views

Ivy version of mu4e-view-save-attachments

I used to use helm and really liked mu4e-view-save-attachments as a quick way to save multiple attachments in an email at once. I recently switched to Ivy and learned this function is helm specific. ...
  • 157
0 votes
0 answers
29 views

How can I change the ivy defaults for diff?

When I invoke diff I get two ivy prompts. The first one defaults to the current buffer, the second often to some kind of backup. It is quite awkward to navigate from the backup path to any useful ...
  • 266
1 vote
1 answer
92 views

Accept default in ivy filename prompt

Using Doom Emacs, when I invoke a command (such as diff) that needs a filepath I get an ivy prompt that names a default value: But I am unable to clear the line or somehow tell ivy to take that ...
  • 266
3 votes
0 answers
106 views

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 ...
  • 288
0 votes
1 answer
56 views

ESS: start R in current directory conflicts with ivy-mode

I use ivy-mode for completion. I don't usually want to see the dot files ("./" and "../") when selecting files/directories, so I've set (setq ivy-extra-directories nil). I also ...
  • 20.7k
0 votes
3 answers
244 views

Limit counsel-locate to certain file type and directory

CentOS 7, Emacs 27.2, Ivy, Swiper, Counsel package. In Temp folder I have different files. I want to find using counsel-locate all text files only in this folder and all subfolders. I try this: As ...
  • 3,505
0 votes
0 answers
217 views

Not all counsel-find-file actions are shown

Linux Mint 20.1 , Emacs 27.2, I installed Ivy, Swiper and Counsel. So in sources file of counsel.el I find this: (ivy-set-actions 'counsel-find-file '(("j" find-file-other-window "...
  • 3,505
0 votes
1 answer
793 views

Auto-load Ivy.elc failed to define swiper

I get the followingerror message: command-execute: Autoloading file /home/user/.emacs.d/elpa/ivy-20210506.2157/ivy.elc failed to define function swiper after just having installed emacs 27.2 and ...
0 votes
0 answers
102 views

Minibuffer not showing the bottom line

When I use multiple monitors, the bottom line of the minibuffer doesn't render; ie there's a line at the bottom of the list that I can select but doesn't render on screen. I'm pretty stumped on how to ...
0 votes
1 answer
510 views

Ivy: How can I execute an action on a selection without opening the action menu?

Apologies if the question is poorly formulated, I am a beginner at understanding internals of Emacs/packages. I am using using Doom Emacs, which provides Ivy as an interface for, for example, finding ...
  • 103
0 votes
1 answer
37 views

Getting text input into ivy completing read

I know that I can get previous selections of ivy with ivy-history. But is there any way to get what was actually input into the search before choosing a match?
  • 3
0 votes
0 answers
177 views

Ivy Mode Swiper key binding not working

I am learning my way around Emacs. I installed Ivy/Counsel recently. I am trying to use search with Swiper but cannot get the key binding to work. I can get it to work with M-x swiper. I am not sure ...
1 vote
0 answers
42 views

improve ivy's completions

When I do M-x package install, (with a space between the words) I get: I'd like the "package-install" option to be prioritized over "package-menu-mark-install". What can I do to ...
1 vote
1 answer
537 views

binding <tab> to company complete

I would like to always trigger company suggests. When I use: (global-set-key (kbd "<tab>") 'company-complete)) It breaks ivy's completion in the minibuffer. How can I prevent this? I ...
0 votes
1 answer
143 views

Follow org links in current buffer with ivy

How can I follow org links in the current buffer using ivy? This is similar functionality to m (M-x Info-menu) in info with ivy/counsel installed. The command should list with ivy everything that ...
0 votes
0 answers
194 views

Disable `icomplete` with Emacs `find-file`

I have been experimenting with various completion frameworks in Emacs. I am currently using consult together with icomplete. I like the way things are working for me but I would like to disable ...
  • 1,069
2 votes
1 answer
291 views

How to stop ivy-switch-buffer from trying to connect

I'm using ivy-use-virtual-buffers to see both currently and recently visited buffers in Swiper's ivy-switch-buffer and it worked great until last month when I opened distant files via ssh/Tramp. Ever ...
  • 853
2 votes
1 answer
443 views

How can I edit the beginning of the counsel-find-file filename whilst preserving the rest

I work on projects with deep directory structures and have several copies in different top-level directories. I sometimes find myself wanting to open the corresponding file in one of the other ...
0 votes
0 answers
94 views

Can `ivy-switch-buffer` add the current project's files (via `projectile`)?

I bind C-x b to ivy-switch-buffer and I've gotten used to the idea that pretty much all files I might want are in there (I use ivy-use-virtual-buffers to show recent files). But sometimes they're not, ...
  • 426
0 votes
1 answer
137 views

Argument to ivy-read action when collection is an alist

The documentation of ivy-read states that if the collection supplied is an alist, the selected candidate is passed as a cons cell to the function supplied in the :action argument. So why does the code ...
  • 231
0 votes
1 answer
104 views

What are the yellow-background items in Ivy?

I'm currently migrating from Helm to ivy+counsel, and I have a problem with the faces ivy applies in the minibuffer for some commands. See this example: Some of the possible selections are ...
0 votes
0 answers
45 views

Cannot capture notes into separate org file when entering reference into Bibtex with ivy

I am using emacs 27.1-4.1 with Spacemacs v.o.200.13 Ivy and vims. I am relatively new to emacs and am expanding into bibtex with ivy-bibtex. in my .spacemacs file is: (autoload 'ivy-bibtex "ivy-...
0 votes
1 answer
197 views

How to use ivy to select email attachments with mu4e

I use the mu4e package to read my emails. However, I also use the ivy completion framework, which includes file completion. Using both packages together is a bit of a problem though. mu4e uses its own ...
  • 20.7k
1 vote
1 answer
112 views

Why ivy-immediate-done is not shown in counsel-M-x

I realize that ivy-immediate-done is not shown in counsel-M-x. Since it's an interactive command, I'm assuming counsel-M-x somehow filters it from its result. But a quick search of the function name ...
  • 1,104
2 votes
1 answer
407 views

Selecting a directory like counsel-find-file

I would like to write a function that would prompt the user to select a directory, using an UI like that presented by counsel-find-file. The starting directory should be an arbitrary directory passed ...
  • 1,598
0 votes
1 answer
202 views

using ivy completion on a hydra

I'd like to use ivy completion to select items from my hydra rather than using the specified keymap. The use case would be for a very large hydra. I could create nested hydras, but I want to be lazy ...
1 vote
3 answers
1k views

Projectile switch between opened projects

I often have to work with multiple related projects and switching between them can become hard. I use counsel-projectile and it really makes everything easier. To be clear, I am not talking about ...
  • 11
2 votes
1 answer
344 views

Don't show "." and ".." in counsel-find-file

I have a thing where I just don't like editing directories in emacs, and I never want to enter dired mode. Any time anything might want to put me into dired mode, I would prefer it not do that and ...
0 votes
1 answer
53 views

Why does `term-emulate-terminal` get executed every time `read-from-minibuffer` gets executed?

Why does term-emulate-terminal get executed every time I execute counsel-switch-buffer if and only if the *terminal* buffer is open in a window. If the *terminal* buffer is not in a window term-...
1 vote
1 answer
57 views

How to disable "/" 's default behavior on the F interactive mode?

I use interactive mode with Ivy and Dired for interactively creating new files, like so: (evil-local-set-key 'normal (kbd "t") (lambda (file) (...
1 vote
1 answer
374 views

Is there a way to have ivy display a tooltip for the function at point?

Ie, suppose I press M-x org-agenda and ivy says there's 131 matches, of which I recognize maybe 10. It'd be useful to say, after a .2 second delay, display a tooltip for the function at point. Is ...
1 vote
0 answers
151 views

Swiper go to next matching line instead of next match?

When I use swiper to search and I press the down arrow key, it always goes to the next match even if that match is on the same line. Is there an easy way to go to the next line that has a match ...
1 vote
1 answer
82 views

Why does ivy 1.13.0 from GNU ELPA have counsel included?

MELPA has a package called counsel. Most guides on the ivy package recommend installing counsel as well. GNU ELPA doesn't have counsel. Why doesn't it? I've installed ivy 0.13.0 from GNU ELPA. I don'...
  • 225
5 votes
1 answer
319 views

how to open a file without using Ivy

Under most operations, when I open a file with C-x C-f Ivy pops up my narrowing list at the bottom and its great. However, I have a current situation when I'd like to open a file on a remote host in ...
  • 345
1 vote
1 answer
853 views

An ivy function for recently opened files?

I know that setting ivy-use-virtual-buffers leads to recently opened files being shown in the ivy-switch-buffer completion. However, I don't want this. What I want is a separate function for opening ...
  • 103
2 votes
1 answer
246 views

ivy counsel find-file with similar name

In the directory I have mongodb.js, now I want to create a db.js file but if I type the name and press enter counsel-find-file use regex to open mongodb.js. How can i create a db.js with counsel-find-...
3 votes
1 answer
196 views

how to show local file listings with C-x C-f through IVY when starting in a remote file buffer

System: Mac OSX catalina Emacs: 26.3 I use Ivy as my completion framework. Problem is when I am editing a remote buffer over ssh using Tramp, and then I want to look at a file on my local machine. ...
  • 345
0 votes
1 answer
229 views

How to use ivy to navigate named locations of a buffer?

Given a list of (point-number . title-text), how can ivy be used to show this in a list in ivy? I have code which uses completing-read to do this (see link). This can use ivy since it extends ...
  • 7,441
1 vote
1 answer
437 views

How can I resume swiper-isearch with the next line selected?

What I'm trying to do is have swiper-isearch resume the last search with the next element selected. The definition of next is the next element from where my cursor currently is. You can read my ...
  • 151
6 votes
1 answer
545 views

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 ...