2025-03-14 21:59:59 -06:00
|
|
|
# micro
|
|
|
|
|
|
|
|
|
|
> A modern and intuitive terminal-based text editor.
|
|
|
|
|
> You can use your keyboard, but also your mouse to navigate and/or select text.
|
|
|
|
|
> More information: <https://micro-editor.github.io>.
|
|
|
|
|
|
|
|
|
|
- Open a file:
|
|
|
|
|
|
|
|
|
|
`micro {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Save a file:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`<Ctrl s>`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Cut the entire line:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`<Ctrl k>`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
- Search for a pattern in the file (press `<Ctrl n>`/`<Ctrl p>` to go to next/previous match):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`<Ctrl f>{{pattern}}<Enter>`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Execute a command:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`<Ctrl e>{{command}}<Enter>`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Perform a substitution in the whole file:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`<Ctrl e>replaceall "{{pattern}}" "{{replacement}}"<Enter>`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Quit:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`<Ctrl q>`
|