KGE(1)

NAME
kge - Kyle's Graphical Editor (GUI-first)

SYNOPSIS
kge [ options ] [ files ... ]

DESCRIPTION
kge is the GUI-first build target of Kyle's Text Editor. It shares the same editor core and command model as kte(1), and defaults to the graphical ImGui frontend when available. A terminal (ncurses) frontend is also available and can be requested explicitly with --term or by invoking kte(1). If one or more files are provided, they are opened on startup; otherwise, an empty buffer is created.

OPTIONS

-g, --gui
    Use the GUI frontend (default for kge when built).

-t, --term
    Use the terminal (ncurses) frontend instead of the GUI.

-h, --help
    Display a brief usage summary and exit.

-V, --version
    Print version information and exit.

KEYBINDINGS
The GUI shares the same commands and keybindings as the terminal editor. They are summarized here for convenience. See the ke manual in the source tree for the canonical reference and notes: docs/ke.md

  K-commands (prefix Ctrl-K)

Enter K-command mode with Ctrl-K. Exit K-command mode with ESC or Ctrl-G.

C-k '
    Toggle read-only for the current buffer.

C-k -
    If the mark is set, unindent the region.

C-k =
    If the mark is set, indent the region.

C-k ;
    Open the generic command prompt (": ").

C-k a
    Set the mark at the beginning of the file, then jump to the end of the file.

C-k b
    Switch to a buffer.

C-k c
    Close the current buffer. If no other buffers are open, an empty buffer will be opened. To exit, use C-k q.

C-k d
    Delete from the cursor to the end of the line.

C-k C-d
    Delete the entire line.

C-k e
    Edit (open) a new file.

C-k f
    Flush the kill ring.

C-k g
    Go to a specific line.

C-k h
    Show the built-in help (+HELP+ buffer).

C-k j
    Jump to the mark.

C-k l
    Reload the current buffer from disk.

C-k n
    Switch to the previous buffer.

C-k o
    Change working directory (prompt).

C-k p
    Switch to the next buffer.

C-k q
    Exit the editor. If the file has unsaved changes, a warning will be printed; a second C-k q will exit.

C-k C-q
    Immediately exit the editor.

C-k r
    Redo changes.

C-k s
    Save the file, prompting for a filename if needed.

C-k u
    Undo.

C-k v
    Toggle visual file picker (GUI).

C-k w
    Show the current working directory.

C-k x
    Save the file and exit. Also C-k C-x.

C-k y
    Yank the kill ring.

C-k C-x
    Save the file and exit.

  Other keybindings

C-g Cancel the current operation.

C-a Move to the beginning of the line.

C-e Move to the end of the line.

C-b Move left.

C-f Move right.

C-n Move down.

C-p Move up.

C-l Refresh the display.

C-d Delete the character at the cursor.

C-r Regex search.

C-s Incremental find.

C-t Regex search and replace.

C-h Search and replace.

C-u Universal argument. C-u followed by numbers will repeat an operation n times.

C-w Kill the region if the mark is set.

C-y Yank the kill ring.

ESC <
    Move to the beginning of the file.

ESC >
    Move to the end of the file.

ESC m
    Toggle the mark.

ESC BACKSPACE
    Delete the previous word.

ESC b
    Move to the previous word.

ESC d
    Delete the next word.

ESC f
    Move to the next word.

ESC q
    Reflow the paragraph to 72 columns or the value of the universal argument.

ESC w
    Save the region (if the mark is set) to the kill ring.

ENVIRONMENT

TERM
    Used if the terminal frontend is selected.

LANG, LC_ALL, LC_CTYPE
    Determine locale and character encoding.

FILES

~/.kte/
    Future configuration directory (not yet stabilized).

kge.app
    On macOS, the GUI is built and installed as an app bundle. The command-line wrapper kge may still be available for launching with files.

EXIT STATUS
Returns 0 on success, non-zero on failure.

EXAMPLES

Launch GUI (default) with multiple files:
      kge main.cc Buffer.cc

Open using the terminal frontend from kge:
      kge --term README.md

SEE ALSO
kte(1), docs/ke.md (project keybinding manual)
Project homepage: https://github.com/wntrmute/kte

AUTHORS
Kyle (wntrmute) and contributors.

COPYRIGHT
Copyright © 2025 Kyle. License as per project repository.

NOTES
This page documents kte/kge version 0.1.0.