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

acme/Watch: Add -X flag #96

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

acme/Watch: Add -X flag #96

wants to merge 1 commit into from

Conversation

mibk
Copy link

@mibk mibk commented Feb 17, 2022

This is a prove-of-concept of a feature I often find useful. I'm
wondering whether others would find this useful as well.

Feel free to close this pull request if this is a non-goal of the
Watch command.

It is sometimes useful to watch

 1. only a single file or
 2. every file in Acme.

The “-X regexp” option is analogous to Edit X/regexp/. The idioms
for the use cases above are:

 1. Watch -X $% cmd…
 2. Watch -X . cmd…

I've considered adding the complementary -Y flag, but it seemed less useful.
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.

1 participant