Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --count flags to list-* commands #444

Closed
nikitabobko opened this issue Aug 22, 2024 · 1 comment
Closed

Add --count flags to list-* commands #444

nikitabobko opened this issue Aug 22, 2024 · 1 comment
Labels
feature-proposal A well defined feature proposal good-first-issue Easy to fix issues. Good for newcomers

Comments

@nikitabobko
Copy link
Owner

E.g. count Alacritty windows on the focused workspace:

$ aerospace list-windows --workspace focused --app-bundle-id org.alacritty --count
1

When the flag is specified commands must print the number of entries instead of printing them all

The flag must conflict with --format flag.

Commands to add --count flags to:

  • list-windows
  • list-workspaces
  • list-apps
  • list-monitors
  • list-exec-env-vars (This command is planned to be dropped in future versions, better not to touch it)

Related: #438

@nikitabobko
Copy link
Owner Author

Released in 0.15.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-proposal A well defined feature proposal good-first-issue Easy to fix issues. Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant