HookAnchor - README

HookAnchor

A powerful command launcher for macOS that provides instant access to applications, files, URLs, and custom commands through a fast fuzzy-search popup.

Documentation

User Guide

Start here! Complete installation and usage guide: - Installation and setup - Keyboard triggers (Caps Lock, shortcuts) - Basic navigation and search - Command types and usage - Creating custom commands - Troubleshooting

Configuration Reference

Complete reference for ~/.config/hookanchor/config.yaml: - All settings explained - Actions and templates - Keyboard bindings - JavaScript functions - Complete examples

Action Types

Reference for all available action behaviors: - Complete list of action types - Arguments and parameters for each type - Grabber support information - Configuration examples

Templates and Scripting

Advanced features for power users: - Template system with variables - JavaScript automation - Custom workflows - Integration examples

Template Variables

Variable reference for templates: - Object-based variables (v0.10.0+) - Context variables - Date/time formatting - Examples

Quick Reference

Key Concepts

Common Actions

Action Description Example
app Launch application Terminal : app; Terminal
url Open website GitHub : url; https://github.com
folder Open folder Downloads : folder; ~/Downloads
cmd Run shell command Build : cmd; npm run build
markdown Open markdown file Notes : markdown; ~/notes/daily.md
anchor Project anchor Project : anchor; ~/projects/my-project/README.md

Keyboard Shortcuts

Key Action
Enter Execute selected command
Esc Close popup
↑↓←→ Navigate commands
; Edit selected command
= Create/edit command from input
/ Show command in Finder
? Show keyboard shortcuts
! Create sub-anchor
> Create alias

Template Keys

Key Template Purpose
! sub_anchor Create sub-anchor of last command
& sub_markdown Create markdown in last folder
> alias Alias to last executed command
+ grab Capture window/app info

Configuration Files

File Purpose
~/.config/hookanchor/config.yaml Main configuration
~/.config/hookanchor/commands.txt Command definitions
~/.config/hookanchor/state.json Runtime state
~/.config/hookanchor/anchor.log Debug logs

Version History

Current version: 0.20.0

See Changelog on GitHub for complete history.