candat
A terminal IDE with emacs keybindings, built on Textual.
Demo
A full IDE in the terminal — split windows on the same file, live markdown preview, a CSV viewer, and a real shell inside. ▶ Watch with sound (MP4)
Install
From PyPI, as a standalone tool
(recommended — gives you a global candat command in its own isolated
environment):
uv tool install candat
# or, with pipx (needs Python >= 3.10):
pipx install candat
Or with plain pip into the environment of your choice: pip install candat.
To try it once without installing anything permanently: uvx candat.
The development version installs straight from GitHub:
uv tool install git+https://github.com/kavonrtep/candat
Requires Python >= 3.10 and Linux.
Run
candat [FILE|DIR ...]
Passing a directory sets the file-tree root; files are opened in buffers.
Keys (so far)
| Key | Action |
|---|---|
C-x C-f |
find file (opens new file if it doesn't exist) |
C-x C-s |
save buffer |
C-x C-w |
write buffer to another file |
C-x C-q |
toggle read-only (status bar shows %%) |
C-x w |
toggle soft wrap for this buffer |
C-x C-r |
open a file read-only |
C-x k |
kill buffer |
C-x b |
buffer list (Enter switches; next buffer preselected) |
C-x o |
move focus: tree → window(s) → terminal |
C-x 3 / C-x 2 |
split window side-by-side / stacked (same buffer, linked view) |
C-x 0 / C-x 1 |
close this window / the others |
C-x C-c |
quit (confirms if unsaved buffers) |
C-x C-x |
exchange point and mark |
C-x h |
mark whole buffer |
C-x u, C-/, C-z |
undo |
C-f C-b C-n C-p C-a C-e |
char/line movement |
M-f M-b |
word movement |
C-v M-v |
page down / up |
M-< M-> |
beginning / end of buffer |
C-space |
set mark (movement extends region) |
C-k |
kill line (consecutive kills accumulate) |
C-w / M-w |
kill / copy region |
C-y / M-y |
yank / yank-pop |
M-d / M-backspace |
kill word forward / backward |
M-up / M-down |
move current line (or marked block) up / down |
C-s / C-r |
incremental search (smart case, wraps) |
M-% |
query-replace (y/n/!/q) |
C-x g |
project-wide regex search (results list, Enter jumps) |
M-; |
toggle line comment |
C-c C-c |
send region or current line to the terminal REPL |
C-x t |
toggle terminal panel (keys pass through raw; only C-x is reserved) |
Shift+PgUp/PgDn |
terminal scrollback (typing snaps back) |
C-c C-v |
cycle markdown preview: split / preview-only / off |
M-x, Ctrl+Shift+P |
command palette |
C-g / Esc |
cancel chord / prompt / search / mark |
ESC acts as the Meta prefix, so ESC w == M-w, ESC x == M-x, etc.
Tab completes paths in the find-file and write-file prompts, listing the
choices (navigable with arrows, Enter to pick) when more than one matches.
Open files are watched for external changes: clean buffers reload automatically; buffers with local edits ask before discarding them.
.csv and .tsv files open in a table viewer (inspired by
csvlens): a sticky header, row cursor,
and original file line numbers in the gutter. Large files stream in as you
scroll rather than loading whole. In the table: / (or C-s) searches,
n repeats, & filters rows by regex, g/G jump to top/bottom. C-c C-v switches between the table and the raw text. The table is read-only.
The file tree has a filter box on top: press / while the tree is focused (or click it), type to narrow the tree to files whose path matches, Esc clears it. The file tree opens files on selection. The default theme is candat-light
(high-contrast dark-on-white). The markdown preview is linked: it follows
the editor's scroll position.
Development
uv run pytest
Roadmap
Skeleton: tree / tabs / status bar / C-x chords / open & saveEmacs editing: kill ring, C-s/C-r isearch, mark & region, M-x paletteMarkdown mode: side-by-side live preview (debounced)Terminal panel (full PTY: forkpty + pyte)Polish: terminal scrollback, dirty-line rendering, path completion in prompts, buffer list, scroll-synced preview, R/xml/html highlighting
Syntax highlighting covers python, markdown, json, yaml, bash, html, xml,
css, toml, js, sql, go, rust, java, R, and config formats — INI/.cfg/
.conf, Makefiles, Dockerfiles, and shell dotfiles (.bashrc, .env, …).
Metadata
Release files for candat 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| candat-0.7.1.tar.gz | 37.4 kB | Without provenance | Details for candat-0.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| candat-0.7.1-py3-none-any.whl | Python 3 | none | any | Details for candat-0.7.1-py3-none-any.whl |
Total release size: 84.7 kB
Release files / candat-0.7.1.tar.gz
| Download URL | candat-0.7.1.tar.gz |
|---|---|
| Size | 37.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
009a81da27f14e0526438a42cc504d1180927c69fdab1ecf1d9981295906a72a
|
|
BLAKE2b-256 checksum How to use checksums |
57d4e43aad2ea6413ebbeaf55daf5e82c3f0d4a98150d3de74b7ee18cd141714
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / candat-0.7.1-py3-none-any.whl
| Download URL | candat-0.7.1-py3-none-any.whl |
|---|---|
| Size | 47.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
066a0fdd331219be04c88d4f5b05bcc81038f6048ded9dc6644d4b3ec2ec9149
|
|
BLAKE2b-256 checksum How to use checksums |
cc99eb4e4ee8c1edb8021bd5f51cb3f1b23ae651107ef5af848103a6be04d683
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for candat 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.