I've been using Tramp mode on my Emacs to edit files remotely. I'm also using ido mode. When I add a new file in the same directory of a file I opened using Tramp, I couldn't get Tramp to find the new file(with C-x C-f). Is there a way to refresh Tramp?
2 Answers
Your question is about ido-mode used with tramp. To refresh ido auto-complete while in the process of finding a file, you can press C-l, to execute: ido-reread-directory.
3 Comments
reza.safiyat
Worked for me once, but not any more. No Idea why. Says:
Symbol's value as variable is void: ido-cur-item. Any solutions?Shlomi
@reza.safiyat that is because you need to call it within the context of opening a file or a directory. To try this, using
ido-find-file go to a directory you want to refresh and hit "C-l" (within the ido buffer). It will refresh the directory you are currently looking at.Felipe
Funny: for me, I just went to directory I would like to refresh with
C-f then I just press C-l and it have refreshed.