{"id":13596629,"url":"https://github.com/kerol2r20/Windows-terminal-context-menu","last_synced_at":"2025-04-09T16:33:34.374Z","repository":{"id":106492501,"uuid":"242349914","full_name":"kerol2r20/Windows-terminal-context-menu","owner":"kerol2r20","description":"📃 This is a simple script to add right click context menu for your best Windows terminal ❤","archived":false,"fork":false,"pushed_at":"2023-01-23T17:05:50.000Z","size":286,"stargazers_count":416,"open_issues_count":13,"forks_count":37,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-01T16:45:47.434Z","etag":null,"topics":["context-menu","enhancement","windows-terminal"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kerol2r20.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-02-22T13:52:49.000Z","updated_at":"2024-07-06T08:54:21.000Z","dependencies_parsed_at":"2023-07-18T16:00:22.426Z","dependency_job_id":null,"html_url":"https://github.com/kerol2r20/Windows-terminal-context-menu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kerol2r20%2FWindows-terminal-context-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kerol2r20%2FWindows-terminal-context-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kerol2r20%2FWindows-terminal-context-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kerol2r20%2FWindows-terminal-context-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kerol2r20","download_url":"https://codeload.github.com/kerol2r20/Windows-terminal-context-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223403659,"owners_count":17139936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["context-menu","enhancement","windows-terminal"],"created_at":"2024-08-01T16:02:36.558Z","updated_at":"2024-11-06T19:33:21.159Z","avatar_url":"https://github.com/kerol2r20.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# 🧾 Windows-terminal-context-menu \n\n![](https://raw.githubusercontent.com/kerol2r20/Windows-terminal-context-menu/master/Preview.png)\n\nInspired from Windows terminal issue [Add \"open Windows terminal here\" into right-click context menu #1060](https://github.com/microsoft/terminal/issues/1060). Thanks to you all giants ❤\n\nWindows terminal is an excellent terminal. But it does not offer a basic function which is **right click context menu**!  \nWithout it, I have to `cd` to my working directory everytime. It's inefficient.  \n\nSo I wrote this script to deal with it.\n\n# Feature\n* Two layers of context menu\n* Auto parse settings.json to contruct menu\n* With uninstaller\n\n# Todo\n- [x] Custom icon for profile\n\n# Install\n1. Clone this repo\n`git clone https://github.com/kerol2r20/Windows-terminal-context-menu`\n\n2. Run powershell (no need to get admin access right)\n3. Change the execution policy `Set-ExecutionPolicy Unrestricted -scope CurrentUser`\n4. Run `SetupContextMenu.ps1` script\n\n⚠️ If you find no item in your context menu, it may be caused by the old style profiles.json. You can delete `%LocalAppData%\\Packages\\Microsoft.WindowsTerminal_8wekyb3d8bbwe\\LocalState\\profiles.json` and restart Windows terminal. The new one will be generated. Ref to [microsoft/terminal#4556](https://github.com/microsoft/terminal/pull/4556) \n\n# Uninstall\n1. Run `SetupContextMenu.ps1 -uninstall:$true`\n\n# Config\nThis script will parse the `settings.json` file to generate menu items. However you can customize it.  \nPut any icon file into `icon` folder and modify the `config.json` like the following.\n\n```json\n{\n    \"global\": {\n        \"extended\": false\n    },\n    \"profiles\": {\n        \"{a5a97cb8-8961-5535-816d-772efe0c6a3f}\": {\n            \"icon\": \"arch.ico\",\n            \"label\": \"Arch Linux\"\n        },\n        \"{61c54bbd-c2c6-5271-96e7-009a87ff44bf}\": {\n            \"showRunAs\": true\n        },\n        \"{b453ae62-4e3d-5e58-b989-0a998ec441b8}\": {\n            \"hidden\": true\n        }\n    }\n}\n```\n\n**Config reference**\n- global\n  - extended[bool]: if set this to true, context menu will only show up when right click with `shift`\n- profiles\n  - guid[string]: this GUID of your profile defined in `settings.json`\n    - hidden[bool]: overwrites the visibility of the profile, if defined\n    - icon[string]: filename of your ico file, **you must put this file in icon folder**\n    - label[string]: context menu label\n    - showRunAs[bool]: add `run as administrator` item for this profile\n\n# Misc\nI'm not sure that icons file are legal or not. If you feel it is not ok, please tell me. Thanks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkerol2r20%2FWindows-terminal-context-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkerol2r20%2FWindows-terminal-context-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkerol2r20%2FWindows-terminal-context-menu/lists"}