Skip to content

Turning Helix into an IDE with the help of WezTerm and CLI tools

License

Notifications You must be signed in to change notification settings

quantonganh/helix-wezterm

Repository files navigation

helix-wezterm

Turning Helix into an IDE with the help of WezTerm and CLI tools

Helix as IDE

Installation

You can simply download helix wezterm.sh and helix-fzf.sh to ~/.local/bin and then add this directory to your $PATH.

Install via homebrew

$ brew install quantonganh/tap/helix-wezterm

Install via bpkg

$ bpkg install quantonganh/helix-wezterm -g

Usage

./helix-wezterm.sh -h
Usage: ./helix-wezterm.sh <action> [OPTIONS]

Options:
  -h, --help      Display this help message and exit

Available actions:
- blame: Show blame for the current file and line number
- explorer: Open the file explorer
- generate_tests: Generate Go tests for the current file
- lazygit: Open terminal UI for git commands
- lint: Lint the current file
- mock: Generate mocks
- navi: Open an interactive cheatsheet tool
- open: Open the current file and line number in the web browser
- present: Present the current file
- query: Query database
- run: Run the current file
- slumber: Open a HTTP client
- test: Test the current file

Download the configuration file, and place it in either $XDG_CONFIG_HOME if set, or $HOME directory. Customize the file to specify which CLI tool you want to use for each action.

Install the following requirements:

Additionally, it's recommended to install the following CLI tools:

Add the following into ~/.config/helix/config.toml:

[keys.normal.space.","]
b = ":sh helix-wezterm.sh blame"
c = ":sh helix-wezterm.sh check"
e = ":sh helix-wezterm.sh explorer"
g = ":sh helix-wezterm.sh lazygit"
o = ":sh helix-wezterm.sh open"
q = ":sh helix-wezterm.sh query"
r = ":sh helix-wezterm.sh run"
s = ":sh helix-wezterm.sh slumber"
m = ":sh helix-wezterm.sh mock"
n = ":sh helix-wezterm.sh navi"
p = ":sh helix-wezterm.sh present"
t = ":sh helix-wezterm.sh test"

[keys.select.";"]
a = [
    "yank_to_clipboard",
    ":sh helix-wezterm.sh ai"
]

About

Turning Helix into an IDE with the help of WezTerm and CLI tools

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •