Skip to main content

Questions tagged [ido]

Ido provides a very convenient way to find files and switch buffers in Emacs.

Filter by
Sorted by
Tagged with
43 votes
1 answer
11k views

How should I change my workflow when moving from IDO to Helm

As an Emacs newbie, I found IDO and loved it since it made searching for files so much quicker. After spending some time on this site, I've read more and more about Helm and I'm planning on making the ...
Ryan's user avatar
  • 4,079
16 votes
4 answers
2k views

How to tell Ido to get out of the way when I can already just paste the file name?

I'm trying to make myself use Ido mode. Some times it's nice, but other times it is extremely stupid. Here's my greatest disappointment. I read some log with full file names, then I copy one name, ...
wvxvw's user avatar
  • 11.5k
14 votes
5 answers
4k views

Is there a command `describe-command', similar to command `describe-function'?

I use C-h f heavily, but this is all functions in Emacs. I'm often only interested in interactive functions, i.e. commands. Is there an equivalent for commands? Ideally I'd like ido completion too.
Wilfred Hughes's user avatar
14 votes
5 answers
619 views

Fuzzy completion when inserting Unicode characters

I just discovered C-x 8 RET as a way to insert Unicode characters by Unicode name or hex code. I have not (yet?) memorised all Unicode character names, so I don't always find the right character. ...
user avatar
14 votes
1 answer
1k views

When switching buffers, prevent emacs from automatically switching frame

