Move to the beginnig/end of line (not in bash)

0

In macOS, from any "textbox" for instance the one in which I am writing this question, if I press CMD+LeftArrow the cursor goes to beginning of the line. Furthermore in macOS, if I press Ctrl+A the cursor goes in the beginning of the line again, in fact in macOS CMD+A selects everything, so Ctrl+A is still available.

How can do that in Ubuntu?

I would also like to have something equivalent to CMD+Backspace+LeftArrow, that is "delete all the line".

Nisba

Posted 2016-10-01T23:03:55.697

Reputation: 143

I think home and end keys of the keyboard are the buttons meant for that, which is how that functions are implemented in Windows, as simply pushing home would go the beginning and end to the end of the line, while combining them with ctrl key would do the same for the whole page, the entire text that is. – None – 2016-10-03T03:31:32.463

Answers

0

If you are talking about a textbox, I think the only way is by pressing home/end. But if you are talking about a terminal, I would recommend using set -o vi. For me is very useful.

John Doe

Posted 2016-10-01T23:03:55.697

Reputation: 11

0

Look for Home and End buttons on the keyboard. They will do the job.

For multi-line textboxes, use Ctrl+Home and Ctrl+End to reach the beginning and end of text.

To delete everything, first select the text using Ctrl+A and then Backspace.

Ctrl+Backspace deletes the previous word, and Ctrl+Shift+Backspace deletes the line your cursor is in equivalent to CMD+Backspace+LeftArrow.

Nirav

Posted 2016-10-01T23:03:55.697

Reputation: 188

0

To move to the beginning or end of a line, the home and end keys are used. On a macbook, those keys are usually bound to fn + leftArrow and fn + rightArrow. If that does not work, sources suggest using fn + option + leftArrow/rightArrow or other combinations.

EricWM612

Posted 2016-10-01T23:03:55.697

Reputation: 1