go-prompt provides option to customize insertion points for completer at https://github.com/c-bata/go-prompt/pull/79. By using it, file path completion will be better such like below:
Before
After
In POSIX environment, FilePathCompleter properly treats ~ as user home directory. And this also supports expanding env like $HOME .
go-prompt provides option to customize insertion points for completer at https://github.com/c-bata/go-prompt/pull/79. By using it, file path completion will be better such like below:
Before
After
In POSIX environment, FilePathCompleter properly treats
~
as user home directory. And this also supports expanding env like$HOME
.