Skip to content

Add functionality to watch a directory and rebuild targets on file changes#24

Open
nleroy917 wants to merge 4 commits into
databio:devfrom
nleroy917:watchdog
Open

Add functionality to watch a directory and rebuild targets on file changes#24
nleroy917 wants to merge 4 commits into
databio:devfrom
nleroy917:watchdog

Conversation

@nleroy917
Copy link
Copy Markdown
Member

@nleroy917 nleroy917 commented Mar 25, 2023

It's nice not to have to worry about continuously hitting Enter when iterating on a piece of writing. So, I added a small feature to the markmeld cli that lets you specify a --watch option for a given target to watch for any file changes in the current directory. (e.g. mm manuscript --watch)

Now, as you make changes and save, markmeld will auto-build your files for you. I suppose that this could actually be annoying if you have many pre-build steps + lots of targets, but it's nice to have when iterating quickly.

This addresses what I raised in #23

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