2021-04-27 13:00:35 -03:00
|
|
|
# kate
|
|
|
|
|
2022-11-29 07:48:58 +10:00
|
|
|
> KDE's advanced text editor.
|
2025-05-08 18:52:14 +01:00
|
|
|
> More information: <https://docs.kde.org/stable/en/kate/kate/fundamentals.html#starting-from-the-command-line>.
|
2021-04-27 13:00:35 -03:00
|
|
|
|
2022-11-29 07:48:58 +10:00
|
|
|
- Open specific files:
|
2021-04-27 13:00:35 -03:00
|
|
|
|
2022-11-29 07:48:58 +10:00
|
|
|
`kate {{path/to/file1 path/to/file2 ...}}`
|
2021-04-27 13:00:35 -03:00
|
|
|
|
2022-11-29 07:48:58 +10:00
|
|
|
- Open specific remote files:
|
2021-04-27 13:00:35 -03:00
|
|
|
|
2022-11-29 07:48:58 +10:00
|
|
|
`kate {{https://example.com/path/to/file1 https://example.com/path/to/file2 ...}}`
|
2021-04-27 13:00:35 -03:00
|
|
|
|
2022-11-29 07:48:58 +10:00
|
|
|
- Create a new editor instance even if one is already open:
|
2021-04-27 13:00:35 -03:00
|
|
|
|
2025-05-08 18:52:14 +01:00
|
|
|
`kate {{[-n|--new]}}`
|
2021-04-27 13:00:35 -03:00
|
|
|
|
2022-11-29 07:48:58 +10:00
|
|
|
- Open a file with the cursor at the specific line:
|
2021-04-27 13:00:35 -03:00
|
|
|
|
2025-05-08 18:52:14 +01:00
|
|
|
`kate {{[-l|--line]}} {{line_number}} {{path/to/file}}`
|
2021-04-27 13:00:35 -03:00
|
|
|
|
2022-11-29 07:48:58 +10:00
|
|
|
- Open a file with the cursor at the specific line and column:
|
2021-04-27 13:00:35 -03:00
|
|
|
|
2025-05-08 18:52:14 +01:00
|
|
|
`kate {{[-l|--line]}} {{line_number}} {{[-c|--column]}} {{column_number}} {{path/to/file}}`
|
2021-04-27 13:00:35 -03:00
|
|
|
|
2022-11-29 07:48:58 +10:00
|
|
|
- Create a file from `stdin`:
|
2021-04-27 13:00:35 -03:00
|
|
|
|
2025-05-08 18:52:14 +01:00
|
|
|
`cat {{path/to/file}} | kate {{[-i|--stdin]}}`
|
2021-04-27 13:00:35 -03:00
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
2025-05-08 18:52:14 +01:00
|
|
|
`kate {{[-h|--help]}}`
|