Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ivy]

The tag has no usage guidance.

2
votes
1answer
58 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 ...
0
votes
0answers
9 views

counsel-org-tag on region

How can I use counsel-org-tag, or some similar command that uses counsel, to apply/remove tags to all headlines in the region? I would like the tags to be changed only at the highest selected ...
1
vote
2answers
71 views

Disable ivy for find-file

Is it possible to disable ivy-mode for file prompts? In a past I used find-file to copy current file name or path to file. dired-do-rename also is broken by Ivy: no default completion for current ...
3
votes
0answers
17 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 ...
0
votes
0answers
22 views

Faces not being correctly colored in the `swiper' minibuffer

The following screenshot shows how some defface keyword faces are being appropriately colored in the swiper minibuffer, and some are not. Is there a way to fix this behavior? Or is this a bug in Ivy? ...
1
vote
1answer
38 views

How to get sorted output from counsel-git-grep with ivy?

When using git-grep, the output isn't sorted alphabetically which makes navigating the results more tedious then it should be. Is there a way to sort the output? I checked git-grep and it seems ...
0
votes
0answers
33 views

Complete from buffer's tags in org-agenda's org-tags-view (“Match a TAGS/PROP/TODO query”)

org-agenda's tag matching command, org-tags-view shows an agenda of TODO items filtered by tag. It gives me an ivy completion list because I have ivy installed, which sets completing-read-function. ...
0
votes
0answers
35 views

My ivy/swiper puts one character on the new line. See screenshot. Any suggestions to fix this?

My ivy/swiper puts one character on the new line. See screenshot. Any suggestions to fix this?
0
votes
1answer
63 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
30 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 ...
1
vote
2answers
91 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 ...
0
votes
1answer
68 views

projectile-find-file and ivy - create file with subdirectories

I'm using ivy and projectile. When I search for some file with projectile-find-file, and the file does not exist, I would it to be created. If it is inside directories that also do not exist, ask if ...
0
votes
1answer
32 views

Unicode character folding with Swiper/Ivy

Suppose I have bár written in a file, I would like to look for bar in swiper and find the occurrences of bár alongside the expected occurrences of bar, how I can do this? This would also apply to ...
0
votes
1answer
126 views

Create a new file in a new folder

In Ivy, it can not to create directly a new file in a new folder (as type C-x C-f, then write a file path /current_path/new_fold/new_file). If there is a better way to do it, how to use the key ...
0
votes
1answer
27 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 (...
1
vote
2answers
100 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
31 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-...
1
vote
1answer
94 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 ...
2
votes
1answer
109 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.
0
votes
0answers
39 views

counsel-file-jump freezes when run in the home directory

I like to fuzzy find my files like fzf does in vim. counsel-file-jump seemed like a good replacement, however it freezes Emacs for a couple of minutes if it is run in the home directory. Isn't this ...
4
votes
2answers
269 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
1answer
252 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 ...
1
vote
2answers
226 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?
0
votes
1answer
61 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
45 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. ...
1
vote
1answer
75 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), ...
0
votes
0answers
43 views

ivy-mode conflicts with gtags-find-tag command

when I have ivy mode on, gtags-find-tag hangs, takes a long time to finish and give irrelevant results. Any ideas why? If I turn off ivy-mode, gtags-find-tag works fine.
2
votes
1answer
138 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
2answers
155 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 ...
1
vote
1answer
149 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
67 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-...
0
votes
1answer
206 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 ...
4
votes
0answers
302 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 '...
2
votes
1answer
110 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' ...
1
vote
0answers
63 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
64 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 ...
4
votes
3answers
371 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 ...
7
votes
2answers
1k 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 ...
3
votes
1answer
167 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 ...
0
votes
0answers
54 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?
0
votes
0answers
172 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 ...
0
votes
1answer
225 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
2answers
71 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'...
4
votes
2answers
204 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.
1
vote
1answer
114 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 ...
0
votes
1answer
56 views

HTML-mode insert tag without attribute(s)

In HTML-mode C-c C-o is bound to sgml-tag which inserts a tag of choice and one or more attributes. My question is this: How can I insert a tag with sgml-tag and skip insertion of an attribute. For ...
2
votes
1answer
133 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
122 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
1answer
589 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 ...
5
votes
0answers
130 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-...