Questions tagged [counsel]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
252 views

Equivalent to `ido-find-file` functionality for ivy/counsel?

I really like how ido-find-file, if it can’t find a file matching your string (and you’ve let it idle for like a second), will search your whole home directory for files matching that string, and then ...
1
vote
0answers
12 views

Accessing login-shell variables (from counsel-find-file)

With #'counsel-find-file, I can type $ to access environment variables, but it appears these belong to a special emacs environment and are not login-shell-wide. Can I access the latter kind of ...
0
votes
0answers
55 views

Use counsel/ivy to insert org-links?

I'm trying to use counsel/ivy to insert org links, but I haven't found a way to do this. I just want something to replace org-insert-link with a counsel interface. Can anyone help?
0
votes
0answers
90 views

Make counsel-M-x look like Smex

I would like counsel-M-x (part of ivy) to display candidate commands horizontally, as Smex does. I followed the instructions here and created the following code: (defun my-ivy-format-function (cands)...
0
votes
2answers
57 views

How can I search through registers via counsel?

I need something like helm-register which lists all the registers and it can be searched through.
1
vote
1answer
56 views

counsel-ag shows no output

I try to use counsel-ag to grep through all files in a directory for a string. Basically, I thought this is what it was made for. I have ag 2.2.0 installed via macports on OS X 10.10.5 and it works ...
0
votes
1answer
110 views

Why can't Emacs find counsel and swiper, even though they (and Ivy) seem installed, and Ivy working?

Why can't Emacs find counsel and swiper, even though they (as well as ivy) seem installed, and moreover Ivy mode is enabled, and seems to be working? This is what I get when I try the following: (...
2
votes
0answers
27 views

How do I cycle through file locations on counsel results?

I'm trying to look for all the occurrences of a word in my project and I'm using counsel for this. I get the list of occurrences and their locations in the minibuffer, but I'd like to cycle through ...
0
votes
0answers
20 views

How to combine counsel and template

In the counsel package, M-x counsel-find-file doesn't allow the template package to auto-insert a template. My guess is that counsel-find-file is replacing find-file, which is what template is ...
0
votes
0answers
46 views

counsel-projectile-find-file sort only sorts with no default project

Or at least that's what it looks like! It's a bit hard for me to isolate, but here's my particular setup: My goal is to use counsel-projectile-find-file, defaulting directory when I am not in a ...
2
votes
0answers
66 views

migrated from emacs 25 to 26.1: cannot force find-file/counsel-projectile-find-file to always open buffer in current window

Recently I migrated from emacs 25 to 26.1. Before I reached the window behaviour, where I could always open a file at the window at point. The most simple case to illustrate undesired behaviour: I ...
2
votes
1answer
123 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), ...
1
vote
2answers
300 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
96 views

temporary change magit-display-buffer-function

I have create this little helper to easy jump to my last used git projects, I using magit-status-internal to open a status buffer and I set magit-display-buffer-function so that the status is open in ...
1
vote
1answer
221 views

Can counsel functions use ido-flex style matching?

I've gotten so used to (setq ido-enable-flex-matching t) that I really notice its absence in various counsel-FOO functions. Is there a way to turn on flex matching for counsel? I haven’t been able ...
3
votes
1answer
337 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 ...
11
votes
1answer
1k views

Counsel M-x always shows “^”

I installed Counsel/Ivy/Swiper and so far everything works fine. But when I call counsel-M-x via key bind M-x an "^" char is always added. I have no clue why this is happening and how to get rid of it ...
0
votes
0answers
121 views

can I have swiper and counsel as “add-ons” and not the default binding

I like the powers that counsel/ivy/swiper gives me, specially for C-s and C-x C-f, but since installing it, I've started missing the vanilla emacs C-s and C-x C-f. It would be awesome if I can "call" ...
0
votes
0answers
124 views

how to make counsel-locate respect my cwd

Emacs has a concept of "current directory", shown by doing M-x pwd I can change to specific directory by doing M-x cd I recently installed swiper/counsel/ivy, to make searching easier. Since the ...
2
votes
1answer
179 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
454 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
149 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 ...
2
votes
1answer
258 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 ...
1
vote
1answer
232 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

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.
5
votes
1answer
561 views

Do not open dired for directories when using counsel-find-file

I've recently started using spacemacs with ivy, and what drives me nuts is that I instinctively press RET when a directory is selected to descend into it, which opens dired instead. Is there a way to ...
6
votes
0answers
206 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-...
7
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 ...