Say for instance I'm editing a config file and I want to type in a path. Is there a plugin for emacs that lets you complete a file path in that buffer? I've searched for this and there's like a bazillion completion plugins out there.
|
feedback
|
|
Try Hippie Expand, which as one of it's possibilities has ' Or, you could even write a custom wrapper that would only do the file name expansion. Something like:
| |||
|
feedback
|
|
I usually type Ctrl-X Ctrl-F like I would open a file, but instead of pressing RET I press Ctrl-A Ctrl-K Ctrl-G to copy the path and then paste it into the buffer I was editing with Ctrl-Y. I don't need this often enough, but if I really wanted a better solution, I would definitely use Trey Jackson's solution using | |||||||||
feedback
|
|
I recently discovered the works of Tomohiro Matsuyama (@m2ym) and I have been very impressed by the quality of its emacs packages. I have struggled with most auto-completion extensions and found out that they all have major shortcomings. Check out Tomo's auto-complete (http://cx4a.org/software/auto-complete/) it has been a breeze to install (I'm on Linux) and covers many auto-completion needs in a modern fashion. Of course, your request for in-buffer file names completion is perfectly covered. Finally, if you happen to do Ruby too, make sure not to miss his RSense extension; again, the best of its kind. | ||||
|
feedback
|
find-filefor instance). Do you want a similar behavior in a content buffer? – dmckee Nov 7 '09 at 16:18