When I switch buffers, emacs will switch to an existing frame if the buffer is already opened there. I found how to prevent that when switching with ido using : (setq ido-default-buffer-method '...
MonsieurBanana's user avatar
13 votes
6 answers
3k views

Recently opened files in ido-mode

I use ido-mode, but one thing I hate about it is that after C-x C-f I cannot use up/down keys to cycle through recently opened files, as it used to be for example with iswitchb. How can I set ido to ...
WeSenseASoulInSearchOfAnswers's user avatar
7 votes
1 answer
2k views

Icomplete and Ido: Why are both in the codebase?

My question is pretty simple, and that is why Ido and Icomplete are both available in emacs. I find it very strange that the two modes exist together, seeing that they both do what is essentially the ...
SpecialBomb's user avatar
7 votes
1 answer
227 views

How to replicate the "~/"-to-home & "//"-to-root behaviour in ido-find-file but for a custom directory?

When calling ido-find-file it's possible to type ~/ to replace the current working directory with your home directory automatically: Find file: /etc/{...} # after typing ~/ becomes: Find file: ~/{...}...
undostres's user avatar
  • 1,843
7 votes
1 answer
964 views

How do I bind keys in ido?

I'm trying Projectile + ido + flx-ido (just for Projectile, ido-mode disabled otherwise). But: I don't like using right and left to switch between items. I want to change them into up and down, but ...
kuanyui's user avatar
  • 1,042
7 votes
3 answers
2k views

When using C-x C-f turn off the suggestions

When i do C-x C-f to create a new file in the directory A, if emacs finds another file in another directory (say B) with exact same name, in the mini-buffer it changes the path to the other existing ...
user avatar
7 votes
2 answers
1k views

Using ido or helm to auto complete email addresses in mu4e

Is there a way to auto-complete email addresses in the mu4e compose window using Ido or Helm rather than the standard *Completions* buffer?
scaramouche's user avatar
  • 1,796
6 votes
4 answers
874 views

How to disable IDO in ‘dired-create-directory’

I have this setup: (setq ido-everywhere t) (ido-mode 1) Well, of course there is more, but I believe that this is relevant portion. Some time ago I wanted to have IDO for dired-do-copy and dired-do-...
Mark Karpov's user avatar
  • 4,993
6 votes
2 answers
2k views

Edit org-mode tags using ido or ivy completion

I'd like to try a different method of specifying tags than the built-in single character codes. How can I tag headings using ido or ivy completion? I think I would like at least two commands: ...
Croad Langshan's user avatar
5 votes
2 answers
450 views

Why ido mode automatically change current folder when create new file?

I want to create file credenentials.txt in folder d:/dev/GoogleDrive/_IPTV/Playlists/OttClub/ M-x C-x C-f Press "c" result: press "cr" result: As you can see Emacs change folder to d:/personal I ...
a_subscriber's user avatar
  • 4,224
5 votes
2 answers
658 views

Can helm `find-file` in the parents directory automatically?

With ido-find-file, if the file I am looking is not in current directory but in the parents directory, it can automatically find it as candidate. I am not sure if helm can do the same thing?
Enze Chi's user avatar
  • 1,470
5 votes
1 answer
272 views

M-x sometimes doesn't show me the right options (smex?)

This is most likely a problem with a plugin (caching options, using LRU, etc?), but I'm not good enough to really troubleshoot it. My complete dotfiles (not very extensive) can be found here I use ...
Trevoke's user avatar
  • 2,457
4 votes
1 answer
818 views

How to create a new buffer with ivy-switch-buffer that shares a substring with an existing buffer?

Suppose I have a file opened called "analysis-evaluation.tex" and I'd like to create a new buffer called "eval". When using Ido, I would press C-j to create a new buffer rather than switching to an ...
gnuvince's user avatar
  • 261
4 votes
2 answers
367 views

Remove *.bak files from ido-mode minibuffer

I am using ido-mode to select files from Emacs. This works well for most cases, but for some cases I would like to modify the files that are shown in the completion buffer with ido-find-file. In ...
Håkon Hægland's user avatar
4 votes
2 answers
1k views

Is it problematic to use simultaneously Helm and Ido-mode? What are the consequences?

I am new to Emacs. When I started using it 2 months ago, a co-worker suggested using helm which definitely improved my use of Emacs. In addition, I have been slowly reading the book Mastering Emacs, ...
Pedro Delfino's user avatar
4 votes
1 answer
763 views

How do I use TAB instead of Enter for completion in ido-mode?

When I do C-x C-f .emacs.d/i TAB Emacs displays a new buffer which presents "Possible completions", which are in my case auto-save-list/, history and init.el. I would like to have it complete to just ....
WeSenseASoulInSearchOfAnswers's user avatar
4 votes
3 answers
402 views

How can I quickly delete the trailing pathname component in ido-mode?

I use ido-mode for finding files and directories, which is generally very efficient in terms of keystrokes. The one annoyance I've found is when deleting the trailing pathname component when using ...
user avatar
4 votes
1 answer
201 views

My imenu-entries get double listed. How could I correct that?

With the PHP-mode that's shipped with Emacs, suppose I have the following PHP function: public function foo() { print "bar"; } Imenu will list the foo in all methods and public methods. Other ...
ReneFroger's user avatar
  • 3,702
4 votes
1 answer
744 views

How do I make ido switch to the buffer suggested by the tab-completion candidate?

I use ido for switching buffers, and it is awesome. I also have (flx-ido mode t) in my init file. I have run into a problem that causes me to switch to a buffer different from what I was expecting. I ...
Scott Weldon's user avatar
  • 2,755
4 votes
1 answer
309 views

How do I maintain a history of ido-read-filenames?

I've written a helper function for mu4e to run checkpatch against a message. However I want to be easily able to switch between previous calls to checkpatch and this seems difficult with ido-read-file-...
stsquad's user avatar
  • 4,681
4 votes
2 answers
530 views

How show corresponding key binding of command during M-x completion?

Linux Mint 20 Emacs 27.2 ido-mode When I press M-x then show (ido-mode) the list of functions. Nice. But sometime it is not enough. I need to know what is keybinding for this functions. Is it ...
a_subscriber's user avatar
  • 4,224
3 votes
4 answers
1k views

How can I skip Helm/IDO when I want to open Dired?

When I call Dired with M-x Dired, I got the IDO window with the file structure and when I press Enter, he goes to Dired. When I disable IDO in Emacs, and I do M-x Dired again, I got the Helm-dired-...
ReneFroger's user avatar
  • 3,702
3 votes
2 answers
875 views

how to switch to a new buffer with ido without needing to confirm?

Q: how do I switch to a new buffer with ido without needing to confirm? I open up a lot of temporary buffers to do scratchpad work. When ido-switch-buffer can't find a match for the buffer name I'm ...
Dan's user avatar
  • 33.4k
3 votes
1 answer
2k views

What does 'ido-everywhere' actually do?

When reading about ido, we are instructed to add this to .emacs: (ido-everywhere t) The doc says that it Toggle use of Ido for all buffer/file reading. What does it mean? Everything seems to work ...
Gradient's user avatar
  • 231
3 votes
1 answer
424 views

distinguish ido/ivy's virtual-buffers with equal names using directory?

I really like the ido-use-virtual-buffers/ivy-use-virtual-buffers features, but unfortunately if you have five files named style.css in different projects, it is less useful. With already-opened ...
unhammer's user avatar
  • 1,231
3 votes
2 answers
193 views

Can I use ido-mode for org-clock-select-task?

Is there a way to use ido to select tasks from the org-clock-select-task list? Having to read through the list to find the right task and then look at the number makes me lose my flow :)
unhammer's user avatar
  • 1,231
3 votes
1 answer
369 views

Tell Dired to ignore file-at-point when invoking `ido-find-file` (`C-x C-f` in Ido mode)

I have discovered that a recent update to some of my emacs packages have caused C-x C-f while on a dired file to perform some operation on the entire file before prompting me for other files/...
Lee H's user avatar
  • 2,737
3 votes
1 answer
1k views

Emacs - suppress Completion Buffer

In Emacs, I don't want the *Completions* buffer to pop up, even when I press tab to autocomplete in the minibuffer and there are multiple results. It's distracting and jarring. How can I do this? ...
J. Doe's user avatar
  • 31
3 votes
1 answer
2k views

