obsidian-execute-code
obsidian-execute-code copied to clipboard
[FR] `console` codeblocks
On GitHub and many other services, you can use a code-block with the console
language to represent a console session. For example:
chlohal@DESKTOP2FA3C:~$ echo 'hi'
It would be a great quality-of-life feature if we could
- Parse
console
blocks - Recognize command lines (with a
$
) - When running the block, execute the command in the proper directory.
This may have security concerns, but IMO the ease-of-use provided is justifiable. Someone could easily cd
in a bash
block, but this is easier to write and scans better.