Skip to content

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