Questions tagged [ido]
Ido provides a very convenient way to find files and switch buffers in Emacs.
107 questions
1
vote
2
answers
417
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 ...
0
votes
1
answer
114
views
different settings for ido-find-file and ido-switch-buffer
I like arbitrary substring matching for buffer completion but I want to disable it when completing file names or directories. The idea is to set ido-enable-prefix to t only when ido-find-file is ...
1
vote
3
answers
1k
views
Fuzzy search for directory when you don't know the full directory name
Say I want to find a directory like:
foo/bar/bazz/bar/directory_name_looking_for/stuff.xml
And I don't know the intermediate directory paths, or the full directory name, but remember that the ...
1
vote
0
answers
51
views
Sort ido results by recentness even when filtered
I have ido-use-virtual-buffers set to t, so when I M-x ido-switch-buffer, I initially see a list of files with the most recent files at the top.
However, as soon as I type anything to filter the list ...
0
votes
1
answer
60
views
Failed to load ido.el
I have downloaded file ido.el, but can't load it. When I (require 'ido) the following is displayed:
Debugger entered--Lisp error: (file-error "Cannot open load file" "No such file or directory" "seq"...
0
votes
1
answer
512
views
How can I make icomplete/ido behave like iswitchb?
Emacs has recently (between 24.0 and 25 ish?) removed iswitchb in favor of some combination of ido and icomplete mode, which I've seen claims are 99% compatible; which I can live with, I don't have ...
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 ...
1
vote
1
answer
504
views
Configuring the number of buffers saved by ido, using ido-use-virtual-buffers?
I really love the ability to quickly navigate to files opened in old editing sessions that desktop provides. However, there are a few things I don't like about it so I'd like to stop using it if ...
1
vote
1
answer
341
views
How to open new buffer instead of current via elisp?
I want to bind key when in ido-switch-buffer to open ibuffer instead, but I do not understand how to make that with elisp. Here's my config:
(defun my-open-ibuffer ()
"Open ibuffer from ido-switch-...
1
vote
1
answer
119
views
Why some packages included with Emacs don't have their documentation in the main manual?
I wanted to read the Ido documentation offline from Emacs.
I read in the NEWS file of Emacs 24.5 that since the 24.4 version an "Ido user manual is now included" (line 608). But it was not possible ...
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.
1
vote
1
answer
386
views
ido-read-directory-name does not show matches in minibuffer
I'm trying to read a directory path using ido-read-directory-nameto prompt in the minibuffer. I have (ido-everywhere t)and (ido-enable-flex-matching t) enabled, and I'm running emacs 24.5.1.
I expect ...
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)...
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 :)
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 ...
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 ...
2
votes
1
answer
54
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-...
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 ...
1
vote
0
answers
50
views
Minimum length for ido-completing-read
I'm trying to write an ido-completing-read-powered backend for projectile-find-tag.
However, for really big TAG files, this is ridiculously slow when the user starts typing because there are so many ...
1
vote
0
answers
36
views
ido-find-file: directory names with hyphens are listed first
When using ido-find-file (C-x C-f) to navigate through directories, directories that have a hyphen in the name are listed before shorter matches with no hyphen. For example, if directories named "dir1"...
1
vote
0
answers
25
views
Feature query to auto-complete mode
Basically, I am looking for an autocomplete-mode that suggests words as ido-mode does on file. Meaning,
if I've typed "em" and the autocomplete suggests two words "Emacs" and "Emacsclient" , it should ...
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 ...
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-...
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 ...
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 ...
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'...
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-...
0
votes
0
answers
194
views
Completing from filesystem search in ido-find-file
By default, when a pattern that has been typed matches no results, after a short pause in typing ido-find-file goes on to try to locate a matching file in one of recently visited directories (I ...
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?
0
votes
2
answers
367
views
Global keybindings don't work in 'smex'
I've installed smex through MELPA as a replacement for the default M-x (execute-extended-command). The issue is that in smex, certain global keybindings don't work. For instance, C-h should work as ...
2
votes
1
answer
602
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 ...
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?
2
votes
1
answer
198
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, ...
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: ~/{...}...
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 ...
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-...
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, ...
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/...
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?
0
votes
3
answers
403
views
ido mode not previewing buffers names on switch buffer C-x b
I just started using ido-mode and can't seem to get it to give a buffer list on switch-buffer. It works fine for visit file (C-x C-f) and kill buffer (C-x k), but not on C-x b, which is a much more ...
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 ...
0
votes
1
answer
699
views
How to enable ido-ubiquitous globally
I want to have ido-ubiquitous available in every buffer at all times, but I can't find what I have to add to my .emacs to do it. Could someone please point me in the right direction?
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 ...
0
votes
1
answer
547
views
selecting files with regular expression using ido-find-file
With regular find-file it's possible to supply *.[ch] to open all .c or .h files in a directory. ido-find-file doesn't seem to support this behavior.
I know I can press C-f while ido-find-file is ...
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 '...
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-...
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 ...
1
vote
1
answer
311
views
Invoking "Icicles"
I'm trying to get started using Icicles, but I'm wondering if ido is interfering with functionality. So far:
I installed Icicles from the repo and added
(require 'icicles)
to init.el.
I used M-x ...
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.
...
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 ....