Micro Cheat Sheet: Unterschied zwischen den Versionen

Aus Matts Wiki
Keine Bearbeitungszusammenfassung
 
Zeile 1: Zeile 1:
This article holds my cheat notes for the [https://micro-editor.github.io/ Micro] terminal based text editor.
This article holds my cheat notes for the [https://micro-editor.github.io/ Micro] terminal based text editor.
Every shortcut starting with <code>></code> symbolizes, that command bar was opened first with <code>Ctrl + e</code> which leads to the command bar showing up in the bottom line of the editor represented by <code>></code> .


== Keybindings and Shortcuts ==
== Keybindings and Shortcuts ==
Source: https://github.com/zyedidia/micro/blob/master/runtime/help/defaultkeys.md


=== Navigation ===
=== General ===
{| class="wikitable"
{| class="wikitable"
!Shortcut
!Shortcut
Zeile 12: Zeile 11:
|Ctrl + e
|Ctrl + e
|Open command bar
|Open command bar
|}
=== Navigation ===
{| class="wikitable"
!Shortcut
!Action
|-
|Ctrl + f
|Find
|-
|-
|Ctrl + w
|Ctrl + n
|Switch between splits
|Find next occurence
|-
|Ctrl + p
|Find previous occurence
|-
|Ctrl + l
|Go to line
|}
|}


=== Tabs ===
=== Tabs and Splits ===
{| class="wikitable"
{| class="wikitable"
!Shortcut
!Shortcut
Zeile 33: Zeile 47:
|Ctrl + q
|Ctrl + q
|Close tab
|Close tab
|}
=== Handling Windows ===
{| class="wikitable"
!Shortcut
!Action
|-
|-
|> vsplit
|Ctrl + w
|Split
|Switch between splits
|}
|}


Zeile 75: Zeile 83:
'''Hint:''' In Windows 11 terminal the key combinations Alt + Shift + Up and Alt + Shift + Down in Micro do not work by default as these key bindings are already occupied in Windows 11 terminal settings. To have them working in micro properly you need to go to Windows 11 terminal settings and remove these key bindings.
'''Hint:''' In Windows 11 terminal the key combinations Alt + Shift + Up and Alt + Shift + Down in Micro do not work by default as these key bindings are already occupied in Windows 11 terminal settings. To have them working in micro properly you need to go to Windows 11 terminal settings and remove these key bindings.


== Run Terminal Commands ==
== Commands ==
Every shortcut starting with <code>></code> symbolizes, that command bar was opened first with <code>Ctrl + e</code> which leads to the command bar showing up in the bottom line of the editor represented by <code>></code> .
 
=== Run Terminal Commands ===
Ctrl + b and type terminal command for single commands.
Ctrl + b and type terminal command for single commands.


<code>> term</code> for a full terminal window. Do a hsplit or vsplit first to have them both side by side
<code>> term</code> for a full terminal window. Do a hsplit or vsplit first to have them both side by side


== Configuration ==
=== Handling Windows ===
{| class="wikitable"
!Shortcut
!Action
|-
|> vsplit
|Split
|}
 
=== Configuration ===


=== Soft Word Wrap ===
==== Soft Word Wrap ====
<code>> set softwrap on</code>
<code>> set softwrap on</code>


=== Cliboard ===
==== Cliboard ====
<code>> set clipboard terminal</code>  - I don't know what this does nor what the default value is
<code>> set clipboard terminal</code>  - I don't know what this does nor what the default value is
[[Kategorie:Linux]]
[[Kategorie:Linux]]
[[Kategorie:Terminal]]
[[Kategorie:Terminal]]

Aktuelle Version vom 23. November 2025, 12:23 Uhr

This article holds my cheat notes for the Micro terminal based text editor.

Keybindings and Shortcuts

Source: https://github.com/zyedidia/micro/blob/master/runtime/help/defaultkeys.md

General

Shortcut Action
Ctrl + e Open command bar

Navigation

Shortcut Action
Ctrl + f Find
Ctrl + n Find next occurence
Ctrl + p Find previous occurence
Ctrl + l Go to line

Tabs and Splits

Shortcut Action
Ctrl + t Open new tab
Alt + , Previous tab
Alt + . Next tab
Ctrl + q Close tab
Ctrl + w Switch between splits

Multiple cursors

Key Description of function
Alt + n Create new multiple cursor from selection (will select current word if no current selection)
Alt + Shift + Up Spawn a new cursor on the line above the current one. Also see hint below.
Alt + Shift + Down Spawn a new cursor on the line below the current one. Also see hint below.
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

Hint: In Windows 11 terminal the key combinations Alt + Shift + Up and Alt + Shift + Down in Micro do not work by default as these key bindings are already occupied in Windows 11 terminal settings. To have them working in micro properly you need to go to Windows 11 terminal settings and remove these key bindings.

Commands

Every shortcut starting with > symbolizes, that command bar was opened first with Ctrl + e which leads to the command bar showing up in the bottom line of the editor represented by > .

Run Terminal Commands

Ctrl + b and type terminal command for single commands.

> term for a full terminal window. Do a hsplit or vsplit first to have them both side by side

Handling Windows

Shortcut Action
> vsplit Split

Configuration

Soft Word Wrap

> set softwrap on

Cliboard

> set clipboard terminal - I don't know what this does nor what the default value is