Skip to content

Kuuh4/github.project.linker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

github project linker

What It Does

A Windows Python script that generates two clickable shortcuts for any GitHub repository:

  • A .url file that opens the repo in your browser
  • A .code-workspace file that opens the repo in VS Code (via GitHub Codespaces)

How to Use

  1. Run the script
  2. On first run: rename your username (ctrl+n)
  3. Type the repo name you want shortcuts for
  4. Two files appear in the script's directory, ready to click
  5. Press Ctrl+N anytime before Enter to change username again

Files Generated

  • Open {repo-name} in VS Code.code-workspace — VS Code workspace file
  • Open {repo-name} on GitHub.url — Browser shortcut to GitHub repo

Prerequisites

  • uhhh python. I suggest going for winget install python.launcher.

Tip

  • Set your windows to use the newer terminal, as it does support text dimming, instead of the old command prompt

nerd stuff

Key Features

  • Username persistence: Saves your GitHub username inside the script itself (in the # USERNAME: comment line) on first run
  • Minimal input: Only prompts for the repo name — username is reused automatically
  • Quick username change: Press Ctrl+N while entering the repo name to change your username without re-running
  • Plain-text UI: Works in any Windows terminal (no emoji rendering required)
  • Self-modifying: The script rewrites its own # USERNAME: line when you update it

Technical Notes

  • Uses msvcrt for raw keystroke detection (Windows only)
  • ANSI escape codes for dimmed text styling
  • Regex-based self-modification for username storage
  • Custom input reader that watches for Ctrl+N while capturing typed characters

About

easily create shortcuts for repositories

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Contributors

Languages