Open nigredo-tori opened 3 years ago
Another option how to resolve this is to use sbt-hydra:projects
. It allows you to specify subset of projects you need the most so that they can fit on one line.
For example put this into .dir-locals.el
file at the root of the sbt project:
((sbt-mode . ((sbt-hydra:projects . ("root" "blaze-client" "core" "docs" "website" "blaze-core" "blaze-server" "client" "circe" "dsl" "server" "tests" "twirl" "play-json" "examples" "laws")))))
Doing this also allows you to put projects in order of importance for you.
See the first hydra line here:
This makes sbt-hydra unusable in monorepository projects where there can be a lot of subprojects with lengthy names, which can't all fit on one line. Some kind of word wrapping is in order.
As a temporary workaround, I've replaced
sbt-hydra:project-switcher
:For some reason just adding a
defun
doesn't work, I had to directly patchsbt-mode-hydra.el
.The result is as follows:
By the way, it seems like the chosen triggers for subprojects start to overlap with other commands, which probably deserves its own issue.