kwrite

simple text editor from the KDE project

TLDR

Open a text file
$ kwrite [path/to/file]
Open multiple files
$ kwrite [file1] [file2]
Open with specific encoding
$ kwrite --encoding [UTF-8] [path/to/file]
Open and navigate to specific line and column
$ kwrite --line [line_number] --column [column_number] [path/to/file]

SYNOPSIS

kwrite [options] [file...]

DESCRIPTION

kwrite is a simple text editor from the KDE project. It provides syntax highlighting for many programming languages, code folding, and integration with KDE services.KWrite shares the same editor component (KTextEditor) as Kate, making it a lightweight single-document alternative when full IDE features aren't needed.

PARAMETERS

--encoding ENCODING

Open file with specified character encoding
--line LINE
Navigate to specified line number
--column COLUMN
Navigate to specified column number
--stdin
Read document from stdin
-h, --help
Display help message

INSTALL

sudo apt install kwrite
sudo dnf install kwrite
sudo apk add kwrite
sudo zypper install kwrite

CAVEATS

Requires KDE Frameworks libraries. Single-document editor only; for multiple documents and sessions, use kate instead. Available in the KDE Applications package.

HISTORY

KWrite has been part of KDE since the early versions, providing a simple but capable text editor for the KDE desktop environment.

SEE ALSO

kate(1), gedit(1), nano(1)