2

I like vim's tabcomplete feature - filename completion for its dropdown choices. Like this vi popdown,

enter image description here

I use hippie-expand with functions, try-complete-file-name-partially try-complete-file-name. It shows one option at a time not all the options with a drop-down. It consumes lot of time, calling hippie-expand for each and every wrong completion.

Is there any elisp library that has filepath autocompletion with dropdowns?

wasamasa
  • 21,803
  • 1
  • 65
  • 97
Madhavan
  • 1,957
  • 12
  • 28
  • possible duplicate of [filename completion using company-mode](http://emacs.stackexchange.com/questions/3654/filename-completion-using-company-mode) – wasamasa Aug 10 '15 at 06:10

2 Answers2

4

company-mode has a files backend:

wasamasa
  • 21,803
  • 1
  • 65
  • 97
2

auto-complete also has this feature, via its built-in (ac-source-filename) backend. In addition, for c/c++, there is auto-complete-c-headers, see https://github.com/mooz/auto-complete-c-headers. Here is a screenshot of the latter: drop-down-for-c-headers

InHarmsWay
  • 1,309
  • 7
  • 8