Skip to main content

Add keyboard shortcut 'Control + u' - "Unix Line Discard"

I am used to pressing ‘Control’ + ‘u’ to delete the current line of input in my terminal (everything to the left of my cursor). This widespread keyboard shortcut is not implemented in Monarch.

unix-line-discard (C-u)

Kill backward from the cursor to the beginning of the current line.

https://www.gnu.org/software/bash/manual/html_node/Commands-For-Killing.html#index-unix_002dline_002ddiscard-_0028C_002du_0029

___

The closed thing is Command + Delete but this deletes the whole line of input, no matter where the cursor currently is.

Status: Completed2 comments

Log in to comment and vote

Comments2

  • rmdashrfv

    Team•

    Nov 20, 2025

    Alright. This is quite embarrassing for me. I also use ctrl-u to delete lines, it’s one of my most used shortcuts. And I’ve forgotten to add it. When I read this feedback I felt so much shame but thank you for bringing it to my attention.

    This will be in the next release. And I think it’s worth me actually teaching people about ctrl-u! It’s so good!

  • Moritz

    •

    Nov 20, 2025

    EDIT: After some research: Command+Delete should perform “kill backward from the cursor to the beginning of the current line” (So Unix Line Discard). This works in all macOS applications.

    So Monarch implemented it “wrong” since it deletes both the current line in front and after the cursor.