Questions tagged [counsel]

The tag has no usage guidance.

18 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
352 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-...
5
votes
0answers
129 views

Sort ripgrep results based on proximity to current buffer

I use counsel-projectile-rg to search within the project I work on. But there is my sub-project inside this big repo that most of my development is in. Is there a way to sort ripgrep results based on ...
3
votes
1answer
509 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
47 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
0answers
71 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
26 views

How to change counsel grep options once activated? (counsel-rg, counsel-git-grep … etc)

I would like to have the ability to change the flags passed to grep once counsel-rg has been stated. For example, sometimes I start counsel-rg and type in a string that needs a lot of escaping. In ...
1
vote
1answer
189 views

Searching a specific project sub-directory with projectile

I recently found Projectile and I am loving it. I really like the ivy/counsel integration as well. One thing is missing though: I am working on a huge project of hundreds of files. This is stored in ...
1
vote
0answers
15 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
185 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
12 views

How can disable TAB to execute selected line in `counsel-M-x`?

I am using counsel-M-x, it has little bit different behavior than smex, where TAB may execute the line. Is it possible to use TAB only for toggling where I just want to disable feature to execute the ...
0
votes
0answers
36 views

How can I change background and font color in `counsel-M-x`?

I have following theme configuration for the counsel-M-x, where due to background color some are unreadable. I couldn't find a way to change their colors, such as on [l]ist- , l is unreadable due to ...
0
votes
0answers
8 views

Can counsel-git-grep for string search keep the history of previous searches?

In general when I run M-x and do control-p or control-n or (M-p) (M-n) I can move around the previous inputs that I provided in the past. Is it possible to achieve it in counsel-git-grep ? I am using ...
0
votes
0answers
17 views

How to use counsel-git-grep for string search that has space?

I am using counsel-git-grep to grep for a string in the current Git repository. Lets assume I am searching string " hello world ". In order to obtain correct results I have to provide input ...
0
votes
0answers
45 views

Some keybinding stopped working this morning with error “Wrong type argument: arrayp, nil”

I used counsel-org-goto-all to jump between headings. This morning, the command (which I have bound to C-;) stopped working with this error: Wrong type argument: arrayp, nil. I have searched on the ...
0
votes
0answers
47 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). ...
0
votes
0answers
58 views

C-g doesn't work within Counsel's action menu (M-o)

Let's say I'm completing a file with counsel-find-file. I then press M-o to show the menu with available actions. If within that menu, I press C-g, I get the message "C-g is not bound". The ...
0
votes
0answers
137 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
193 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 ...