thumbnail Terminal Command Keys is a Visual Studio Code extension about version control. Assign terminal commands to a keybinding.

Open current file in Obsidian using [F10]

    {
        "key": "f10",
        "command": "terminalCommandKeys.run",
        "args": {
            "cmd": "\u0001if('${file}' -like 'd:\\Notes\\*') {\n explorer \"`\"obsidian://open?vault=Notes&file=${relativeFile}`\"\"\n } else {\n $externalTarget = Get-Item 'd:\\Notes\\external' | select -expand Target;\n $path = '${relativeFile}' -replace '^\\.\\\\', 'external\\';\n if('${file}' -notlike \"$externalTarget\\*\") {\n start powershell -Verb RunAs \"-Command New-Item -Path 'D:/Notes/external' -Target '${workspaceRoot}' -ItemType SymbolicLink -Force\";\n explorer \"`\"obsidian://advanced-uri?commandname=Reload app without saving`\"\";\n Start-Sleep 1;\n }\n explorer \"`\"obsidian://advanced-uri?filepath=$path&line=${line}`\"\"}",
            "showTerminal": false,
        },
    },

Sources:

Related:

Tags:
Version Control - Track, commit, push, rebase changes in VS Code