Skip to content

Is there a binding to kill the entire buffer and not just a line? #9165

Closed Answered by krobelus
txtyash asked this question in Q&A
Discussion options

You must be logged in to vote

you can use this:

function my-cancel-commandline
    commandline ""
    emit fish_cancel
    # Repaint even if we haven't cancelled anything,
    # so the prompt refreshes and the terminal scrolls to it.
    commandline -f repaint
end

(maybe it's time to revive #4713)

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@txtyash
Comment options

Answer selected by txtyash
Comment options

You must be logged in to vote
3 replies
@krobelus
Comment options

@1lessbug
Comment options

@txtyash
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
3 participants