Score:2

How to go to beginning and end of line in ordinary text boxes

hk flag

When I'm not in vim, how do I go to the beginning of a line in something like Firefox search bar or Google Docs with a keyboard shortcut? How would I replicate macOS's command + arrow keybind.

I'm in 20.04.

Score:7
in flag

Generally use the Home key to move to the beginning of input field and End key to move to the end.

You can also use Ctrl + arrow key to move direction one word at a time. For example Ctrl + Left Arrow to move to previous word.

as flag
It surprises me that there are still people unaware of this. These keys have been on keyboards for like 30 years, haven't they? To add to this answer: In case OP is using one of those compact keyboards without Home and End keys, he can still use <kbd>Ctrl</kbd> + UP and <kbd>Ctrl</kbd> + DOWN to go to the end and start of the textfield respectively. (Note that this only works on single-line textboxes and not multiline fields like the ones used on SO)
WinEunuuchs2Unix avatar
in flag
@Opifex The OP knows how to do it on a MAC or VIM which I don't know how to. I couldn't find an on-line source in Ubuntu or Gnome for `Home` and `End` keys. Microsoft has on-line documentation that incorectly states `Home` moves to the end of the line: https://support.microsoft.com/en-us/windows/using-your-keyboard-18b2efc1-9e32-ba5a-0896-676f9f3b994f
Daksh Gargas avatar
es flag
Ever wondered a lot of keyboards these days don't have a `home` and `end` key? You might wanna updated your answer referring this -> https://askubuntu.com/a/1363505/703469
Score:1
cn flag

In most applications you can use Emacs-style cursor motion commands:

  • beginning-of-line = Control-a
  • end-of-line = Control-e
phipsgabler avatar
la flag
Not only that -- you can also use system-wide tweaks for this to work by default in many places, e.g., https://askubuntu.com/questions/245746/emacs-like-keybindings-system-wide
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.