How to enable ido-mode forever?

I want to have it enabled every time I open emacs and not type M-x ido-mode each time I open it.
n00b's user avatar
  • 171
3 votes
1 answer
429 views

Completing read a directory or an element from a list

I'm making some functions to interact with Mercurial. Many Mercurial commands take a repository as an argument, and that argument can be specified either by a path to the root of the repository or by ...
Daniel Matz's user avatar
3 votes
1 answer
268 views

ido flex matching doesn't seem to work, or works partially

I'm running emacs 24.5.1, with the built in ido-mode. I enable (setq ido-mode-flex-matching t) and (ido-mode 1)in my startup file, and ido matching (at least the prefix and substring types of matching)...
Kevin's user avatar
  • 1,328
3 votes
1 answer
226 views

find-file using ido as case sensitive

I was using regular find-file, where when I type D and press tab it will consider case sensitive file names, such as Driver.py and ignore others such as driver. I have enabled: (ido-mode 1). I ...
alper's user avatar
  • 1,460
3 votes
1 answer
201 views

is there some sort of namespace(or filter) for files and buffers per frame available?

Using emacs in daemon mode is fine, because you only pay startup time once. But after a while the buffer and file list is getting filled. So is there a way to see only files which belong to the actual ...
jue's user avatar
  • 4,686
3 votes
2 answers
1k views

Disable ido mode for write file

I was not the only one who thought ido is very inconvenient when trying to write a new file. The emacs wiki has a section dedicated to disabling ido for write-file: Disable ido mode for particular ...
Snelephant's user avatar
3 votes
2 answers
223 views

How to bind a key inside the completing-read prompt?

In one of my packages, I use a loop with completing-read to query the user for a list of words. Inside the prompt, I'd like to bind DEL to a different command. How can I achieve that? The solution ...
Malabarba's user avatar
  • 23.3k
3 votes
1 answer
396 views

How to sort files by type in ido

I've seen a tip several times that ido-file-extensions-order can be used to easily order files. Setup is straightforward (code at bottom), but these filetypes are only given preference when choosing ...
user2699's user avatar
  • 2,291
3 votes
0 answers
107 views

ido, smex , candidates: show directories with different color

emacs 26.1 , windows 10, ido mode, smex package M-x map And here result: smex show all candidates content text map Nice. It's work fine. But second candidates (mappings) is a directory. Rest of ...
a_subscriber's user avatar
  • 4,224
2 votes
1 answer
363 views

Have `projectile-find-file` fall back to `ido-find-file` outside of projects

How can I bind C-x C-f to invoke projectile-find-file when inside a project, and ido-find-file when not in a project?
Matthew Piziak's user avatar
2 votes
1 answer
658 views

Setting `ido-ignore-buffers' doesn't cause buffers to be ignored, where's the error?

I set value of `ido-ignore-buffers' this way: (defvar uki-ido-ignored-buffer-names '("*grep*" "*Messages*")) (defun uki-ido-ignore-most-star-buffers (buffer) (member (buffer-name) uki-ido-...
Łukasz Gruner's user avatar
2 votes
1 answer
230 views

ido-find-file: lists of results in wrong order

When using C-x C-f (ido-find-file) to open files use I can use M-s to enable fuzzy matching. If I type C-x C-f then M-s and then enter the the fuzzy search string, things work as they should. ...
snowape's user avatar
  • 161
2 votes
1 answer
356 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 ...
purple_arrows's user avatar
2 votes
2 answers
330 views

How to put buffers named with an asterisk at the end of ido's selection list?

with (ido-switch-buffer), when I type stuff, "*magit: stuff*" comes before Stuff.txt. the sorting seems to be done by recency, rather than the buffer name. more generally, a custom sort function ...
sam boosalis's user avatar
2 votes
2 answers
1k views

How to enable ido-completing-read correctly

So there is ido-completing-read that seems perfect to assign to completing-read-function. There is no customization interface though. How is the user supposed to enable ido-completing-read for all ...
Gracjan Polak's user avatar
2 votes
1 answer
265 views

Why does ido-find-file still show . when ido-ignore-directories seems to exclude it?

I have my ido-ignore-directories set to the standard value: ("\\`CVS/" "\\`\\.\\./" "\\`\\./") The third regexp, "\`\./" should ignore the current directory, as near as I can tell. However, it doesn'...
Trebor Rude's user avatar
2 votes
2 answers
210 views

Open recent directories like Ido opens files

When I want to open a recent file, I use ido-find-find (C-x C-f) or ido-switch-buffer (C-x b) and type a few characters and Ido automatically finds the right file among the recent files I have visited....
Gradient's user avatar
  • 231
2 votes
1 answer
243 views

How to delete backward word in find-file using ido?

I was using regular find-file, and have a current setup to delete a word, which was working inside find-file. (defun backward-delete-word (arg) "Delete characters backward until encountering the ...
alper's user avatar
  • 1,460