Skip to content

Conversation

@ad-si
Copy link
Owner

@ad-si ad-si commented Jan 14, 2026

Enable users to define their own shortcuts via the config file. This implements feature request #78.

  • Add Shortcut data type to Config.hs with prefix and tag fields
  • Add shortcuts map to Config for storing custom shortcuts
  • Modify CLI parser to dynamically add commands from config shortcuts
  • Update example-config.yaml with shortcut examples
  • Add tests for shortcut parsing and CLI integration
  • Add documentation for built-in and custom shortcuts

Example config:

shortcuts:
  cook:
    prefix: Cook
    tag: cook
  fix:
    tag: fix

With this, tl cook dinner adds task "Cook dinner +cook"

claude and others added 3 commits January 14, 2026 00:48
Enable users to define their own shortcuts via the config file. This
implements feature request #78.

- Add Shortcut data type to Config.hs with prefix and tag fields
- Add shortcuts map to Config for storing custom shortcuts
- Modify CLI parser to dynamically add commands from config shortcuts
- Update example-config.yaml with shortcut examples
- Add tests for shortcut parsing and CLI integration
- Add documentation for built-in and custom shortcuts

Example config:
```yaml
shortcuts:
  cook:
    prefix: Cook
    tag: cook
  fix:
    tag: fix
```

With this, `tl cook dinner` adds task "Cook dinner +cook"
Extend shortcuts to accept either `tag` (single) or `tags` (list).
Both can be combined if specified together.
@ad-si ad-si merged commit 09565db into main Jan 14, 2026
9 checks passed
@ad-si ad-si deleted the claude/implement-feature-78-vEyTT branch January 14, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants