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

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.


Solution 1:

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.

Solution 2:

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

  • beginning-of-line = Control-a
  • end-of-line = Control-e