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:/
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
To post a message you must log in.