Skip to content

zellij, yazi with nushell/lua/nix scripting add a File Tree to Helix or your prefered editor. An IDE-like experience, in the terminal

License

Notifications You must be signed in to change notification settings

luccahuguet/yazelix

Repository files navigation

Yazelix v9

Yazelix Logo

Preview

v8: yazelix_v8_demo

v8.5 with zjstatus: yazelix_v8_5_example

Overview

Yazelix integrates Yazi, Zellij, and Helix, hence the name, get it?

  • Use your preferred shell: Bash, Fish, Zsh, or Nushell - Yazelix works with all of them
  • Zellij orchestrates everything, with Yazi as a sidebar and your chosen editor (Helix by default)
  • To hide the sidebar, make your pane fullscreen! (Ctrl p + f or Alt Shift f)
  • Every keybinding from Zellij that conflicts with Helix is remapped see here
  • When you hit Enter on a file/folder in the "sidebar":
    • With Helix: If Helix is already open in the topmost pane of the stack, it opens that file/folder in a new buffer in Helix. If Helix isn't open, it launches Helix in a new pane for you. It always finds a running Helix instance if it exists and is in the top pane of the stacked group.
    • With other editors: Opens the file in a new pane with your configured editor
    • It automatically renames the Zellij tab to the file's underlying Git repo or directory name
  • Features include:
    • "Reveal file in sidebar" (press Alt y in Helix to reveal the file in Yazi, Alt y in Yazi to focus Helix, see Keybindings)
    • A Yazi plugin to enhance the status bar in the sidebar pane, making it uncluttered, colorful, and showing file permissions
    • A Git plugin showing file changes in the Yazi sidebar
    • Dynamic column updates in Yazi (parent, current, preview) via the auto-layout plugin, perfect for sidebar use
    • Modular editor support: Use Helix for full integration features, or any other editor via the editor_command setting
  • This project includes config files for Zellij, Yazi, terminal emulators, Nushell scripts, Lua plugins, and a lot of love
  • See boot sequence for details on how Yazelix starts up

Why Yazelix

Yazelix is a reproducible terminal IDE that integrates Yazi + Zellij + Helix. It delivers a consistent, fast β€œsuperterminal” locally or over SSH with zero manual setup: smart pane/layout orchestration, sidebar reveal/open flows, curated packs, and sane defaults. It also solves helix/zellij keybinding conflicts (no need to ever lock zellij), auto‑configures great tools like starship, zoxide, carapace (that normally require editing shell config files), and includes many tools from the Yazelix Collection, like lazygit

It already comes with cool zellij and yazi plugins, some of which I maintain myself

It has features like reveal in Yazi (from Helix) and opening files from Yazi in your configured editor

Supports top terminals (Ghostty, WezTerm, Kitty, Alacritty) and popular shells (Bash, Zsh, Fish, Nushell). Easy to configure via a single Nix file with sensible defaults

Get everything running in less than 10 minutes. No extra dependencies, only Nix

Install once, get the same environment everywhere

Vision

  • Using the terminal should be easy, beautiful, practical and reproducible
  • Good defaults over customization. Have both when possible
  • Yazelix is always on the edge of project versions
  • Yazelix is always evolving, it's a living being
  • What is even Yazelix?
  • Yazelix lets you say I use Yazelix btw
  • Boy, do we Nix
  • Integration, integration, integration
  • Like Omarchy but for your terminal
  • Made with love.

Acknowledgments

See Yazelix Collection for a full list of all projects, tools, and plugins Yazelix integrates, including links to each project and their homepages.

Improvements of v9.5 over v9

  • zjstatus polish: swap layout widget (colored, hide‑if‑empty), colored shell/editor, smarter overlength hiding with tabs prioritized, improved inactive/active tab variants (fullscreen/sync/floating), and cleaner status without tab separators.
  • CLI: new yzx why command for a concise "elevator pitch".
  • Docs: POSIX/XDG paths doc + README link; SSH/Remote section in README.

Full v9 notes moved to Version History: ./docs/history.md

