"Life is all about sharing. If we are good at something, pass it on." - Mary Berry

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

Read More...


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

2023-08-19

Helix as IDE

This post recaps previous series of posts about Helix.

  1. Running code
  2. Jumping to build errors
  3. Quickly select a command and open it in a new pane
  4. Testing a single function
  5. Git integration
  6. File tree
  7. Creating snippets
  8. How to debug?
  9. Interactive global search
  10. 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:

Read More...