News for hackers. Stuff that matters.
Re:Shell Tricks That Make Life Easier (and Save Your Sanity) by hejira on Thursday March 26, 2026 @04:57AM (#47528095)
In my terminal it's the exact opposite – Alt-Backspace deletes to the previous space, whereas Ctrl-W deletes to the last non-alphanumeric (such as /). I'm using fish shell in an Alacritty terminal.

Yeah, pressing Ctrl-W accidentially is a pain sometimes ... but Ctrl-Shift-T in Firefox is a godsend.

Re:Shell Tricks That Make Life Easier (and Save Your Sanity) by Aerolfos on Thursday March 26, 2026 @05:26AM (#47528295)
> Yeah, pressing Ctrl-W accidentially is a pain sometimes ... but Ctrl-Shift-T in Firefox is a godsend.

Fun fact: despite having absolutely no menu entry for it, and I believe not even a command available with Ctrl+Shift+P, Vscode supports Ctrl+Shift+T to re-open a closed tab. Discovered out of pure muscle memory.

Re:Shell Tricks That Make Life Easier (and Save Your Sanity) by dgrunwald on Thursday March 26, 2026 @07:26AM (#47529172)
It's a normal command called "View: Reopen Closed Editor".
Re:Shell Tricks That Make Life Easier (and Save Your Sanity) by Aerolfos on Friday March 27, 2026 @04:54AM (#47540374)
You'd think that meant "window" since they consistently call the windows editors, but I guess not