kate1
Advanced text editor by kde
Usage
kate [-s,
--start
name]
[--startanon]
[-n,
--new]
[-b,
--block]
[-p,
--pid
pid]
[-e,
--encoding
name]
[-l,
--line
line]
[-c,
--column
column]
[-i,
--stdin]
[--tempfile]
[file]
Overview
Kate is the KDE Advanced Text Editor.
Kate also provides the editor part for various applications, under the name KWrite.
Some of Kate's many features include configurable syntax highlighting for languages ranging from C and C++ to HTML to bash scripts, the ability to create and maintain projects, a multiple document interface (MDI), and a self-contained terminal emulator.
But Kate is more than a programmer's editor. Its ability to open several files at once makes it ideal for editing UNIX®'s many configuration files. This document was written in Kate.
Options
-
-s, --start name -
Start Kate with a given session.
-
--startanon -
Start Kate with a new anonymous session, implies
-n.
-
-n, --new -
Force start of a new Kate instance (is ignored if
startis used and another Kate instance already has the given session opened), forced if no parameters and no URLs are given at all.
-
-b, --block -
If using an already running Kate instance, block until it exits, if URLs given to open.
-
-p, --pid pid -
Only try to reuse kate instance with this pid (is ignored if
startis used and another Kate instance already has the given session opened).
-
-e, --encoding name -
Set encoding for the file to open.
You can use this to force a file opened in utf-8 format, for instance. (The command iconv -l provides a list of encodings, which may be helpful to you.)
-
-l, --line line -
Navigate to this line.
-
-c, --column column -
Navigate to this column.
-
-i, --stdin -
Read the contents of stdin.
-
--tempfile -
The files/URLs opened by the application will be deleted after use.
file
File to open.
Examples
To open a file named source.cpp at column 15, line 25, in an existing Kate window, you could use:
kate -c 15 -l 25 source.cpp
If you have an active internet connection, you can take advantage of KDE's network transparency to open a file from an FTP site. If you do not have write permission on the remote server, the file will be opened read only and you will be prompted for a local filename to save to if you make changes. If you do have write permission, changes will be saved transparently over the network.
kate ftp://ftp.kde.org/pub/kde/README
Notes
- 1.
-
Kate website
https://kate-editor.org/
Releases
13 releases since Debian 3.0 (Woody); the text changed 10 times.
--block since Debian 7 (Wheezy);
--column since Debian 3.1 (Sarge);
--encoding since Debian 4.0 (Etch);
--line since Debian 3.1 (Sarge);
--new since Debian 7 (Wheezy);
--pid since Debian 4.0 (Etch);
--start since Debian 4.0 (Etch);
--startanon since Debian 7 (Wheezy);
--stdin since Debian 4.0 (Etch);
--tempfile since Debian 9 (Stretch);
-b since Debian 7 (Wheezy);
-c since Debian 4.0 (Etch);
-e since Debian 4.0 (Etch);
-i since Debian 4.0 (Etch);
-l since Debian 4.0 (Etch);
-n since Debian 7 (Wheezy);
-p since Debian 4.0 (Etch);
-s since Debian 4.0 (Etch).
--author until Debian 5.0 (Lenny);
--help until Debian 5.0 (Lenny);
--help-all until Debian 5.0 (Lenny);
--help-kde until Debian 5.0 (Lenny);
--help-qt until Debian 5.0 (Lenny);
--initplugin until Debian 3.1 (Sarge);
--license until Debian 5.0 (Lenny);
--use until Debian 8 (Jessie);
--version until Debian 5.0 (Lenny);
-u until Debian 8 (Jessie);
-v until Debian 5.0 (Lenny);
-w until Debian 3.1 (Sarge).