All Projects → kerol2r20 → Windows Terminal Context Menu

kerol2r20 / Windows Terminal Context Menu

📃 This is a simple script to add right click context menu for your best Windows terminal ❤

Programming Languages

powershell
5483 projects

Projects that are alternatives of or similar to Windows Terminal Context Menu

JonContextMenu
A beautiful and minimalist arc menu like the Pinterest one, written in Swift
Stars: ✭ 60 (-83.52%)
Mutual labels:  context-menu
Pie-Context-Menu
A Pie Context Menu for Web pages
Stars: ✭ 20 (-94.51%)
Mutual labels:  context-menu
elm-contextmenu
Flexible context menu for Elm
Stars: ✭ 16 (-95.6%)
Mutual labels:  context-menu
ng2-right-click-menu
Right click context menu for Angular 2+
Stars: ✭ 51 (-85.99%)
Mutual labels:  context-menu
ContextMenuSwift
A better version of iOS 13 Context Menu
Stars: ✭ 162 (-55.49%)
Mutual labels:  context-menu
vaadin-context-menu
The responsive Web Component for showing context dependent items for any element on the page. Part of the Vaadin components.
Stars: ✭ 26 (-92.86%)
Mutual labels:  context-menu
ShellAnything
ShellAnything is a C++ open-source software which allow one to easily customize and add new options to *Windows Explorer* context menu. Define specific actions when a user right-click on a file or a directory.
Stars: ✭ 103 (-71.7%)
Mutual labels:  context-menu
Vue Context Menu
🗃️ Vue 2.x 右键菜单组件,菜单内容可以随意自定义
Stars: ✭ 279 (-23.35%)
Mutual labels:  context-menu
VirusTotalScanner
Scan suspicious applications with over 60 different anti-viruses with a mere two clicks and five seconds!
Stars: ✭ 18 (-95.05%)
Mutual labels:  context-menu
WSL-Context-Menu-Manager
Manages the context menu for your Linux tools in WSL/WSL2 for Windows.
Stars: ✭ 25 (-93.13%)
Mutual labels:  context-menu
ctxmenu
Tiny and customizable context menu generator
Stars: ✭ 20 (-94.51%)
Mutual labels:  context-menu
vue3-context-menu
A very simple context menu component for Vue3 一个简洁美观简单的Vue3右键菜单组件
Stars: ✭ 74 (-79.67%)
Mutual labels:  context-menu
Open in Windows Terminal
No description or website provided.
Stars: ✭ 24 (-93.41%)
Mutual labels:  context-menu
ember-right-click-menu
An easy and flexible addon to add context menus anywhere in your application
Stars: ✭ 14 (-96.15%)
Mutual labels:  context-menu
Ui.bootstrap.contextmenu
AngularJS Bootstrap UI Context Menu
Stars: ✭ 259 (-28.85%)
Mutual labels:  context-menu
slash-commands
slash commands handler to make your bot support slash commands.
Stars: ✭ 59 (-83.79%)
Mutual labels:  context-menu
dislash.py
A Python wrapper for discord slash-commands and buttons, designed to extend discord.py.
Stars: ✭ 172 (-52.75%)
Mutual labels:  context-menu
React Native Hold Menu
📱 A performant, easy to use hold to open context menu for React Native powered by Reanimated 🚀
Stars: ✭ 325 (-10.71%)
Mutual labels:  context-menu
Contextmenu
ContextView for Xamarin.Forms
Stars: ✭ 271 (-25.55%)
Mutual labels:  context-menu
rctx-contextmenu
✨ Context menu for React
Stars: ✭ 23 (-93.68%)
Mutual labels:  context-menu

🧾 Windows-terminal-context-menu

Inspired from Windows terminal issue Add "open Windows terminal here" into right-click context menu #1060. Thanks to you all giants ❤

Windows terminal is an excellent terminal. But it does not offer a basic function which is right click context menu!
Without it, I have to cd to my working directory everytime. It's inefficient.

So I wrote this script to deal with it.

Feature

  • Two layers of context menu
  • Auto parse settings.json to contruct menu
  • With uninstaller

Todo

  • [x] Custom icon for profile

Install

  1. Clone this repo git clone https://github.com/kerol2r20/Windows-terminal-context-menu

  2. Run powershell (no need to get admin access right)

  3. Change the execution policy Set-ExecutionPolicy Unrestricted -scope CurrentUser

  4. Run SetupContextMenu.ps1 script

⚠️ 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

Uninstall

  1. Run SetupContextMenu.ps1 -uninstall:$true

Config

This script will parse the settings.json file to generate menu items. However you can customize it.
Put any icon file into icon folder and modify the config.json like the following.

{
    "global": {
        "extended": false
    },
    "profiles": {
        "{a5a97cb8-8961-5535-816d-772efe0c6a3f}": {
            "icon": "arch.ico",
            "label": "Arch Linux"
        },
        "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}": {
            "showRunAs": true
        },
        "{b453ae62-4e3d-5e58-b989-0a998ec441b8}": {
            "hidden": true
        }
    }
}

Config reference

  • global
    • extended[bool]: if set this to true, context menu will only show up when right click with shift
  • profiles
    • guid[string]: this GUID of your profile defined in settings.json
      • hidden[bool]: overwrites the visibility of the profile, if defined
      • icon[string]: filename of your ico file, you must put this file in icon folder
      • label[string]: context menu label
      • showRunAs[bool]: add run as administrator item for this profile

Misc

I'm not sure that icons file are legal or not. If you feel it is not ok, please tell me. Thanks.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].