Docs say: Run mdoc to generate markdown sources. Supports arguments like --watch to start the file watcher with livereload. This is nice, but how does "reload" work? Can mdoc create HTML files from the markdown it generates? Does it then open a tab in the system default browser when sbt task docs \ mdoc is run with --watch and refresh on compile?
Ólafur Páll Geirsson
@olafurpg
The --watch flag starts a static web server that renders markdown files as HTML
asaadza
@asaadza
woah!
Ólafur Páll Geirsson
@olafurpg
It doesn't launch your browser, it only prints the URL to the terminal and you can open the link if you like
some tricks there would be helpful for the new Metals feature to search in resource files, turns out you can index text files very quickly with int64 bit fiddling
ascii is only 7 bits and unicode 21 bits
asaadza
@asaadza
interesting
do you use IJ any more?
Ólafur Páll Geirsson
@olafurpg
I use goland for go
and IJ for Java
asaadza
@asaadza
OK
Ólafur Páll Geirsson
@olafurpg
but still VS Code for scala
asaadza
@asaadza
the search for symbol in IJ is probably one of the only features I still miss
Ólafur Páll Geirsson
@olafurpg
IJ has very slow completions, I regularly press enter before the completions load
I agree
the LSP api makes it difficult to implement proper symbol search
asaadza
@asaadza
I thought of another thing that would be good to have in metals, but can't remember it now :)
Ólafur Páll Geirsson
@olafurpg
need to load the exact location for every search result (filename on disk and line number)
that's like >95% of the overhead
asaadza
@asaadza
have you seen the haskell extension for metals?
Ólafur Páll Geirsson
@olafurpg
o.O
I have not
asaadza
@asaadza
they recently addedd -- >>> which get executed inline
not such a big deal though now we have pretty good worksheets in metals
Ólafur Páll Geirsson
@olafurpg
My wish for worksheets is to implement the new notebook API in vscode
asaadza
@asaadza
one thing I don't always predict is when the worksheet execution will get re-triggered