Stop tramp from opening remote directories when using ido-mode
Asked Answered
L

1

2

I have a problem with ido-mode. As I cycle through work directories (using M-n), one of the directories is inevitably on a remote server, which makes tramp start authenticating.

I know I can edit the ido-work-directory-list-ignore-regexps variable, but maybe I'm misunderstanding that, or how it works with tramp. If the directory is [email protected]:/home/public/ what regexp should I use?

Lyudmila answered 1/5, 2012 at 12:33 Comment(2)
I asked an unanswered related question: #9665735Caras
(which has now been answered)Hilary
J
2

I would suggest trying this:

(require 'ido)
(add-to-list 'ido-work-directory-list-ignore-regexps tramp-file-name-regexp)
Jeavons answered 1/5, 2012 at 13:1 Comment(1)
It seems this works but I didn't realize it at the time because it had clashed with another solution I'd tried to use. I think I also had t use ido-wash-history after using this.Lyudmila

© 2022 - 2024 — McMap. All rights reserved.