Skip to content

Show status message when updating command line buffer #10380

Answered by zanchey
Realiserad asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to wipe it on those keys, you would need something like this:

function fish_right_prompt
   echo $mychar
end

function mybinding
   # Complicated business logic producing an error every time...
  set -g mychar ❌
  commandline --function repaint
end

bind \cj mybinding

function clearstatus
  set -e mychar
end

bind \r 'clearstatus; commandline -f execute'
bind \cc 'clearstatus; commandline -f cancel-commandline'

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Realiserad
Comment options

@zanchey
Comment options

@Realiserad
Comment options

@zanchey
Comment options

Answer selected by Realiserad
@Realiserad
Comment options

@zanchey
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants