LinuxCommandLibrary

kwrite

simple text editor from the KDE project

TLDR

Open a text file

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

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

CAVEATS

Requires KDE libraries. For a more feature-rich editor with multiple documents and sessions, use kate instead. Some features depend on KDE version.

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community