Compatibility

  • Platform: Works on any Linux distribution. Likely works on macOS as well (untested)
  • Terminal: WezTerm, Ghostty, Kitty, or Alacritty
  • Editor: Any editor, but Helix has first-class support (reveal in sidebar, open buffer in running instance, etc). Configure other editors via editor_command setting in yazelix.nix
  • Shell: Bash, Fish, Zsh, or Nushell - use whichever you prefer
  • See the version compatibility table here (generated dynamically!)

Installation

πŸ“– Complete Installation Guide β†’ - Detailed step-by-step setup instructions

Quick Overview: Yazelix uses Nix for reproducible, reliable installations that guarantee everyone gets the exact same tool versions. You don't need to learn Nix - just install it once and forget it exists!

Quick Setup

  1. Install Nix
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
  1. Install Nushell (required)
nix profile add nixpkgs#nushell

Other platforms: see https://www.nushell.sh/book/installation.html

  1. Clone Yazelix
git clone https://github.com/luccahuguet/yazelix ~/.config/yazelix
  1. Install fonts (for Kitty/Alacritty)
nix profile add nixpkgs#nerd-fonts.fira-code nixpkgs#nerd-fonts.symbols-only
  1. Copy terminal config (optional) See Step 5 in installation guide

  2. Launch

nu ~/.config/yazelix/nushell/scripts/core/start_yazelix.nu

Helix Integration

For Helix-Yazi integration, add this to your Helix config (~/.config/helix/config.toml):

[keys.normal]
# Yazelix sidebar integration - reveal current file in Yazi sidebar
A-y = ":sh nu ~/.config/yazelix/nushell/scripts/integrations/reveal_in_yazi.nu \"%{buffer_name}\""

πŸ“– Complete Helix Keybindings Guide β†’ - Recommended keybindings for enhanced editing experience (git blame!)

Version Check

Check installed tool versions:

nu nushell/scripts/utils/version_info.nu

Helix Pane Detection Logic

When opening files from Yazi, Yazelix will:

  • Check the topmost pane and the next two below for a zellij pane named editor (which will be the Helix pane).
  • If Helix is found, it is moved to the top and reused; if not, a new Helix pane is opened.
  • This is need because sometimes when opening a new zellij pane in the pane stack, or deleting one, the editor pane will move around. Most of the times it will move down twice! So the workaround works.

Version History & Changelog

For a detailed history of all major Yazelix version bumps and changelogs, see Version History.

POSIX/XDG Paths

Yazelix respects XDG directories for config, data, state, and cache. See POSIX/XDG Paths for details: ./docs/posix_xdg.md

SSH / Remote

Yazelix shines over SSH: the TUI stack (Zellij, Yazi, Helix) runs cleanly without any GUI, giving you a fully configured, consistent β€œsuperterminal” on barebones hosts (for example, an AWS EC2 instance). The flake delivers the same tools, keybindings, and layouts you use locally, minimizing drift on ephemeral servers.

Customization & Configuration

Yazelix uses a layered configuration system that safely merges your personal settings with Yazelix defaults:

  • Core settings: Edit ~/.config/yazelix/yazelix.nix for shell, editor, terminal, and package preferences
  • Tool customization: Add personal overrides in configs/yazi/personal/ or configs/zellij/personal/ directories
  • Your configs persist across Yazelix updates without git conflicts
  • Intelligent merging: TOML sections merge properly, avoiding duplicate keys and conflicts

πŸ“– Complete Customization Guide β†’ - Detailed instructions for customizing every tool

Editor Configuration

πŸ“ Editor Configuration Guide β†’ - Complete guide for configuring editors

Quick setup:

  • Default (recommended): editor_command = null - Uses yazelix's Helix, no conflicts
  • System Helix: editor_command = "hx" - Requires matching helix_runtime_path
  • Other editors: editor_command = "nvim" - Basic integration, loses Helix features

Alternative: CLI-Only Mode

To use Yazelix tools without starting the full interface (no sidebar, no Zellij), use:

yzx env

This loads all tools (helix, yazi, lazygit, etc.) into your current shell, with Yazelix env vars set and clean messaging.

If you prefer a raw Nix shell, you can use:

nix develop --impure ~/.config/yazelix

Packages & Customization

