User Tools

Site Tools


micro

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

micro [2025/02/07 12:41] – created papamicro [2025/02/07 12:45] (current) – Micro tutorial contributed by peron@sdf.org papa
Line 1: Line 1:
 +======Micro======
 +
 +**Micro** is a simple and intuitive [[text_editors_on_sdf|text editor]], which takes advantage of the capabilities of modern terminal emulators.
 +
 +It aims to be a sort of successor to [[nano]], enjoyable for full-time use, for those who prefer to work in the terminal, or who regularly edit files via remote systems.
 +
 +Many Microsoft Windows users find Micro easy to use, as it has mouse support and  Windows inspired commands: **Ctrl+c** and **Ctrl+v** for copy and paste, **Ctrl+s** for save, **Ctrl+q** for exit, etc.
 +
 +====Using Micro====
 +
 +Run Micro with
 +
 +<code bash>micro</code>
 +
 +...or open a file with:
 +
 +<code bash>micro file.txt</code>
 +
 +
 +Type text into the buffer window and edit your document. 
 +
 +You may review the main shortcuts with **Alt+g**.
 +
 +===Scrolling===
 +
 +By default, Micro uses keyboard shortcuts that will be familiar to Windows users. **Ctrl+arrow keys** move word by word. Use **Alt+Left arrow** or **Alt+Right arrow** to move the cursor to the beginning or end of the line. You can move to next or previous paragraph with **Alt+{** or **Alt+}** respectively.
 +
 +Use **Ctrl+Up arrow** or **Ctrl+Down arrow** to scroll to the beginning or end of the document.
 +
 +===Selecting in Micro===
 +
 +While scrolling, you can combine all of these movements with the **Shift key** to activate text selection.
 +
 +====Micro Shortcuts====
 +
 +^Key Shortcut^Command^
 +|Ctrl+g |Help |
 +|Alt+g |Display shortcuts on screen |
 +|Ctrl+a |Select All |
 +|Ctrl+x |Cut |
 +|Ctrl+c |Copy |
 +|Ctrl+v |Paste |
 +|Alt+Backspace |Delete word |
 +|Ctrl+k |Cut line (like Nano) |
 +|Ctrl+z |Undo |
 +|Ctrl+y |Redo |
 +|Ctrl+f |Search |
 +|Ctrl+p |Previous Search |
 +|Ctrl+n |Next Search |
 +|Ctrl+w |Switch windows |
 +|Ctrl+r |Line Numbers |
 +|Ctrl+s |Save Changes |
 +|Ctrl+b |Open a shell |
 +|Ctrl+q |**Quit Micro** |
 +
 +You can also use  Function keys for  common tasks:
 +|F2 |Save |
 +|F3 |Search |
 +|F4 |Quit |
 +|F7 |Search |
 +|F10 |**Quit Micro** |
 +
 +===Micro Special Commands===
 +
 +**Ctrl+e** displays a ''>'' prompt. Enter a Micro special commands for certain advanced features.
 +^Special Command^Feature ^
 +|''set softwrap on'' |Activate wordwrap |
 +|''set scrollbar on'' |Add vertical scrollbar |
 +|''vsplit'' |Split window vertically |
 +|''hsplit'' |Split window horizontally |
 +|''vsplit file.txt'' |Load ''file.txt'' into vertical window |
 +|''hsplit file.txt'' |Load ''file.txt'' into horizontal window |
 +
 +Once you create several work windows in Micro, use **Ctrl+w** to switch between them.
 +
 +You can configure the keys via the ''~/.config/micro/bindings.json'' file, and the user settings in ''~/.config/micro/Settings.json''.