2

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 realize when I type D and press tab it also suggests driver and opens a complete suggestion window.

=> Is there any way to have ido to have same configuration as find-file, where case-sensitive is considered?

1

Set ido-case-fold to nil

  -- User Option: ido-case-fold
     If the value of this user option is non-‘nil’, searching of buffer
     and file names should ignore case.

update

Take care of:

  • do not mistake the behavior of several options and how they affect the matching results, like case-fold, prefix matching and flexible matching.

  • There can be a difference in how you set a variable which was defined using defcustom and defvar, sometimes it doesn't matter, but you can't assume that setq in a config file always will do the right thing.

  • There is section in the manual which explains how the results are sorted. It might be opinionated, but it is documented and you can manipulate it.

8
  • It does not also do complete word search like when I type en it returns everything contains e or n – alper May 2 '20 at 11:34
  • Check if it works properly with emacs -Q. Probably it's something getting in between, works as expected here. – Muihlinn May 2 '20 at 11:50
  • Yes it seems the default behavior like when I press e and press TAB TAB it shows every file that contains e, but I want only one that start with e, it is possible to have it in ido as well? – alper May 2 '20 at 11:52
  • Take a look at ido-enable-flex-matching, probably you'll want to set it to nil also take a look at prefix matching. C-h i m ido m matching – Muihlinn May 2 '20 at 11:59
  • 1
    I like ido-mode but not ido-find-file. I disable it in my init file: (define-key (cdr ido-minor-mode-map-entry) [remap find-file] nil) – Raoul Comninos Jan 28 at 6:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.