Questions tagged [ivy]

Ivy is a generic completion mechanism for Emacs.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 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 ...
0
votes
0answers
18 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
1answer
25 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.
0
votes
0answers
19 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, ...
1
vote
0answers
38 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
vote
1answer
51 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. ...
0
votes
0answers
36 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)" "|" ...
0
votes
0answers
25 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 ...
0
votes
1answer
41 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 ...
3
votes
0answers
41 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 ...
0
votes
1answer
14 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 ...
0
votes
3answers
87 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 ...
0
votes
0answers
40 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-...
0
votes
0answers
84 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 "...
0
votes
1answer
293 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
0answers
46 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
1answer
208 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 ...
0
votes
1answer
22 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?
0
votes
0answers
59 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
0answers
38 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
1answer
127 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
1answer
86 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
0answers
112 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
vote
1answer
172 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 ...
1
vote
1answer
194 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
0answers
23 views

Better hook for a function activating a mode when there is only one window

As @drew asked me to do here I'm asking one question per problem I'm trying to enable/disable visual-fill-column when there is one window/multiple windows. (defun my-visual-fill-one-window () (...
0
votes
0answers
73 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, ...
0
votes
1answer
82 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 ...
0
votes
1answer
55 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
0answers
26 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
1answer
137 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 ...
0
votes
1answer
54 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
vote
1answer
250 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 ...
0
votes
1answer
146 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
2answers
923 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 ...
2
votes
1answer
228 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
1answer
48 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
1answer
48 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
1answer
279 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
0answers
95 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
1answer
65 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'...
4
votes
1answer
213 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 ...
0
votes
1answer
536 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 ...
2
votes
1answer
161 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
1answer
124 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. ...
0
votes
1answer
173 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 ...
1
vote
1answer
342 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 ...
6
votes
1answer
479 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 ...
0
votes
0answers
56 views

Using Counsel with write-file and insert-file

What is the simplest way to have Counsel versions of write-file (C-x C-w) and insert-file (C-x i)? I would like these replacements to work similarly to counsel-find-file (typically bound to C-x C-f). ...
1
vote
1answer
148 views

Change the color of ivy-current-match depending on the caller

When using ivy, say I want the current match to be red when calling counsel-M-x, but blue when calling counsel-find-file. Is there a simple way of changing ivy-current-match depending on the function ...