X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fhelp%2Fdefaultkeys.md;h=a50f189e7f653ebc1ca774eebb68d484718c277c;hb=aae0f4630e5d834f0b5f78c5b6a27212e69e5e3f;hp=177ea0251a9d0d18141cf28a6de96ba7681c63a1;hpb=fc9ddaf94187a47732f02051f7ce52f9eec11ff1;p=micro.git diff --git a/runtime/help/defaultkeys.md b/runtime/help/defaultkeys.md index 177ea025..a50f189e 100644 --- a/runtime/help/defaultkeys.md +++ b/runtime/help/defaultkeys.md @@ -1,13 +1,13 @@ # Default Keys -Below are simple charts of the default hotkeys and their functions. -For more information about binding custom hotkeys or changing -default bindings, please run `> help keybindings` +Below are simple charts of the default hotkeys and their functions. For more +information about binding custom hotkeys or changing default bindings, please +run `> help keybindings` -Please remember that *all* keys here are rebindable! -If you don't like it, you can change it! +Please remember that *all* keys here are rebindable! If you don't like it, you +can change it! -# Power user +### Power user | Key | Description of function | |-------- |-------------------------------------------------------------------------------------------------- | @@ -15,7 +15,7 @@ If you don't like it, you can change it! | Tab | In command prompt, it will autocomplete if possible. | | Ctrl+B | Run a shell command (this will close micro while your command executes). | -# Navigation +### Navigation | Key | Description of function | |-------------------------- |------------------------------------------------------------------------------------------ | @@ -25,6 +25,8 @@ If you don't like it, you can change it! | End or CtrlRightArrow | Move to the end of the current line | | AltLeftArrow | Move cursor one word left | | AltRightArrow | Move cursor one word right | +| Alt+{ | Move cursor to previous empty line, or beginning of document | +| Alt+} | Move cursor to next empty line, or end of document | | PageUp | Move cursor up one page | | PageDown | Move cursor down one page | | CtrlHome or CtrlUpArrow | Move cursor to start of document | @@ -32,7 +34,7 @@ If you don't like it, you can change it! | Ctrl+L | Jump to a line in the file (prompts with #) | | Ctrl+W | Cycle between splits in the current tab (use `> vsplit` or `> hsplit` to create a split) | -# Tabs +### Tabs | Key | Description of function | |-------- |------------------------- | @@ -40,7 +42,7 @@ If you don't like it, you can change it! | Alt+, | Previous tab | | Alt+. | Next tab | -# Find Operations +### Find Operations | Key | Description of function | |-------- |------------------------------------------ | @@ -48,7 +50,7 @@ If you don't like it, you can change it! | Ctrl+N | Find next instance of current search | | Ctrl+P | Find previous instance of current search | -# File Operations +### File Operations | Key | Description of function | |-------- |---------------------------------------------------------------- | @@ -56,7 +58,7 @@ If you don't like it, you can change it! | Ctrl+O | Open a file (prompts for filename) | | Ctrl+S | Save current file | -# Text operations +### Text operations | Key | Description of function | |--------------------------------- |------------------------------------------ | @@ -78,14 +80,14 @@ If you don't like it, you can change it! | AltBackspace or AltCtrl+H | Delete word left | | Ctrl+A | Select all | -# Macros +### Macros | Key | Description of function | |-------- |---------------------------------------------------------------------------------- | | Ctrl+U | Toggle macro recording (press Ctrl+U to start recording and press again to stop) | | Ctrl+J | Run latest recorded macro | -# Multiple cursors +### Multiple cursors | Key | Description of function | |---------------- |---------------------------------------------------------------------------------------------- | @@ -93,9 +95,10 @@ If you don't like it, you can change it! | Alt+P | Remove latest multiple cursor | | Alt+C | Remove all multiple cursors (cancel) | | Alt+X | Skip multiple cursor selection | +| Alt+M | Spawn a new cursor at the beginning of every line in the current selection | | Ctrl-MouseLeft | Place a multiple cursor at any location | -# Other +### Other | Key | Description of function | |-------- |----------------------------------------------------------------------------------- | @@ -103,7 +106,7 @@ If you don't like it, you can change it! | Ctrl+H | Backspace (old terminals do not support the backspace key and use Ctrl+H instead) | | Ctrl+R | Toggle the line number ruler | -# Emacs style actions +### Emacs style actions | Key | Description of function | |------- |------------------------- | @@ -112,7 +115,7 @@ If you don't like it, you can change it! | Alt+A | Move to start of line | | Alt+E | Move to end of line | -# Function keys. +### Function keys. Warning! The function keys may not work in all terminals!