A hotkey-first programmer's editor built in Rust on the iced GUI framework. Scitano combines the menu structure of SciTE, strict GNU nano hotkeys, and Geany-inspired sidebar and context features into a single unified editing environment with a VS Code Dark+ visual overhaul.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-30 05:38:45 -04:00
src scitano 2.1.0 2026-10-30 05:38:45 -04:00
build.sh A hotkey-first programmer's editor built in Rust on the iced GUI framework. Scitano combines the menu structure of SciTE, strict GNU nano hotkeys, and Geany-inspired sidebar features into a single unified editing environment. 2026-07-13 15:02:52 -04:00
Cargo.toml scitano 2.1.0 2026-10-30 05:38:45 -04:00
LICENSE A hotkey-first programmer's editor built in Rust on the iced GUI framework. Scitano combines the menu structure of SciTE, strict GNU nano hotkeys, and Geany-inspired sidebar features into a single unified editing environment. 2026-07-13 15:02:52 -04:00
QUICKSTART.md scitano 2.1.0 2026-10-30 05:38:45 -04:00
README.md scitano 2.1.0 2026-10-30 05:38:45 -04:00
screenshot.png screenshot updated 2026-07-13 15:10:22 -04:00

Scitano 2.1

Jeremy Anderson — info@dcos.net https://git.dcos.net/dcosnet/scitano/

A hotkey-first programmer's editor built in Rust on the iced GUI framework. Scitano combines the menu structure of SciTE, strict GNU nano hotkeys, and Geany-inspired sidebar and context features into a single unified editing environment with a VS Code Dark+ visual overhaul.

Scitano 2.1 screenshot


What's New in 2.1

  • Nano-style file prompts, zero dialog dependencies — Open, Save As, and ^R Insert use an in-app bottom prompt with Tab completion, ~ expansion, and directory browsing, exactly like GNU nano. No DBus, no portals, no GTK — Scitano's dependency tree contains none of them (iced's auto-detect-theme is disabled because it would pull dark-light/zbus)
  • Command-line file opening — scitano file.rs [more files...] opens files at startup, so Scitano can be set as a MIME handler in a file browser (double-click a file to edit it). Invalid arguments are reported on stderr; with files supplied the sample buffers are skipped
  • Undo/Redo — full-buffer history per tab (^Z / ^Y), bounded to 200 snapshots / 10 MB, shared by every editing path including the kill-ring
  • Unsaved-changes protection — closing a modified tab or exiting with modified buffers shows a Save & Close / Discard / Cancel strip instead of silently destroying work
  • Async build system — Compile, Build & Run, Run, Lint, Aider model sync and spell check run on the task pool; the UI never freezes
  • Working Word Wrap toggle — the editor now actually switches between Wrapping::Word and Wrapping::None
  • Strict-nano hotkey fix — ^X closes the tab; the text editor's native Cut binding on Ctrl+X is suppressed, so closing a buffer can no longer cut your selection
  • Working Edit menu — Delete/Duplicate/Transpose Line, Comment/Uncomment Line (per-language tokens), Increase/Decrease Indent, Upper/Lower Case, Insert Timestamp, Select All, Match Brace
  • Find & Replace — select text + ^W finds the next occurrence (wraps); F3 repeats; ^\ replaces all occurrences via a two-step prompt; Replace Next handles one at a time; ^_ jumps to a selected line number
  • Real sessions — File > Save Session writes open file paths to ~/.config/scitano/session.txt; Load Session restores them
  • Working bookmark navigation — bookmarks toggle at the cursor line; Next/Prev Bookmark jump between them
  • Clickable symbol tree — clicking a symbol moves the cursor to its definition line
  • Escape closes menus; Alt+char no longer types into the buffer
  • Honest stubs — unimplemented menu items log sys> '...' is not implemented yet. instead of failing silently
  • Clippy-clean — zero warnings under the project's own SEI CERT/MISRA-aligned [lints.clippy] configuration, plus 16 unit tests covering the pure logic (log bounding, date math, find/replace, prompt editing, menu dispatch, CLI file opening)

Carried over from 2.0

  • VS Code Dark+ visual overhaul, data-driven menu/build tables, bounded chat log, argument-vector-only build commands.

Features

  • Strict Nano Hotkeys — ^K/^U kill-ring, ^O writeout, ^X exit, ^W search, and more — faithful to GNU nano behavior
  • SciTE-Style Menus — File, Edit, Search, View, Build, Tools, Syntax, Options, Help, and AI menus across the top
  • Geany-Inspired Sidebar — Symbol tree auto-parses fn, struct, impl, enum, trait, class, def, mod, and macro_rules! definitions; click to jump
  • Multi-Tab Editing — Multiple buffers with dirty indicators (●), right-click close (with dirty check), and + to create new tabs
  • Syntax Highlighting — 50+ file extensions across 20+ languages with manual override via the Syntax menu
  • Dual Highlight Tones — CandyPop (Base16 Ocean) and Matte (Base16 Mocha) switchable from the View menu
  • Bottom Panel — Messages, Diagnostics, Build Logs, and AI Terminal panes with color-coded prefix output; toggleable via View
  • Right-Click Context Menu — Quick access to Save, Close, Build, Lint, Comment/Uncomment, and case transforms
  • Build Integration — Compile-only, build-and-run, run-only, and lint with output routed to the Build Logs / Diagnostics panes
  • AI Bridge — Aider model discovery integration point for AI-assisted editing
  • Structured Status Bar — File name, dirty state, syntax, bookmark count, wrap mode, encoding, line endings
  • Footer Hotkey Bar — Persistent nano hotkey reference always visible at the bottom

