tldr/pages/common/micro.md

34 lines
617 B
Markdown
Raw Normal View History

2018-01-26 08:59:25 +00:00
# micro
> Micro is a modern and intuitive terminal-based text editor.
> You can use your keyboard, but also your mouse to navigate and/or select text.
2019-06-04 10:25:09 +01:00
> More information: <https://micro-editor.github.io>.
2018-01-26 08:59:25 +00:00
- Open a file:
`micro {{file}}`
2021-11-17 14:46:04 +00:00
- Save a file:
`Ctrl + S`
2018-01-26 08:59:25 +00:00
- Cut the entire line:
`Ctrl + K`
- Search for a pattern in the file (press `Ctrl + N`/`Ctrl + P` to go to next/previous match):
`Ctrl + F "{{pattern}}" <Enter>`
- Execute a command:
`Ctrl + E {{command}} <Enter>`
- Perform a substitution in the whole file:
`Ctrl + E replaceall "{{pattern}}" "{{replacement}}" <Enter>`
- Quit:
`Ctrl + Q`