Option to accept line from completion function

Asked by hakon

Is it possible to have a command like

compopt -o accept-line

to be called from a complete -F function? Which will work as follows:

If COMPREPLY contains a single word the current word on the command line will be replaced with that word
as usual, and then a readline accept-line call (bind accept-line) will be inserted such that the
user does not have to manually press the enter key to accept the line?

For motivation, see
https://github.com/junegunn/fzf/issues/222

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu bash-completion Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.