Quickstart

Prerequisites

  • Rust 1.75+ (edition 2021)
  • A system display server (X11 or Wayland with XWayland)
  • For linting: shellcheck, python3, gcc/g++, rustc, node (as needed per language)

There are no DBus, portal, or GTK dependencies — file dialogs are an in-app prompt.

Build

git clone https://git.dcos.net/dcosnet/scitano.git
cd scitano
cargo build --release

Or use the included build script (disables incremental compilation):

./build.sh

The release binary will be at target/release/scitano.

Run

./target/release/scitano                 # sample buffers
./target/release/scitano src/main.rs     # open specific files

Command-line files are how file browsers launch Scitano when it is set as a MIME handler (double-click → edit). See "File browser integration" below.

Install (system-wide)

cargo install --path .

See QUICKSTART.md for detailed setup instructions.

File browser integration (MIME handler)

To make "open with Scitano" (double-click) work in a file browser, install a desktop entry pointing at the binary with %f:

# ~/.local/share/applications/scitano.desktop
[Desktop Entry]
Type=Application
Name=Scitano
Exec=scitano %F
Terminal=false
Categories=Development;TextEditor;
MimeType=text/plain;text/x-rust;text/x-python;text/x-csrc;text/x-c++src;

Then set Scitano as the default for a file type (xdg-mime default scitano.desktop text/x-rust) or use the file browser's "Open With" dialog. Every path passed on the command line is opened in its own tab; the first file is active.

The bottom prompt

File operations use a GNU nano-style prompt above the footer bar:

  • Enter confirms; Esc cancels
  • Tab completes the path against the real filesystem (unique matches are filled in; ambiguous matches show their common prefix and list options in the Messages pane)
  • Typing a directory path and pressing Enter enters it and lists its contents
  • ~ expands to your home directory; Left/Right/Home/End edit the line; ^V pastes from the clipboard

Hotkey Reference

All hotkeys follow GNU nano conventions. ^ denotes Ctrl.

Core Nano Hotkeys

Key Action Description
^G Help Display the quick-reference hotkey list in the Messages pane
^O WriteOut Save the current buffer to disk
^X Exit Close the current tab (prompts when modified)
^K Kill Line (Cut) Kill text from cursor to end of line; consecutive presses accumulate into the kill-ring
^U Unkill (Paste) Insert the entire kill-ring at the cursor
^C Cursor Position Show buffer info in Messages; also copies the selection to the system clipboard
^W Where Is Search for the selected text (wraps); with no selection, opens the Search menu
^_ Go To Line Select a line number, press ^_ to jump
^R Read File Insert a file's contents at the cursor (file dialog)
^Z Undo Undo the last edit
^Y Redo Redo the last undone edit
^J Justify Not implemented yet (logs)
^T Spell Check Pipes the buffer through aspell list (requires system aspell)
^B Build & Run Save, compile (if applicable) and run the current file
^L Lint Lint the current file into the Diagnostics pane
^\ Replace Replace all occurrences: search prompt, then replacement prompt

Cursor Movement

Key Action
^A Select All (iced native)
^E Move to end of current line
^D Delete character at cursor
^V Paste system clipboard (iced native)
Home/End, PageUp/PageDown, arrows Native editor motions

Function Keys

Key Action
F3 Open Selected / open file dialog
F5 Run the current file
Esc Close the open menu
F11 Full screen — not supported by the current iced windowing API

Mouse

Action Effect
Click symbol in sidebar Jump to the symbol's line
Right-click on tab Close that tab (prompts when modified)
Right-click in editor Open context menu (Save, Build, Lint, Comment, etc.)

Kill-Ring Behavior (^K / ^U)

The kill-ring faithfully replicates GNU nano's cut/paste model:

  1. Mid-line ^K — kills text from the cursor to the end of the line. Cursor stays in place.
  2. End-of-line ^K — kills the newline, joining with the next line.
  3. Empty-line ^K — removes the line by joining with the next.
  4. Last-line ^K — no-op at the end of the final line.
  5. Consecutive ^K — each press appends to the same kill-ring entry.
  6. ^U (yank) — inserts the full kill-ring and advances the cursor; resets the kill chain.
  7. Chain breaking — any non-^K action resets the accumulation.

Kill and yank operations participate in undo/redo history.


Menu Structure

File

New · Open (F3) · Open Selected · ^O WriteOut (Save) · Save As... · ^X Close Tab · Reload File · Save Session · Load Session · Print... · Exit App