What Gets Installed: See the full catalog of tools and integrations in the Yazelix Collection: docs/yazelix_collection.md.

  • Essential tools: Yazi (file manager), Zellij (terminal multiplexer), Helix (editor), shells (bash/nushell, plus your preferred shell), fzf, zoxide, Starship
  • Recommended tools (enabled by default): lazygit (or lg), mise, cargo-update, ouch, atuin (shell history manager), etc
  • Yazi extensions (enabled by default): p7zip, jq, poppler, fd, ripgrep (for archives, search, document previews)
  • Yazi media extensions (enabled by default): ffmpeg, imagemagick (for media previews - ~800MB-1.2GB)
  • Environment setup: Proper paths, variables, and shell configurations

Customize Your Installation: If you followed step 3 in the installation guide, you already have your ~/.config/yazelix/yazelix.nix config file ready! You can modify it anytime and restart Yazelix to apply changes. See yazelix_default.nix for all available options and their descriptions.

Terminal Emulator Selection:

  • Ghostty (default): Modern, fast terminal written in Zig with great performance
  • WezTerm: Better image preview support in Yazi, recommended if you need media previews
  • Kitty: Fast, feature-rich, GPU-accelerated terminal
  • Alacritty: Fast, GPU-accelerated terminal written in Rust
  • Configure your preference in yazelix.nix with preferred_terminal = "terminal_name" (options: wezterm, ghostty, kitty, alacritty)

See the full Customization Guide here.


Home Manager Integration

Yazelix includes optional Home Manager support for declarative configuration management. See home_manager/README.md for setup instructions.

Notes

  • The --impure flag in nix develop allows access to the HOME environment variable, necessary for config paths
  • Tweak configs to make them yours; this is just a starting point!
  • For extra configuration, see: WezTerm Docs
  • Add more swap layouts as needed using the KDL files in configs/zellij/layouts
  • Use lazygit, it's great

When should you not use yazelix?

  • If you hate having fun
  • If you suffer from a severe case of nix-allergy

Initializer Scripts

Yazelix auto-generates initialization scripts for Starship, Zoxide, Mise, and Carapace for your configured default shell, regenerated every startup. See docs/initializer_scripts.md for details.

yzx Command Line Interface

πŸ”§ Complete CLI Reference: yzx help - Shell-agnostic command suite

πŸ“– Complete yzx CLI Documentation β†’ - Comprehensive command reference and usage guide

Quick Commands:

  • yzx env - Load Yazelix tools without UI (CLI-only mode)
  • yzx doctor [--verbose] [--fix] - Health checks and diagnostics
  • yzx launch - Launch Yazelix in new terminal window
  • yzx start - Start Yazelix in current terminal
  • yzx info - Show system information and current settings
  • yzx versions - Display all tool versions

Troubleshooting

πŸ” Quick diagnosis: yzx doctor - Automated health checks and fixes

πŸ“– Complete Troubleshooting Guide β†’ - Comprehensive solutions for common issues

VS Code and Cursor Integration

Want to use Yazelix tools (Nushell, zoxide, starship, lazygit) in your VS Code or Cursor integrated terminal? Now it's even easier with yzx env!

Quick Setup:

  1. Open VS Code/Cursor integrated terminal
  2. Run yzx env to load all Yazelix tools without the UI
  3. Enjoy full Yazelix environment in your editor

For more advanced integration options, see our VS Code/Cursor integration guide.

Styling and Themes

Yazelix includes transparency settings and theme configurations for a beautiful terminal experience. The terminal emulator configs include transparency settings you can comment/uncomment, and Helix comes with transparent theme options. See docs/styling.md for customization details.

For Helix themes, you can use transparent themes by editing your Helix config:

# theme = "base16_transparent"
theme = "term16_dark"  # Recommended transparent theme

Layouts

Yazelix includes adaptive layouts that organize your workspace. Use three_column for Claude Code and AI tools, and more. See docs/layouts.md for details and customization.

Keybindings

Keybindings are discoverable in each tool (e.g., ~ in Yazi, ? in lazygit). See docs/keybindings.md for full details, custom keybindings, and usage tips.

I'm Lost! Too Much Information

Start by learning Zellij on its own, then optionally Yazi, and re-read this README afterwards

Contributing to Yazelix

See contributing

About

zellij, yazi with nushell/lua/nix scripting add a File Tree to Helix or your prefered editor. An IDE-like experience, in the terminal

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •