TIL that it’s possible to create a .helix folder inside of a subfolder of a git repository to force Helix to treat it as a workspace.

Background

Helix uses workspaces to decide what files to show in the file picker (<space> f). This is done by traversing the file tree until a .git repository is found. When working with large mono repos this can be annoying in case you only want to work in the realm of a specific subfolder. Even when opening the subfolder explicitly with hx subfolder it will still show the entire files of the parent git repo.