Building an extension

I'm impressed how easily it is to author vscode extensions.

The first feature I wanted was Referencing notes easily, which I was able to build starting with the CompletionItem example. Now typing [ brings up an autocomplete.

Additionally, I can create a new note by entering the title like so: [[My new note]], and right-clicking and selecting "New note from selection." Streamlines the process a bit.

The sample extensions allow you to run and debug them in a new Extension Development Host window. I loaded mine with debugger statements as I used the extension with these very notes.

Packaging the extension involved typing vsce package in the extension directory, then loading the subsequent vsix file in VSCode.

Impressed!

Future extension ideas

Referenced in:
Referencing notes easily
Backlinks are important to me, but finding the backlink is... not trivial. It seems fair to have [[ begin auto-completing titles of notes. Once again vscode-markdown-notes can likely help here. I was able to accomplish this without too much effort by Building an extension.
The joy of yak shaving
The act of shipping software is often hindered by Yak shaving. A fix splinters out into several items, which in turn splinter out into several more items each. It is important to exercise caution of this happening, and chop off the tail when necessary. In personal projects, however, I have found aspects of Yak shaving to be some of the most illuminating parts of programming. Take this blog for instance. I could have just set up Mediawiki for myself. If What I wish this to be were truly limited to just getting words on the web, I would have done so. But I wanted to write code in addition to writing words. So I have found myself doing work that is explicitly not related to getting words in front of people. Building an extension maybe helped me get these words out more quickly, but in reality most of the joy came from learning something new. Hello, next! in the end is responsible for you seeing these words right now, but it was not necessary. I could have written my posts as plain ol' HTML(tm). And it's all very fun! A "simple" project (glorified static site generation) can become a beautiful problem that exposes me to different tools and the frameworks, the amount of which is limited only to wear I draw the line.

Referencing notes easily

Backlinks are important to me, but finding the backlink is... not trivial.

It seems fair to have [[ begin auto-completing titles of notes. Once again vscode-markdown-notes can likely help here.

I was able to accomplish this without too much effort by Building an extension.

Future extension ideas