Skip to content
Projekte

รœber uns

๐ŸŽฎ Master Helix editor keybindings through interactive practice. Scenarios, arcade mode, quests & streaks. Build muscle memory the fun way.

Entwicklerwerkzeuge

So werden diese Zahlen gemessen

What you can do

  • Smart Scenario Discovery โ€” Filter by category, difficulty, commands, or completion status with 6 sort modes
  • Rich Metadata โ€” Every scenario tagged with category, difficulty, taught commands, and practice focus
  • Syntax Highlighting โ€” Realistic Rust code snippets with proper highlighting
  • Real Helix Accuracy โ€” Uses official helix-core library (v25.07.1)

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
Verlauf wird gesammelt

Nettoรคnderungen in รผberlappenden Zeitrรคumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualitรคt.

README.md

Original

Helix Trainer

CI Status codecov License: MIT Rust Release unsafe forbidden

Master Helix editor keybindings through scientifically-optimized spaced repetition and gamified training.

Stop learning commands in isolation. Train real development workflows with FSRS-powered spaced repetition (20-30% faster mastery), daily quests, XP progression, and anti-farming mechanics that ensure genuine skill development.

Training Mode Demo

[!IMPORTANT] 100% Offline & Privacy-First โ€” No internet required, no telemetry, no cloud sync. All data stays on your machine in the helix-trainer folder of your OS config directory (~/.config/ on Linux and macOS, %AppData% on Windows). On macOS, files from the former ~/Library/Application Support/helix-trainer/ are copied once, per file, into ~/.config/helix-trainer/ on first start; the old files are left in place, so older versions keep using the old directory

Features

Smart Learning System

  • FSRS Spaced Repetition โ€” 20-30% fewer reviews than traditional methods (research-proven)
  • Interactive Review Sessions โ€” Practice due commands with instant feedback and XP rewards
  • Scenario Mastery Tracking โ€” Three-tier progression (Learning โ†’ Proficient โ†’ Mastered) with graduated XP scaling
  • Daily Quest System โ€” Duolingo-style challenges with streak tracking
  • Anti-Farming Protection โ€” Session penalties prevent XP exploitation
  • Profile & Statistics โ€” Track your progress, view mastery levels, and see performance analytics
Player ProfileStatistics

Game Modes

Arcade Mode

Three distinct game modes for varied training experiences:

  • Arcade Mode โ€” 60-second timed sessions with 3 lives and streak multipliers up to 5x
  • Survival Mode โ€” One life, escalating difficulty, endless challenge until you fail
  • Daily Challenge โ€” Fixed daily scenarios with consistent difficulty for fair competition

All modes feature:

  • FSRS-Powered Selection โ€” Prioritizes scenarios with commands you need to practice
  • Audio Feedback โ€” Sound effects for correct/incorrect answers and game events (toggle with M key)
  • Streak Multiplier โ€” Build combos for consecutive completions
  • XP Integration โ€” Per-scenario XP awards with streak bonuses
  • Pause & Resume โ€” Access profile/stats mid-game

Training Features

Training Mode scenario list with daily quests
  • Smart Scenario Discovery โ€” Filter by category, difficulty, commands, or completion status with 6 sort modes
  • Rich Metadata โ€” Every scenario tagged with category, difficulty, taught commands, and practice focus
  • Syntax Highlighting โ€” Realistic Rust code snippets with proper highlighting
  • Real Helix Accuracy โ€” Uses official helix-core library (v25.07.1)
  • 95+ Commands โ€” Movement, editing, clipboard, undo/redo, repeat, surround, text objects, multi-cursor, registers, macros
  • 160 Training Scenarios โ€” From basics to intermediate workflows with difficulty indicators
  • 70 Daily Quests โ€” Easy, medium, and hard challenges across all commands
  • 100% Offline โ€” No cloud, no tracking, all data stays local (OS config directory, helix-trainer/ subfolder)
  • Arrow Key Navigation โ€” Optional enable_arrow_keys_in_normal_mode configuration for cursor movement
  • Custom Keymap Support โ€” Optional use_helix_keymap configuration trains against your own Helix config.toml remaps instead of the stock keymap (gameplay only โ€” see Custom Helix keymap)

Installation

[!NOTE] Requirements: Terminal with Unicode support. No additional dependencies needed for pre-built binaries.

