Welcome to Vifm Q&A, where you can ask questions about using Vifm. Registration is optional, anonymous posts are moderated. E-mail and GitHub logins are enabled.
0 votes
in vifm by

I want to write a command that accepts an argument. When the command name is typed in the command line, I want to press Tab to show a menu with strings I specify, e.g. "susan", "barbara", "mark" from which I can select and pass to the command as argument. The behavior I want to copy is when I type :e<Tab> a selection of files is shown, but instead of file names, a list of custom strings is displayed.

I tried using input() but completion is limited to files and directories.

Thanks!

1 Answer

0 votes
by

If you can implement your custom command in Lua (depends on what it does), you can add completion to it like here. Without Lua there is no way to provide list of items for completion.

by

Thank you for your guidance. I am not familiar with writing vifm plugins in Lua. I will try to dive into it and see how deep I can go.

Your work is deeply appreciated.

...