Git Hooks
The Git Hooks tab displays and manages git hooks — scripts that run automatically at specific points in the git workflow. It can appear as a mode within Git Settings or as a standalone content tab.
Framework Detection
If a hook framework is detected (Husky, pre-commit, or Lefthook), a banner at the top shows the framework name and its configuration file path.
Hooks Directory
The hooks directory info shows:
- Path (clickable — navigates to the directory in the File Browser)
- Config source — whether hooks come from the repo, global, or system config
- A warning if the hooks directory doesn’t exist
Installed Hooks
A table lists all installed hooks with:
| Column | Content |
|---|---|
| Hook name | With a category icon (commit, push, checkout, rebase, other) |
| Status | Active or Disabled badge |
| Source | Framework badge (if detected) |
| Preview | First line of the hook script |
| Actions | View and Toggle buttons |
Viewing Hook Content
Click View to expand an inline code viewer below the row, showing the full hook script with syntax highlighting. Click the file path to open the hook in the File Editor.
Enabling / Disabling Hooks
Click the Toggle button to enable or disable a hook. Disabling renames the file to add a .disabled suffix (with confirmation). Enabling removes the suffix.
Not-Installed Hooks
A collapsed section lists hooks that aren’t currently present in the hooks directory, as a reference for what hooks are available.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| R | Refresh hooks list |