使用ido-mode时停止流氓打开远程目录 [英] Stop tramp from opening remote directories when using ido-mode

查看:119
本文介绍了使用ido-mode时停止流氓打开远程目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对ido模式有问题.当我循环浏览工作目录(使用M-n)时,其中一个目录不可避免地位于远程服务器上,这使流浪汉开始进行身份验证.

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.

我知道我可以编辑ido-work-directory-list-ignore-regexps变量,但是可能我误会了它,或者它如何与流浪汉一起工作.如果目录为someguy@example.com:/home/public/我应该使用什么正则表达式?

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 someguy@example.com:/home/public/ what regexp should I use?

推荐答案

我建议尝试以下方法:

(require 'ido)
(add-to-list 'ido-work-directory-list-ignore-regexps tramp-file-name-regexp)

这篇关于使用ido-mode时停止流氓打开远程目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