Comments (3)
Hi @hanjo
thx for an interest of this module.
Quick answer
Yes, you can modify the registry key created by Set-OpenHereShortcut
to run any profile. Look into module's source code to registry key path and follow this guidelines for profile option.
Long answer
There is a catch with your request. Actually, several of them.
- One of the key fundamental of this module is consistency. This feature violates this fundamental by focusing on implementation details related to Windows Terminal. I could come up with a new function to handle this functionality to be consistent but...
- There is a limit for elevated shortcuts in one subfolder in the Windows context menu. There could be only one elevated command. I could create as many as possible non-elevated shortcut (profiles) but only one elevated shortcut. If I give you a function to manipulate with Windows Terminal profiles, there would be an obvious question to ask: How about to generate all the profiles into the context menu? This brings us back to 1) and recursively to 2).
- You could have a wide range of profiles with wild customization and this could create more problems than solution when we are talking about auto-generated shortcuts. E.g. you need a icons for all profiles.
- Windows Terminal is far from feature complete. It has a lot of bugs and my goal is to keep a relation to Windows Terminal at the least possible level right now. This approach changes when Windows Terminal will be more feature completed.
Summary
There is a tool (and many others) with similar functionality which you are asking for. I have doubts about a proper functionality of these tools. Many of them neglecting special cases in paths like non-English characters or click on drive.
I will analyze this tool and probably implement some functionality sooner or later but I can't give you and date when it will be completed.
from powershell-open-here-module.
Hi @KUTlime
thanks for the explanation, this makes perfect sense. I'm looking forward to future releases then :-)
from powershell-open-here-module.
BTW: I've this issue microsoft/terminal#3158
I could say that this request will be obsolete if they implement this. 🤷🏿♂️
from powershell-open-here-module.
Related Issues (18)
- All menu's under a single root HOT 1
- Support for PowerShell Core 6 HOT 1
- Support for PowerShell Core 7
- Refactoring of icon handling
- Why does a powershell screen flash before launching the terminal HOT 3
- Runas is fake and not working with WT HOT 1
- Is it possible to create only root executable. So, when I press root itself, it should open Windows terminal here and that's it? HOT 7
- How could I add the Windows Terminal Preview? HOT 7
- Create an Admin menu item at the top level HOT 1
- UNC path does not work on Win11
- Add shortcut to new Win11 menu
- Please add the option to add a Powershell 7 context menu item. HOT 3
- Windows Terminal doesn't responds to RunAs command. HOT 1
- open all in a single window HOT 4
- Launching powershell window at first. HOT 1
- Support WSL/Bash HOT 1
- Support SHIFT+Right click option for all types HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powershell-open-here-module.