watchfiles icon indicating copy to clipboard operation
watchfiles copied to clipboard

IDEA: manually or force restart

Open hyzyla opened this issue 2 years ago • 1 comments

I would like to have some command line shortcut to force process restart, for example "CMD+R" or "CTRL+R". Few use case which I have for that feature:

  1. I have a slow laptop and would like to restart the process, only when I finished editing.
  2. I work with translations and I want to restart my project, only when I needed: some translations are worth to test, some not.

What do you think about that? If idea is valid, probably I can implement that feature.

hyzyla avatar Sep 23 '22 08:09 hyzyla

Humm, but how are you going to detect the input?

Would this work when used by a third party app, like uvicorn?

How complex wild the implementation be?

I'm keen if we can do it right.

Maybe create a proof of concept PR, and we'll review from there.

samuelcolvin avatar Sep 23 '22 08:09 samuelcolvin