Skip to main content

Questions tagged [counsel]

The tag has no usage guidance.

21 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
594 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-...
sivakov512's user avatar
5 votes
0 answers
317 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 ...
SFbay007's user avatar
  • 584
3 votes
1 answer
685 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 ...
Tina Russell's user avatar
2 votes
0 answers
67 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 ...
Oin's user avatar
  • 177
2 votes
0 answers
78 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 ...
stlk's user avatar
  • 81
1 vote
0 answers
41 views

How can I keep the default `yank-pop` behaviour after installing swiper?

Swiper replaces the behaviour of the M-y command (yank-pop) with its own implementation, which shows the contents of the kill ring. I like the default behaviour of M-y prior to installing this package ...
vise's user avatar
  • 121
1 vote
0 answers
310 views

How to exclude certain directories/files from counsel-git-grep search?

Would it be possible to exclude certain directories/files from counsel-git-grep search, such as .gitignore? Here I don't want to see matches in .gitignore file: I have tried adding ':(exclude)....
alper's user avatar
  • 1,400
1 vote
0 answers
21 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 ...
Toothrot's user avatar
  • 3,284
1 vote
0 answers
407 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?
Alessandro Martini's user avatar
0 votes
0 answers
15 views

counsel-M-x search for command names optionally beginning with my:

Goal Use counsel-M-x to browse commands that begin with a particular character, except that they may be optionally prefixed by my: Example counsel-M-x >> ^org matches commands beginning with org ...
user615536's user avatar
0 votes
0 answers
10 views

Make counsel-evil-marks select the candidate immediately, go to the mark in one click

I am using counsel-evil-marks in doom-emacs on Mac OS. When the mini buffer pops up, I still need to select the candidate and press enter. How can I assign a key, so I switch immediately to the marked ...
Rareform's user avatar
  • 219
0 votes
0 answers
30 views

counsel-org-goto to default to current heading

I often use counsel-org-goto to move around org documents, and also within other functions I write to perform an operation within a heading. It would be great if there was a way to default the value ...
oneself's user avatar
  • 341
0 votes
1 answer
47 views

Ivy-dispatching-done (M-o) action list is not showing all options

I use counsel-projectile-switch-project to pop up a list of projects and M-o to bring up the action list, but the action list is like this. and there's no way to scroll to get the top options like &...
Sean's user avatar
  • 11
0 votes
0 answers
39 views

counsel-git-grep: why does it ignore .gitignore paths?

Currently there is an issue (or else I can't figure it out) with counsel-git-grep-function: why does this function not ignore the files in .gitignore when searching? It would be a useful function if ...
Adelita's user avatar
  • 255
0 votes
0 answers
36 views

Understand edebug stack tracing

so for some unknown reason, whenever I edebug-defun to counsel-jq, I get the following error edebug-syntax-error: Invalid read syntax: "Expected one of", symbolp, lambda-expr stack trace ...
A-nak Wannapaschaiyong's user avatar
0 votes
0 answers
400 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 "...
a_subscriber's user avatar
  • 4,174
0 votes
0 answers
194 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 ...
Yogeshwer Sharma's user avatar
0 votes
0 answers
104 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). ...
scaramouche's user avatar
  • 1,754
0 votes
0 answers
104 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 ...
scaramouche's user avatar
  • 1,754
0 votes
0 answers
169 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" ...
american-ninja-warrior's user avatar
0 votes
0 answers
288 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 ...
american-ninja-warrior's user avatar