2018-01-26 09:59:25 +01:00
|
|
|
# micro
|
|
|
|
|
2023-11-15 05:25:25 +01:00
|
|
|
> A modern and intuitive terminal-based text editor.
|
2018-01-26 09:59:25 +01:00
|
|
|
> 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 09:59:25 +01:00
|
|
|
|
|
|
|
- Open a file:
|
|
|
|
|
2022-12-04 10:12:49 +01:00
|
|
|
`micro {{path/to/file}}`
|
2018-01-26 09:59:25 +01:00
|
|
|
|
2021-11-17 14:46:04 +00:00
|
|
|
- Save a file:
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<Ctrl s>`
|
2021-11-17 14:46:04 +00:00
|
|
|
|
2018-01-26 09:59:25 +01:00
|
|
|
- Cut the entire line:
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<Ctrl k>`
|
2018-01-26 09:59:25 +01:00
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
- Search for a pattern in the file (press `<Ctrl n>`/`<Ctrl p>` to go to next/previous match):
|
2018-01-26 09:59:25 +01:00
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<Ctrl f>{{pattern}}<Enter>`
|
2018-01-26 09:59:25 +01:00
|
|
|
|
|
|
|
- Execute a command:
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<Ctrl e>{{command}}<Enter>`
|
2018-01-26 09:59:25 +01:00
|
|
|
|
|
|
|
- Perform a substitution in the whole file:
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<Ctrl e>replaceall "{{pattern}}" "{{replacement}}"<Enter>`
|
2018-01-26 09:59:25 +01:00
|
|
|
|
|
|
|
- Quit:
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<Ctrl q>`
|