Implemented: New, Open, Open Selected, WriteOut, Save As, Close Tab, Reload File, Save/Load Session, Exit App (with dirty check). Print... is a stub that logs.

Edit

Undo (^Z) · Redo (^Y) · ^K Kill Line (Cut) · ^U Unkill (Paste) · ^C Cur Pos · ^A Select All · Delete Line · Duplicate Line · Transpose Line · Match Brace · Comment Line · Uncomment Line · Increase Indent · Decrease Indent — all implemented.

^W Where Is (Find) · Find Next (F3) · Find Previous (Shift+F3) · ^\ Replace · Replace Next · Go To Line (^_) · Toggle Bookmark (^B) · Next Bookmark · Prev Bookmark · Clear All Bookmarks — all implemented (search/replace are selection- and prompt-driven; bookmarks toggle at the cursor line and have no gutter rendering yet).

View

Toggle Message Window · Toggle Sidebar · Word Wrap · Toggle Syntax Tone — implemented. Toggle Full Screen (F11), Toggle Line Numbers (no gutter rendering yet), Toggle Whitespace, Toggle Line Endings, Fold All, Unfold All, Toggle Current Fold are stubs.

Build

Compile · Build · ^B Build & Run · Run (F5) · ^L Lint Syntax · Clear Output — implemented (async). Stop Executing, Next Message, Previous Message are stubs.

Tools

Run Command..., Run Lua Script (F5) — stubs.

Syntax

Manual override for 18 languages plus Clear Override — implemented.

Options

All four items are stubs (config file persistence is not wired).

Help

^G Help · About — implemented.

AI

Sync Aider Models — implemented (async probe of aider --list-models ollama). The remaining Aider/Hermes/Odysseus items log and switch to the AI Terminal pane.


Supported Languages

Syntax highlighting is auto-detected by file extension. Manual override is available via the Syntax menu.

Extension Language Extension Language
.rs Rust .rb Ruby
.py .pyw Python .php .phtml PHP
.c .h C .java Java
.cpp .hpp .cc .cxx .hxx C++ .cs C#
.sh .bash .zsh .command Shell .sql SQL
.js .mjs .cjs JavaScript .r R
.ts .tsx TypeScript .lua Lua
.md .markdown Markdown .pl .pm Perl
.html .htm .xhtml HTML .ex .exs Elixir
.css .scss .sass .less CSS .hs Haskell
.json JSON .scala Scala
.xml XML .swift Swift
.yaml .yml YAML .kt .kts Kotlin
.toml TOML .dart Dart
.ps1 .psm1 PowerShell .bat .cmd .dosbat Batch
.conf .cfg .ini .service .target Config/INI .vbs .vbe VBScript
Dockerfile / Containerfile Dockerfile .go Go
Makefile Makefile Nginx configs Nginx
*.rc files Shell Apache/httpd configs Apache

Build & run support: Rust (rustc + run binary), C/C++ (gcc/g++ + -lm for C), Python, Shell, JavaScript (Node), Go, Ruby, Lua, Perl. Compile/lint additionally covers the languages in the tables in src/main.rs. File paths travel as single argv entries — spaces in paths are safe.


Project Structure

scitano/
├── Cargo.toml          # Package manifest (iced 0.13, iced_core, rfd, edition 2021, GPLv2)
├── Cargo.lock          # Dependency lockfile
├── LICENSE             # GPLv2 full text
├── build.sh            # Release build script (CARGO_INCREMENTAL=0)
├── QUICKSTART.md       # Detailed setup and usage guide
├── screenshot.png      # Application screenshot
├── README.md           # This file
└── src/
    ├── main.rs         # App state, menu/action dispatch, async build system, UI layout
    ├── editor.rs       # EditorTab: buffer model, undo/redo, line ops, file I/O, symbol parsing
    ├── config.rs       # User configuration (tab width, wrap, auto-save) with validation
    └── theme.rs        # VS Code Dark+ palette, data-driven container/button style factories

Coding Standards Applied

  • SEI CERT — Bounded memory (chat log, undo history), input validation, no shell construction, argument-vector-only commands, bounds-checked table access (get/get_mut)
  • MISRA — Data-driven dispatch tables instead of nested if/else, saturating/euclid arithmetic throughout
  • Clippy-clean — zero warnings under the project's 10-rule [lints.clippy] configuration
  • Tested — cargo test covers log bounding, civil-date math, find positions, and run-command resolution (spaces in paths)

Known Limitations

  • Find is selection-driven (select text, press ^W); there is no interactive search-query prompt yet. ^\ replace uses its own two-step prompt
  • Bookmarks toggle at the cursor line but have no gutter markers
  • Line numbers, code folding, and full screen are not available (iced 0.13 windowing/API limits)
  • Configuration is not persisted (~/.config/scitano/config.toml is future work); Options menu items are stubs
  • Timestamps are UTC (no timezone database dependency)
  • Session files store absolute paths, one per line, at ~/.config/scitano/session.txt

License

GPLv2 — see LICENSE for the full text.

Jeremy Anderson — info@dcos.net — https://git.dcos.net/dcosnet/scitano/