News for hackers. Stuff that matters.
Re:Bring Back Idiomatic Design by physicles on Sunday April 12, 2026 @12:58PM (#47741915)
In Slack it can get even worse.

If you turn on Markdown formatting, shift+enter adds a new line, unless you’re in a multi-line code block started with three backticks, and then enter adds a new line and shift+enter sends the message.

I can see why someone thought this was a good idea, but it’s just not.

Re:Bring Back Idiomatic Design by jwolfe on Sunday April 12, 2026 @01:31PM (#47742253)
This is a user preferences setting for what it's worth.
Re:Bring Back Idiomatic Design by least on Sunday April 12, 2026 @07:29PM (#47745591)
It’s kind of modal editing. Your 99% is enter to send because it’s a chat program. You’re sending mostly quick messages where adding a chorded input to send is just adding extra work to that mode.

When you enter a code block, that assumption changes. You are now in a “long text” mode where the assumptions are shifted where you are more likely want to insert a new line than to send the message.

I think people that have used tables or a spreadsheet and a text editor kind of understand modal editing and why we shift behaviors depending on the context. Pressing tab in a table or spreadsheet will navigate cells instead of inserting a tab character. Pressing arrow keys may navigate cells instead of characters in the cell. Pressing enter will navigate to the cell below, not the first column of the next row. It’s optimized for its primary use case.

I think if the mode change was more explicit it’d maybe be a better experience. Right now it is largely guessing what behavior someone wants based off the context of their message but if that mismatches the users expectations it’s always going to feel clumsy. A toggle or indicator with a keyboard shortcut. Can stick the advanced options inside the settings somewhere if a power user wants to tinker.

Re:Bring Back Idiomatic Design by skydhash on Sunday April 12, 2026 @08:44PM (#47746177)
> I think people that have used tables or a spreadsheet and a text editor kind of understand modal editing and why we shift behaviors depending on the context.

I don't have a spreadsheet software nearby, but I remember the cell is highlighted different if you're in insert mode or navigation mode. Just like the status line in Vim let's you know which mode you're in.

Re:Bring Back Idiomatic Design by hamasho on Monday April 13, 2026 @01:00AM (#47747787)
The worst part is if I paste markdown it's not formatted automatically.
Re:Bring Back Idiomatic Design by Bjartr on Monday April 13, 2026 @08:31AM (#47751049)
Ctrl-shift-f to apply formatting to literal markdown that's been entered via pasting
Re:Bring Back Idiomatic Design by croemer on Monday April 13, 2026 @06:46AM (#47750214)
When you're in a multi code block it should simply never send on (shift+)enter then. Close the code block first.
Re:Bring Back Idiomatic Design by Bjartr on Monday April 13, 2026 @08:30AM (#47751044)
There's a setting to toggle this behavior