Hacker News new | ask | show | jobs
by shrimp_emoji 2255 days ago
Which terminal? In Linux, Alt+Left Click is the "move window around" idiom, while Alt+Right Click is "resize window with the mouse".
3 comments

How can you know that this is a common idiom? Is there an (prob. GNU)-document for these things? Two reasons I am asking: 1) I feel terrible reading this, since my last post was preaching for XCFE for this exact functionality. 2) It would be awesome to have these things bundled and discover many things which are yet not discovered by me.
The major Linux desktops have had this sort of thing for like 15 years. It’s usually only discovered by people who obsessively tweak their settings, though.
Dont think that its a standart of some kind, but KDE does the same thing
I'd imagine it was Terminal on MacOS from the capitalisation (and that does what he says, just checked.)
Yes. That would be Mac iTerm/Terminal, should have mentioned.
Do people usually use "Alt" to describe the Option key on Macs? I was really confused for a second trying to find it on my Macbook
Yes.

Anyone that hasn't been exclusively using macOS for their entire digital life, or at least years, anyway.

'Command' (resp. 'Windows', resp. 'Super') is a different story. You can't say 'Super' with a straight face without also marking yourself out as someone who borders on saying 'GNU with Linux', or 'I run Arch'.

(For what it's worth, I do run Arch. ;))

IIRC Option is dually labelled as Alt on some Apple keyboards anyway.

> You can't say 'Super' with a straight face without also marking yourself out as someone who borders on saying 'GNU with Linux', or 'I run Arch'.

Since basically nobody knows the historical difference these days, I just call it the Meta key to avoid the above situation. When non-techy people ask me what the hell I mean, I just explain that's the technical term for the key and that I use it so both Mac and Windows people understand me. I've even heard one of them start using the term themselves, presumably to appear smarter in front of their boss.

While it's not wrong to refer to the Super key as "Meta", I don't like calling it that, because in some contexts (like emacs), "Meta" means the Alt key.
I use a USB mechanical keyboard with my Mac, Ubuntu at home, so I tend to think of command and option as super and alt.
I want this badly on gnome-terminal. If anyone has this type if thing on a linux plz. advise.
I agree, but also can recommend a few good shortcuts...

<c-a> = go to beginning of line

<c-e> = go to end of line

!! = repeat last command

<esc> b = move "back" one word (also <c-b> and <c-left>)

<esc> f = move "forward" one word (also <c-f> and <c-right>)

Many others exist. See `man bash` under READLINE.

By the way, recently discovered you can get some of these shortcuts in all input boxes by activating “emacs shortcuts” inside of gnome-tweaks! Was one of the final blockers for getting me from Mac to Linux
You can also use the more standard Home/End/Ctrl+Left/Ctrl+Right to do all of the above. Much easier to remember and works in any other editor also.
!cmd = repeat last usage of that command

!!enter which is 3 buttons where as up-arrow enter is the same thing.

!! is more useful than you think. It's substitute last command here, not just up-arrow enter.

See sudo !!.

Yes! I use c-u to clear the line all the time.
And <c-w> clears the previous word :) Also <c-y> pastes the line/word back in (so you cant think of it like cut-copy).
Shift+click works for me.