In the middle of the desert you can say anything you want
You can star/unstar a search!
Really handy for summary/analysis-type searches, like for hashtags of things that may be reoccurring.
Additionally a “search” doesn’t stop once you click through files or through the folders, it’s still available in its own tab.
You can embed not just an entire document, but also part of it, like headers! The same mechanism as with linking, but I can’t figure out how the autocompletion is supposed to be used.
In any case, works the same way, page title and then # for headers and ^ for blocks, for which it will autogenerate a reference in the target file.
To trigger this you have to have the page name already filled in, it suggests stuff, but once you click on something or use tab it generates a link with it immediately. Best way I can figure out is to let it do this, and then replace the syntax around, the autocompletion gets triggered once you get it in a syntax like below: ^66eab0
 Autocompletion even suggests/uses my reference!
When looking at a commit, clicking on “View the entire source for this file” symbol opens that file, and then one can navigate to folders etc as usual, they’ll all be from the current branch.
Hugo generates anchors from headers automatically 1. Tested it - yes, except they’re lowercased and spaces get converted to - (which makes sense).
As a refresher, in HTML it’s
<h2 id="anchor">..</h2>
<a name="anchor"></a>
<a href="#anchor">anchor link </a>
One additional way to check the type hints in #python is mypy, installable as python package.
mypy -p package_name checks the typing in the package, and found some potential errors in corner cases I didn’t know about in one of the projects I’m working on!
Finds wrong typing, missing/wrong return values, that kind of stuff.
It doesn’t like what: str or Path typing output, I guess only Union[str, Path] - is there a reason for it?
In any case I like it more than Pycharm’s way of outputting things and will be using it along with black and flake8 in the future (along with typing itself).
#py/mypy