replxx icon indicating copy to clipboard operation
replxx copied to clipboard

How can I achieve file path autocompletion?

Open MangaD opened this issue 4 years ago • 3 comments

With GNU Readline I can press tab to view the files and autocomplete. How can I achieve this with replxx?

MangaD avatar Feb 11 '21 13:02 MangaD

Hello.

With replxx you need to register user defined completion function and in this function you need to provide list of files explicitly.

You can check Huginn shell for example of implementation for such functionality (file name completer).

Also examples included in this (replxx) repository contain very simple examples on how to define a completer function.

AmokHuginnsson avatar Sep 09 '21 15:09 AmokHuginnsson

So, in other words, replxx does not 100% replace GNU readline...

MangaD avatar Sep 09 '21 16:09 MangaD

Yes. replxx is not seamless replacement for readline.

AmokHuginnsson avatar Sep 09 '21 16:09 AmokHuginnsson