vweevers / hallmark

Markdown Style Guide, with linter and automatic fixer.
GNU General Public License v3.0
30 stars 3 forks source link

Add watch mode #88

Closed vweevers closed 2 years ago

vweevers commented 2 years ago

With a new option called --watch. For example, hallmark cc add major --watch (using a subcommand as proposed in #84) would add a new major release to the changelog and then watch for file changes, fixing your edits live. Though it does depend on your editor doing the same.

Similarly, hallmark fix --watch would watch any markdown file. Making hallmark cc add major --watch the same as hallmark cc add major && hallmark fix --watch. Perhaps a subcommand like hallmark watch would be better, unless there's also merit in implementing hallmark lint --watch.

vweevers commented 2 years ago

Though it does depend on your editor doing the same.

Did a quick POC, and that fact is problematic. Would work better as an editor plugin. I don't want to go there atm.