Pre-built binaries (recommended)

Install script

Downloads the right archive for your platform, verifies its SHA-256 checksum, and installs the binary:

# Linux/macOS โ€” installs to ~/.local/bin
LATEST_TAG=$(curl -fsSLI -o /dev/null -w '%{url_effective}' https://github.com/bug-ops/helix-trainer/releases/latest | sed 's#.*/tag/##')
(T="$(mktemp)" && trap 'rm -f "$T"' EXIT && curl -fsSL "https://raw.githubusercontent.com/bug-ops/helix-trainer/${LATEST_TAG}/scripts/install.sh" -o "$T" && sh "$T")
# Windows โ€” installs to %LOCALAPPDATA%\helix-trainer\bin
$ErrorActionPreference = "Stop"
$latest = (irm https://api.github.com/repos/bug-ops/helix-trainer/releases/latest).tag_name
$installScript = Join-Path ([System.IO.Path]::GetTempPath()) ([System.IO.Path]::GetRandomFileName())
irm "https://raw.githubusercontent.com/bug-ops/helix-trainer/$latest/scripts/install.ps1" -OutFile $installScript
& $installScript
Remove-Item $installScript

Both one-liners resolve and pin to the latest release tag before fetching the script, instead of fetching from the mutable main branch ref; download it to a freshly-generated temp file before running it, so a failed download aborts instead of silently running nothing; and use mktemp/GetRandomFileName() rather than a fixed, predictable path, which in a world-writable directory like /tmp could otherwise be pre-planted as a symlink to overwrite an unrelated file.

Pin a specific version or install directory:

./scripts/install.sh --version 0.6.2 --dir /usr/local/bin
./scripts/install.sh --static   # Linux: static musl build, no audio feature

[!TIP] Review any install script before piping it into a shell. Read scripts/install.sh / scripts/install.ps1, or download and run it locally instead of piping from curl/irm.

Manual download

Download for your platform from Releases:

Platform Architecture Archive
Linux x86_64 helix-trainer-*-x86_64-unknown-linux-gnu.tar.gz
Linux x86_64 (static) helix-trainer-*-x86_64-unknown-linux-musl.tar.gz
Linux ARM64 helix-trainer-*-aarch64-unknown-linux-gnu.tar.gz
Linux ARM64 (static) helix-trainer-*-aarch64-unknown-linux-musl.tar.gz
macOS Apple Silicon helix-trainer-*-aarch64-apple-darwin.tar.gz
macOS Intel helix-trainer-*-x86_64-apple-darwin.tar.gz
Windows x86_64 helix-trainer-*-x86_64-pc-windows-msvc.zip
Windows ARM64 helix-trainer-*-aarch64-pc-windows-msvc.zip

Extract and run:

# Linux/macOS
tar -xzf helix-trainer-*.tar.gz
cd helix-trainer-*/
./helix-trainer

# Windows: extract .zip and run helix-trainer.exe

[!TIP] Verify checksums with sha256sum -c helix-trainer-*.sha256

Build from source

[!WARNING] Requires Rust 1.98+ (2024 edition). Install via rustup.rs

git clone https://github.com/bug-ops/helix-trainer.git
cd helix-trainer
cargo build --release
./target/release/helix-trainer

Quick start

helix-trainer

[!TIP] First time? Start with Daily Quests! The system intelligently selects scenarios based on your current skill level and schedules reviews using FSRS spaced repetition.

The interactive TUI guides you through:

  1. Training Mode โ€” Manual scenario selection with detailed feedback
  2. Arcade Mode โ€” Fast-paced mini-games with time pressure
  3. Daily Quests โ€” Fresh challenges every day
  4. Progress Tracking โ€” XP, levels, streaks, mastery progression
  5. Performance Analytics โ€” Review calendar, mastery stats

Example training session

Mode Selection
โ”œโ”€ Training Mode
โ”‚  โ”œโ”€ Daily Quests (3 active)
โ”‚  โ”‚  โ”œโ”€ โœ… Practice: Complete 3 scenarios
โ”‚  โ”‚  โ”œโ”€ โณ Learning: Try 2 new scenarios
โ”‚  โ”‚  โ””โ”€ ๐Ÿ”„ Review: 5 cards due
โ”‚  โ”œโ”€ Scenario List (160 available)
โ”‚  โ”‚  โ”œโ”€ Basic Movement (Mastered - 20% XP)
โ”‚  โ”‚  โ”œโ”€ Word Navigation (Proficient - 50% XP)
โ”‚  โ”‚  โ””โ”€ Delete Line (Learning - 100% XP)
โ”‚  โ””โ”€ Profile / Statistics
โ””โ”€ Arcade Mode
   โ”œโ”€ ๐ŸŽฎ Arcade (60s, 3 lives)
   โ”œโ”€ ๐Ÿ’€ Survival (1 life, endless)
   โ””โ”€ ๐Ÿ“… Daily Challenge

Commands supported

Category Commands
Movement h j k l w b e W B E 0 $ ^ gg ge gh gl gs [p ]p Ctrl+b/f/u/d
Find/Till f F t T Alt+.
Match Mode mm (brackets) ms (surround) md (delete surround) mr (replace surround)
Text Objects ma/mi + w W ( [ { < " ' ` p
Selection x X v ; , Alt+, % s S Alt+s Alt+; & Alt+- Alt+ C Alt+C K Alt+K
Editing i a I A o O r c Alt+c d Alt+d J Alt+J > < ~ </kbd> <kbd>Alt</kbd>+<kbd> R Alt+x Ctrl+c (toggle comment)
Clipboard y p P
Registers "a-z prefix on y/p/P/R/d/c (named registers) "_ (blackhole, discards writes)
Macros Q (record/stop) q (replay)
Command-line : then goto N / g N (jump to line)
Search / ? n N Alt+
View z zz zt zb zm zj zk
Undo/Redo u U Ctrl+r
Repeat . (repeat last action)
Count Prefix 3h 5j 2w (execute N times)
Insert Mode Text input, Backspace, arrow keys, Esc
Arrow Keys (optional) โ† โ†’ โ†‘ โ†“ for cursor movement in Normal mode via enable_arrow_keys_in_normal_mode

All commands powered by helix-core v25.07.1 for 100% accuracy.

Custom Helix keymap (optional)

If you've remapped keys in your own Helix config.toml, the trainer can train against your bindings instead of the stock ones. Opt in by setting use_helix_keymap: true in the trainer's config.json (~/.config/helix-trainer/ on Linux and macOS, %AppData%\helix-trainer\ on Windows):

{
  "config": {
    "use_helix_keymap": true
  }
}

When enabled, the trainer reads $XDG_CONFIG_HOME/helix/config.toml or ~/.config/helix/config.toml (%AppData%\helix\config.toml on Windows) โ€” the same file Helix itself reads โ€” at startup and translates your gameplay keypresses through it โ€” [keys.normal] remaps, plus nested [keys.normal.g]/[keys.normal.m]/[keys.normal.z]/[keys.normal.[]/[keys.normal.]] minor-mode remaps. Unsupported forms (key sequences, @-macros, :-typable commands, minor-mode relocation to a different prefix) are reported via a startup notification rather than silently ignored.

This is gameplay-only: menus, results, filter screens, and scenario hint prose always use the stock keymap (j/k/gg), even with a custom keymap active, since remapping trainer UI chrome would break the canonical command identity FSRS review history depends on. A malformed config, a missing file, or an oversized/excessive config falls back to the stock keymap without blocking startup.

A handful of keys are reserved by the trainer's own UI and intercepted before gameplay dispatch, so remapping onto them has no effect: F1 (the only hint key; ? is Helix's backward search) and Ctrl+Q everywhere, plus Ctrl+N while a corrupt profile is quarantined; in Arcade mode, also Esc, q, m, p, s, a, and M while paused or on the game-over screen.

macOS Terminal.app and other non-kitty terminals

The Option-composed Alt+s chord is unreachable on macOS terminals that don't implement the kitty keyboard protocol (Terminal.app is the common case). This is an accepted trade-off, not a bug: the same physical key also types a plain, directly-typeable character on other keyboard layouts (e.g. รŸ on German QWERTZ), and a KeyEvent alone can't tell the two apart, so the trainer no longer guesses. (Alt-c (change_selection_noyank) has the same Terminal.app reachability gap and the same remap workaround described below.)

Two ways around it:

  • Switch to a kitty-protocol-capable terminal (Kitty, WezTerm, Ghostty, iTerm2 with the beta protocol enabled), or enable "Use Option as Meta key" in your terminal's settings if it offers one.

  • Remap the affected command to a key your terminal delivers unambiguously, using the custom keymap above. For example, to reach split_selection_on_newline (bound to Alt-s) via Ctrl+y instead:

    [keys.normal]
    "C-y" = "split_selection_on_newline"
    

    The trainer resolves the command name to the same canonical Alt-s a real keystroke would produce, so this completes any scenario that asks for Alt-s. Since this is the same config.toml real Helix reads, the remap also applies inside Helix itself โ€” pick a key that isn't already meaningful to you there; C-y is unbound upstream, unlike e.g. C-s (save_selection).

Why this project exists

Traditional editor tutorials teach commands. Real development requires workflows.

Most Helix tutorials:

  • Teach xd (delete line) in isolation
  • Show w (next word) on synthetic text
  • Stop at "congratulations, you know the basics!"

Real development requires:

  • Navigate to failing test โ†’ jump to implementation โ†’ fix bug โ†’ stage changes โ†’ commit
  • Refactor function across 3 files using LSP
  • Debug by jumping between error logs and source code

Helix Trainer bridges this gap through:

Scientifically-optimized learning (FSRS)

  • 20-30% fewer reviews than traditional spaced repetition
  • 99.6% better accuracy than older algorithms (tested on 350M+ reviews)
  • Identifies YOUR weaknesses and schedules smart practice
  • Same algorithm as Anki 23.10+ (research-proven)

Scenario mastery system

Prevents XP farming while ensuring genuine skill development:

  • Three-tier progression: Learning (100% XP) โ†’ Proficient (50% XP) โ†’ Mastered (20% XP)
  • Session spam protection: Same-day penalties (100% โ†’ 70% โ†’ 30%)
  • Bounded tracking: 10,000 scenario limit with validation
  • Performance benchmarks: <1ms XP calculations, ~288 bytes per scenario

Gamification that works

Duolingo-proven mechanics:

  • Daily quests with fresh challenges
  • Streak tracking with loss aversion
  • XP & levels (exponential scaling)
  • Achievements for milestones

Privacy-first architecture

  • No cloud services, no internet required
  • All data stored locally (OS config directory, helix-trainer/ subfolder)
  • No telemetry, tracking, or data collection
  • Your learning stays on your machine

Technology stack

Component Library
TUI Framework ratatui
Terminal I/O crossterm
Async Runtime tokio
Editor Core helix-core
Spaced Repetition fsrs
Audio rodio
Syntax Highlighting syntect
Large Text tui-big-text

Contributing

Contributions welcome! See CONTRIBUTING.md for:

  • Development setup and workflow
  • Code standards and quality checks
  • Pull request process
  • Testing requirements

[!CAUTION] Zero-Tolerance Quality Standards: All PRs must pass clippy (with -D warnings), tests, and formatting checks. CI enforces these automatically.

Quick contributor setup:

git clone https://github.com/bug-ops/helix-trainer.git
cd helix-trainer

cargo +nightly fmt
cargo nextest run
cargo clippy --all-targets --all-features -- -D warnings
cargo build --release

Documentation

FAQ

Why not just use :tutor in Helix?

:tutor is excellent for one-time learning. Helix Trainer adds:

  • Spaced repetition for long-term retention
  • Gamification for daily habit formation
  • Progress tracking and analytics
  • Multiple game modes for varied practice

They're complementary tools, not competitors.

Why FSRS instead of traditional spaced repetition?

FSRS is 20-30% more efficient (research-proven on 350M+ reviews). It's the same algorithm Anki switched to in v23.10+. We use the best available learning science.

Can I use this offline?

Yes, 100% offline. No internet required, all data local, zero telemetry.

Is this only for Helix?

Yes, Helix-specific. While many commands have similar names, Helix uses a different selection-first model. This trainer is designed specifically for Helix editor workflows.

How do I toggle sound on/off?

Press M on the mode selection screen to toggle audio feedback. Sound settings persist across sessions.

Acknowledgments

Inspired by Helix's built-in :tutor and decades of learning science research.

License

Licensed under MIT โ€” see LICENSE for details.

ร„hnliche Projekte entdecken

Wird geladenโ€ฆ