My Golang IDE: WezTerm, Helix, and CLI Tools
2024-10-10
It’s has been one year from my last post. Today I would like to show how I use Helix as my Golang IDE, powered by WezTerm and collection of CLI tools.
Open Project
I created a simple fish function to pipe all directories in a specific folder into fzf:
function fo --description 'Fuzzy open directory in Helix'
if set -q argv[1]
set searchdir $argv[1]
else
set searchdir $HOME
end
set -l dir (fd --type d . $searchdir | fzf --height=50% --preview 'eza --tree --level=3 --color=always --icons=always {}')
if test -z "$dir"
commandline -f repaint
return 1
end
cd "$dir"
$EDITOR .
end
Turning Helix into an IDE with the help of WezTerm and CLI tools
2023-08-19

This post recaps previous series of posts about Helix.
- Running code
- Jumping to build errors
- Quickly select a command and open it in a new pane
- Testing a single function
- Git integration
- File tree
- Creating snippets
- How to debug?
- Interactive global search
- Opening file in GitHub
1. Running code
In my previous post, I shared a method for running code from within Helix by using this PR.
I later discovered another useful trick here. We can use wezterm cli get-text command to extract the filename and line number from the status line:
Quan Tong