I was planning to add a feature to my website’s scripting to re-fetch a blog post directly in VS Code]and to avoid copy-pasting the Notion ID.
From this Stack Overflow answer, I found a way to send active file’s path to the integrated terminal with:
{
"key": "ctrl+shift+t",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "'${file}'" }
}
which works like a charm.
Now I can add another flag to my Notion fetch that would parse the ID from the front matter.