* ido.el - changing root of prompt
@ 2003-02-13 13:19 Barney Dalton
0 siblings, 0 replies; only message in thread
From: Barney Dalton @ 2003-02-13 13:19 UTC (permalink / raw)
I use ido-find-file all the time in place of the standard find file. In
the case where it can't locate a file for me I'd like to be able to give
it some help. Due to the nature of my directory structures this is often
a case of only changing the root of the directory. i.e. If I'm editing:
'f:/source/b/c/x.cpp' I need to find the matching header file which may
be in 'f:headers/b/c/x.h'. Another example is that I need to see the
same file but on a different drive. i.e. I want to switch from
'f:/source/b/c/x.cpp' to 'g:/source/b/c/x.cpp'.
At the moment I can do this by going C-xC-f and then C-e to edit
(replace root part of dir) and press RET to get back to the find-file
prompt. I have a function that does the search and replace for me.
Ideally I'd want to be able to perform this substitution without having
to go via the edit buffer but the ido minibuffer is read only so I can't
edit it from my function. If I try and call ido-edit-input from within a
defun then the rest of the function never gets called. I guess this is
something to do with the exit-minibuffer function that ido-edit-input
calls - I don't know enough lisp to understand what this does though.
So to summarise: How do write a function that can change the directory
that ido-find-file is currnently working from. The function needs to be
callable via a key-binding from the ido minibuffer.
thanks
Barney
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-13 13:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-13 13:19 ido.el - changing root of prompt Barney Dalton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).