Skip to content

feat: add --filter and --tag flags to launch into a pre-filtered list#191

Merged
yimsk merged 1 commit into
clawscli:mainfrom
nick4eva:add-tag-and-filter-flags-support-to-cli
May 30, 2026
Merged

feat: add --filter and --tag flags to launch into a pre-filtered list#191
yimsk merged 1 commit into
clawscli:mainfrom
nick4eva:add-tag-and-filter-flags-support-to-cli

Conversation

@nick4eva
Copy link
Copy Markdown
Contributor

Add CLI flags (and matching startup config keys) to apply a fuzzy filter and/or tag selector at startup, mirroring the in-TUI / and :tag commands so common workflows can be wrapped in shell aliases.

  • -f/--filter : fuzzy filter, equivalent to pressing /
  • --tag [=value]: tag filter, equivalent to :tag (supports key=value, key, key~partial); single condition, matching :tag
  • Both require --service and take precedence over the new startup.filter / startup.tag config keys
  • Show an indicator on the resource list status line for the active fuzzy and/or tag filter, so the effect of --tag (and :tag) is visible
  • Clear the tag filter too when pressing c, so it clears all filters consistently
  • Document the flags, config keys, and updated c binding

Closes #190

Add CLI flags (and matching startup config keys) to apply a fuzzy filter
and/or tag selector at startup, mirroring the in-TUI `/` and `:tag`
commands so common workflows can be wrapped in shell aliases.

- -f/--filter <text>: fuzzy filter, equivalent to pressing `/`
- --tag <key>[=value]: tag filter, equivalent to `:tag` (supports
  key=value, key, key~partial); single condition, matching `:tag`
- Both require --service and take precedence over the new
  startup.filter / startup.tag config keys
- Show an indicator on the resource list status line for the active
  fuzzy and/or tag filter, so the effect of --tag (and `:tag`) is
visible
- Clear the tag filter too when pressing `c`, so it clears all filters
  consistently
- Document the flags, config keys, and updated `c` binding

Closes clawscli#190
@yimsk
Copy link
Copy Markdown
Contributor

yimsk commented May 30, 2026

Thanks for the PR! LGTM. so I’ll include this in the next release.

@yimsk yimsk merged commit ab6d77e into clawscli:main May 30, 2026
3 checks passed
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.

feat: Add support for --filter and --tag arguments for services in cli

2 participants