The text system also has a basic kill-yank separate from copy paste. So you can Ctrl-K to kill a line, then Ctrl-y to yank it out elsewhere in basically every text input in the OS.
The issue happens on web (and on web based UIs such as Electron apps) outside of text input fields or textareas.
This is how to reproduce:
1. first we doble click on the first word of the line, to create a selection
2. At this point we expect that Cmd-shift-rightarrow will expand the selection to the rest of the line. But it doesn't because this key combination only works inside a text input or textarea. In every other desktop OS I can do shift-End at this point, and select the rest of the line.
3. option-shift arrow does work, but selects one word at a time so it is cumbersome to use
4. I had been told that I could use fn-shift-arrow in this case, but that selects all text until the end of the page (that's the one I was thinking about in my previous comment)
I just tried and reproduced the issue in Chrome and Safari.
Hmm yeah I never noticed that. Fastest way to select a line I know is: click at the start of the line, then Shift + down arrow.
Also, TIL that you can hold down CMD and drag over various words/letters on the screen, non-contiguous, then CMD-C copies them all to the clipboard. Must be handy for something!
And terminal has ctrl+a and ctrl+e. My mnemonics: A is for Anfang (german: start, beginning), e is just End.
On windows I was confused as to whether Pos1/End gets me to file ending, or line ending. I think it's the first, unless you hit a modifier key.
But I use this functionality extensively when outside the terminal.
in MacOS there is no unified way to get to the beginning or end of a line. In Linux and Windows this is done with the Home and End keys. In Mac, there are some shortcuts but they are not universal, what works in terminal may not work in a browser textarea and so on. Some programs interpret the same shortcut as "go to the very end of the text (as in a PgDown key) but that same shortcut, in another program, might go to the end of the line (like the End key).
Please let me know if I'm missing something! Every time I make a web search about this topic, I end up in various pages like this one[1] with shortcuts that don't work for me for the reasons explained above.
EDIT: I found out that there are some Mac keyboards with the Home and End keys. So it seems that this is not an OS issue but, I guess, a MacBook issue (I've only ever used MacBooks and always without external keyboard).
[1] https://djst.org/topic/what-is-the-end-key-on-a-mac/