Open files and folders inside Git submodules, worktrees, and multi-root repositories on GitHub, and launch Sanskrit-aware diffs with diff_san (pip install local-diff-san; see https://github.com/sanskrit-coders/diff_san/blob/master/local_diff/README.md).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Visual Studio Code extension (sanskrit-coders.github-san) providing Open on GitHub, Copy GitHub URL, and diff_san (local-diff-san) integration for files and folders inside Git submodules, worktrees, and multi-root workspaces.
Open on GitHub (Github-san: Open on GitHub): Opens files, folders, and submodule roots in your browser from Explorer, Editor, Editor Tab, Source Control (SCM), or Command Palette, with #L... line/selection anchors in active editors.
Copy GitHub URL (Github-san: Copy GitHub URL): Copies the canonical GitHub URL directly to your clipboard.
Diff with diff_san (Github-san: Diff with diff_san (HEAD / Two Files)):
1 file or folder inside a Git repo/submodule → diffs against HEAD (local-diff-san <path>).
2 selected files → compares both side by side (local-diff-san <left> <right>).
3+ selected files in Git repos → diffs all selected files against HEAD (local-diff-san --head <paths...>).
pip install local-diff-san
# Or editable install from a local diff_san clone:
pip install -e /path/to/diff_san/pull_requests -e /path/to/diff_san/local_diff
Configuration
githubSan.diffSanExecutable: Optional path to local-diff-san. When empty, searches DIFF_SAN_BIN, PATH, workspace .venv/bin / venv/bin, ~/gitland/python_venv/bin, ~/.local/bin, ~/.venv/bin, ~/venv/bin, and ~/gitland/sanskrit-coders/diff_san/.venv/bin.
Build, Test & Install
cd github-san
npm install
npm test
npm run package
code --install-extension build/github-san-1.1.1.vsix