From 415341ec8b033599c9b12bf330b771e4529a4c92 Mon Sep 17 00:00:00 2001 From: Ethan Atkins Date: Thu, 13 Aug 2020 17:54:45 -0700 Subject: [PATCH] Add reload to watch commands I have this in my global git config and think it's useful enough to promote to the default. --- main/src/main/scala/sbt/nio/Watch.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/main/src/main/scala/sbt/nio/Watch.scala b/main/src/main/scala/sbt/nio/Watch.scala index 5431be199..0fe4873e1 100644 --- a/main/src/main/scala/sbt/nio/Watch.scala +++ b/main/src/main/scala/sbt/nio/Watch.scala @@ -493,6 +493,7 @@ object Watch { final val defaultInputOptions: Seq[Watch.InputOption] = Seq( Watch.InputOption("", "interrupt (exits sbt in batch mode)", CancelWatch, '\n', '\r'), Watch.InputOption(4.toChar, "", "interrupt (exits sbt in batch mode)", CancelWatch), + Watch.InputOption('l', "reload the build", Reload), Watch.InputOption('r', "re-run the command", Trigger), Watch.InputOption('s', "return to shell", Prompt), Watch.InputOption('q', "quit sbt", Run(TerminateAction)),