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
1answer
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 ...
14
votes
5answers
2k 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.
14
votes
4answers
1k 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, ...
13
votes
1answer
993 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 '...
12
votes
6answers
2k 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 ...
12
votes
4answers
441 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. ...
7
votes
1answer
171 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: ~/{...}...
7
votes
1answer
792 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 ...
7
votes
2answers
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?
6
votes
3answers
721 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 ...
5
votes
3answers
561 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-...
5
votes
2answers
488 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?
5
votes
1answer
209 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 ...
4
votes
2answers
281 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 ...
4
votes
2answers
1k 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: ...
4
votes
1answer
530 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 ....
4
votes
3answers
233 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 ...
4
votes
1answer
124 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 ...
4
votes
1answer
555 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 ...
4
votes
1answer
240 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-...
3
votes
4answers
866 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-...
3
votes
1answer
505 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 ...
3
votes
2answers
146 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 :)
3
votes
1answer
165 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 ...
3
votes
1answer
206 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 ...
3
votes
1answer
330 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 ...
3
votes
1answer
243 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 ...
3
votes
1answer
249 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/...
3
votes
1answer
213 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)...
3
votes
1answer
113 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 ...
3
votes
2answers
547 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 ...
3
votes
2answers
115 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 ...
3
votes
0answers
69 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 ...
2
votes
2answers
615 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 ...
2
votes
1answer
294 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?
2
votes
1answer
500 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-...
2
votes
1answer
165 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. ...
2
votes
1answer
585 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 ...
2
votes
1answer
576 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? ...
2
votes
1answer
1k 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.
2
votes
2answers
175 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 ...
2
votes
2answers
916 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 ...
2
votes
1answer
197 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'...
2
votes
1answer
40 views

`+` in dired-mode with icicles and ido enabled raises an error

I just installed icicles. I use ido-mode for the minibuffer. In a dired buffer, when I press + (bound to dired-create-directory), here is what happens: the first time, the error icicle-restore-...
2
votes
1answer
133 views

Override ido-completion-map to change window target

Sometimes I open ido-find-file or ido-switch-buffer but when I find the file I want to open, I realize I want to open it in other-window. I have key bindings for ido-find-file-other-window and others, ...
2
votes
1answer
77 views

`Ido-completing-read` word by word in the minibuffer

I'd like to use something like ido-completing-read in the minibuffer, but on a per-word basis. Here is an example. If I provide a list ("tag:important " "tag:work" "subject" "from"), I'd like to be ...
2
votes
1answer
249 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 ...
2
votes
1answer
357 views

Prevent Tramp from asking for a password for passwordless sudo

Opening /sudo::/etc/hosts with tramp prompts for a password even though I have passwordless sudo. I use ido. $ sudo grep NOPASSWD /etc/sudoers %wheel ALL=(ALL) NOPASSWD: ALL Is there any way to fix ...
2
votes
0answers
70 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
2answers
309 views

Using ido completion for selecting a repository for magit

I like to use ido for completing file paths and helm for all other things. I have tried setting magit-completing-read-function to magit-ido-completing-read. This doesn't change magit-status behaviour ...