mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-12 16:53:09 +00:00
Merge pull request #688 from tommyshem/help-defaultkeys
Added missing defualt key bindings to help_defaultkeys.md
This commit is contained in:
commit
08daaf95e4
1 changed files with 99 additions and 16 deletions
|
|
@ -12,16 +12,17 @@ If you don't like it, you can change it!
|
||||||
|
|
||||||
#Power user
|
#Power user
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
| Key | Description of function |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
| Ctrl+E | Switch to the micro command prompt to run a command. |
|
| Ctrl+E | Switch to the micro command prompt to run a command. |
|
||||||
| | (See `>help commands` for a list of commands. ) |
|
| | (See `>help commands` for a list of commands. ) |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
| Tab | In command prompt it will auto complete if possible. |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
| Ctrl+B | Run shell commands in micro's current working directory.|
|
| Ctrl+B | Run shell commands in micro's current working directory.|
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
|
||||||
#Navigation
|
#Navigation
|
||||||
|
|
||||||
+--------+---------------------------------------------------------+
|
|
||||||
| Key | Description of function |
|
|
||||||
|--------+---------------------------------------------------------+
|
|--------+---------------------------------------------------------+
|
||||||
| Arrows | Move the cursor around your current document. |
|
| Arrows | Move the cursor around your current document. |
|
||||||
| | (Yes this is rebindable to the vim keys if you want.) |
|
| | (Yes this is rebindable to the vim keys if you want.) |
|
||||||
|
|
@ -29,19 +30,52 @@ If you don't like it, you can change it!
|
||||||
| Shift+ | Move and select text. |
|
| Shift+ | Move and select text. |
|
||||||
| Arrows | |
|
| Arrows | |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
| Home | Move to the beginning of the current line. (Naturally.) |
|
| Home | |
|
||||||
|
| or | |
|
||||||
|
| Ctrl+ | Move to the beginning of the current line. (Naturally.) |
|
||||||
|
| Left | |
|
||||||
|
| Arrow | |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
| End | Move to the end of the current line. |
|
| End | |
|
||||||
|
| or | |
|
||||||
|
| Ctrl+ | Move to the end of the current line. |
|
||||||
|
| Right | |
|
||||||
|
| Arrow | |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
| Alt+ | |
|
||||||
|
| Left | Move cursor one complete word left. |
|
||||||
|
| Arrow | |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
| Alt+ | |
|
||||||
|
| Right | Move cursor one complete word right. |
|
||||||
|
| Arrow | |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
| PageUp | Move cursor up lines quickly. |
|
| PageUp | Move cursor up lines quickly. |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
| PageDn | Move cursor down lines quickly. |
|
| PageDn | Move cursor down lines quickly. |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
| Ctrl+ | |
|
||||||
|
| Home | |
|
||||||
|
| or | Move cursor to start of the document |
|
||||||
|
| Ctrl+ | |
|
||||||
|
| Up | |
|
||||||
|
| Arrow | |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
| Ctrl+ | |
|
||||||
|
| End | |
|
||||||
|
| or | Move cursor to end of the document |
|
||||||
|
| Ctrl+ | |
|
||||||
|
| Down | |
|
||||||
|
| Arrow | |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
| Ctrl+L | Jump to line in current file. ( Prompts for line # ) |
|
| Ctrl+L | Jump to line in current file. ( Prompts for line # ) |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
| Ctrl+W | Move between splits open in current tab. |
|
| Ctrl+W | Move between splits open in current tab. |
|
||||||
| | (See vsplit and hsplit in `>help commands`) |
|
| | (See vsplit and hsplit in `>help commands`) |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
|
||||||
|
#Tabs
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
| Ctrl+T | Open a new tab. |
|
| Ctrl+T | Open a new tab. |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
| Alt+, | Move to the previous tab in the tablist. |
|
| Alt+, | Move to the previous tab in the tablist. |
|
||||||
|
|
@ -51,7 +85,6 @@ If you don't like it, you can change it!
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
|
||||||
#Find Operations
|
#Find Operations
|
||||||
|
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
| Ctrl+F | Find text in current file. ( Prompts for text to find.) |
|
| Ctrl+F | Find text in current file. ( Prompts for text to find.) |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
|
@ -61,7 +94,6 @@ If you don't like it, you can change it!
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
|
||||||
#File Operations
|
#File Operations
|
||||||
|
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
| Ctrl+Q | Close current file. ( Quits micro if last file open. ) |
|
| Ctrl+Q | Close current file. ( Quits micro if last file open. ) |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
|
@ -71,10 +103,45 @@ If you don't like it, you can change it!
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
|
||||||
#Text operations
|
#Text operations
|
||||||
|
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
| Ctrl+A | Select all text in current file. |
|
| Ctrl+A | Select all text in current file. |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
| Alt+ | |
|
||||||
|
| Shift+ | Select complete word right. |
|
||||||
|
| Right | |
|
||||||
|
| Arrow | |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
| Alt+ | |
|
||||||
|
| Shift+ | Select complete word left. |
|
||||||
|
| Left | |
|
||||||
|
| Arrow | |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
| Shift+ | |
|
||||||
|
| Home | |
|
||||||
|
| or | Select from the current cursor position to the |
|
||||||
|
| Ctrl+ | start of the current line. |
|
||||||
|
| Shift+ | |
|
||||||
|
| Left | |
|
||||||
|
| Arrow | |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
| Shift+ | |
|
||||||
|
| End | |
|
||||||
|
| or | Select from the current cursor position to the |
|
||||||
|
| Ctrl+ | end of the current line. |
|
||||||
|
| Shift+ | |
|
||||||
|
| Right | |
|
||||||
|
| Arrow | |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
| Ctrl+ | |
|
||||||
|
| Shift+ | Select from the current cursor position to the |
|
||||||
|
| Up | start of the document. |
|
||||||
|
| Arrow | |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
| Ctrl+ | |
|
||||||
|
| Shift+ | Select from the current cursor position to the |
|
||||||
|
| Down | end of the document. |
|
||||||
|
| Arrow | |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
| Ctrl+X | Cut selected text. |
|
| Ctrl+X | Cut selected text. |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
| Ctrl+C | Copy selected text. |
|
| Ctrl+C | Copy selected text. |
|
||||||
|
|
@ -89,6 +156,30 @@ If you don't like it, you can change it!
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
| Ctrl+Y | Redo actions. |
|
| Ctrl+Y | Redo actions. |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
| Alt+ | |
|
||||||
|
| Up | Move current line or selected lines up. |
|
||||||
|
| Arrow | |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
| Alt+ | |
|
||||||
|
| Down | Move current line or selected lines down. |
|
||||||
|
| Arrow | |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
| Alt+ | |
|
||||||
|
| Ctrl+H | |
|
||||||
|
| or | Delete complete word left. |
|
||||||
|
| Alt+ | |
|
||||||
|
| Back- | |
|
||||||
|
| space | |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
|
||||||
|
#Macros
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
| | Toggle ON/OFF macro recording. |
|
||||||
|
| Ctrl+U | Simply press Ctrl+U to begin recording a macro and |
|
||||||
|
| | press Ctrl+U to stop recording macro. |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
| Ctrl+J | Run your recorded macro. |
|
||||||
|
+--------+---------------------------------------------------------+
|
||||||
|
|
||||||
#Other
|
#Other
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
|
@ -101,7 +192,6 @@ If you don't like it, you can change it!
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
|
||||||
#Emacs style actions
|
#Emacs style actions
|
||||||
|
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
| Alt+F | Move to the end of the next word. (To the next space.) |
|
| Alt+F | Move to the end of the next word. (To the next space.) |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
|
@ -117,7 +207,6 @@ If you don't like it, you can change it!
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
|
||||||
#Function keys.
|
#Function keys.
|
||||||
|
|
||||||
Warning! The function keys may not work in all terminals!
|
Warning! The function keys may not work in all terminals!
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
| F1 | Open help. |
|
| F1 | Open help. |
|
||||||
|
|
@ -133,9 +222,3 @@ Warning! The function keys may not work in all terminals!
|
||||||
| F10 | Close current file. |
|
| F10 | Close current file. |
|
||||||
+--------+---------------------------------------------------------+
|
+--------+---------------------------------------------------------+
|
||||||
|
|
||||||
#Macros
|
|
||||||
|
|
||||||
Micro supports the use of keyboard macros. Simply press Ctrl+U to
|
|
||||||
begin recording a macro and press Ctrl+U to stop recording.
|
|
||||||
|
|
||||||
Press Ctrl+J to run your recorded macro.
|
|
||||||
Loading…
Reference in a new issue