2022 Developer Survey is open! Take survey.

Questions tagged [ivy]

Ivy is a generic completion mechanism for Emacs.

Filter by
Sorted by
Tagged with
2 votes
1 answer
27 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 ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
3 votes
1 answer
42 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 ...
user avatar
0 votes
1 answer
38 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 ...
user avatar
1 vote
1 answer
42 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 ...
user avatar
0 votes
0 answers
11 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 ...
user avatar
1 vote
1 answer
85 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 ...
user avatar
0 votes
1 answer
27 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.
user avatar
0 votes
0 answers
21 views

How to configure ivy to create parent node when refiling if parent doesn't exist?

I set up ivy and it's working for finding files and refiling headlines. It just doesn't work when I try to refile and simultaneously create a new node. For example, if I wanted to refile a task, ...
user avatar
  • 113
1 vote
0 answers
63 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 ...
user avatar
  • 1,041
1 vote
1 answer
79 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. ...
user avatar
  • 155
0 votes
0 answers
41 views

How to change to any todo state from org-agenda? (Bug?)

I have customized my org todo state keywords to the following: (setq org-todo-keywords '((sequence "EVENTUALLY(e)" "BONUS" "OPTION(o)" "TODO(t)" "|" ...
user avatar
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 ...
user avatar
  • 224
1 vote
1 answer
69 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 ...
user avatar
  • 224
3 votes
0 answers
81 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 ...
user avatar
  • 288
0 votes
1 answer
28 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 ...
user avatar
  • 20.2k
0 votes
3 answers
175 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 ...
user avatar
  • 3,395
0 votes
0 answers
71 views

How to solve ivy-configure(swiper-query-replace :update-fn swiper--query-replace-updatefn) error

I am trying to setup ivy (https://github.com/abo-abo/swiper) pre-installations: sudo apt -y install elpa-counsel sudo apt -y install elpa-ivy-hydra When I add following lines to the .emacs file: (use-...
user avatar
  • 1,102
0 votes
0 answers
156 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 "...
user avatar
  • 3,395
0 votes
1 answer
588 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 ...
user avatar
0 votes
0 answers
72 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 ...
user avatar
0 votes
1 answer
392 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 ...
user avatar
  • 103
0 votes
1 answer
31 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?
user avatar
  • 3
0 votes
0 answers
120 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 ...
user avatar
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 ...
user avatar
1 vote
1 answer
328 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 ...
user avatar
0 votes
1 answer
130 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 ...
user avatar
0 votes
0 answers
154 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 ...
user avatar
1 vote
1 answer
257 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 ...
user avatar
  • 821
1 vote
1 answer
322 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 ...
user avatar
0 votes
0 answers
84 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, ...
user avatar
  • 406
0 votes
1 answer
110 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 ...
user avatar
  • 231
0 votes
1 answer
80 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 ...
user avatar
0 votes
0 answers
38 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-...
user avatar
0 votes
1 answer
164 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 ...
user avatar
  • 20.2k
1 vote
1 answer
91 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 ...
user avatar
  • 920
1 vote
1 answer
342 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 ...
user avatar
  • 1,548
0 votes
1 answer
177 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 ...
user avatar
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 ...
user avatar
  • 11
2 votes
1 answer
299 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 ...
user avatar
0 votes
1 answer
50 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-...
user avatar
1 vote
1 answer
54 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) (...
user avatar
1 vote
1 answer
341 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 ...
user avatar
1 vote
0 answers
135 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 ...
user avatar
1 vote
1 answer
73 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'...
user avatar
  • 215
5 votes
1 answer
266 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 ...
user avatar
  • 345
0 votes
1 answer
733 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 ...
user avatar
  • 93
2 votes
1 answer
214 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-...
user avatar
3 votes
1 answer
167 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. ...
user avatar
  • 345
0 votes
1 answer
212 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 ...
user avatar
  • 7,069