I'm sure this could be improved upon but hopefully it's useful even as a starting point.
I had to add passing the "$@" from the hook functions into prompt_pure_set_title, or it wouldn't be available to user-defined formats (which makes the preexec arguments $3, $4, and $5). I also changed ignore-escape to expand-prompt, again so a user can make use of that feature, which means the ignore-escape mode is never used and perhaps it could be removed?
I'm sure this could be improved upon but hopefully it's useful even as a starting point.
I had to add passing the
"$@"
from the hook functions intoprompt_pure_set_title
, or it wouldn't be available to user-defined formats (which makes thepreexec
arguments$3
,$4
, and$5
). I also changedignore-escape
toexpand-prompt
, again so a user can make use of that feature, which means theignore-escape
mode is never used and perhaps it could be removed?Fixes #656