8000 GitHub - AlanSynn/wrk · GitHub
[go: up one dir, main page]

Skip to content
AlanSynnPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

wrk

The blazing fast, zero-config workspace navigator.

wrk unifies your scattered projects into a searchable, structured graph. It replaces ghq, cd, and tree with a single, highly-optimized tool designed for modern development workflows.

License Rust

🚀 Features

  • Zero-Config Start: Automatically detects your workspace roots (~/Workspace, ~/src, ~/wrk).
  • Instant Search: Streaming parallel scanner finds projects in milliseconds.
  • Intelligent Pruning: Skips node_modules, target, and respects .gitignore. Detects projects via markers (Cargo.toml, package.json, Makefile, etc.).
  • TUI Navigation:
    • Vim-like / Arrow keys (h/j/k/l or ←/↓/↑/→).
    • Dracula Theme by default.
    • Inline Interface: Doesn't hijack your terminal context.
  • GHQ Compatibility:
    • wrk get <user/repo>: Clones to structured paths (e.g., github.com/user/repo).
    • wrk list: Outputs paths for pipeline integration (fzf, rofi).

📦 Installation

From Source

# 1. Clone & Build
git clone https://github.com/your/wrk.git
cd wrk
./scripts/install.sh

Shell Integration (Required for cd)

To enable wrk to change your directory, add this to your shell config (.zshrc, .bashrc, .config/fish/config.fish):

Zsh / Bash

source <(wrk shell zsh)

Fish

wrk shell fish | source

PowerShell

wrk shell powershell | Out-String | Invoke-Expression

👩‍💻 Development

Prerequisites

  • Rust (stable)
  • pre-commit (optional, recommended)

Setup Hooks

pre-commit install

This ensures fmt, clippy, and cargo check run before every commit.

⚡ Usage

Interactive Mode

Just type wrk!

wrk          # Launch TUI
wrk <query>  # Launch TUI with initial query

Controls:

  • Type: fuzzy filter.
  • Enter: cd into selection.
  • Space: Open Action Menu (Print, Edit, System Open).
  • Right / Left: Expand / Collapse directories.

Command Line

wrk list               # Dump all project paths (fast!)
wrk get user/repo      # Clone https://github.com/user/repo
wrk get user/repo .    # Clone into current directory
wrk rm <query>         # Fuzzy find & delete a repository
wrk doctor             # Check configuration health

🛠️ Configuration

Stored in ~/.config/wrk/wrk.jsonc. Created automatically on first run.

{
  "roots": [
    "/Users/you/Workspace",
    "/Users/you/Private"
  ],
  "markers": [
    "Cargo.toml",
    "package.json",
    ".git",
    "Makefile"
  ]
}

🤝 Comparison

Feature wrk ghq zoxide
Primary Goal Workspace Navigation Repo Management Directory Jumping
Search Fuzzy List only Frequent/Recent
Structure Hierarchical Tree Flat Flat
Clone Strategy Structured Structured -

📜 License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0