Questions tagged [counsel]
The counsel tag has no usage guidance.
12
questions with no upvoted or accepted answers
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-...
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 ...
2
votes
1answer
249 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 ...
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 ...
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 ...
1
vote
0answers
147 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 ...
0
votes
0answers
54 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
88 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
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 ...
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 ...