Giter VIP home page Giter VIP logo

Comments (3)

KUTlime avatar KUTlime commented on August 17, 2024

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.

  1. 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...
  2. 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).
  3. 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.
  4. 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.

hanjo avatar hanjo commented on August 17, 2024

Hi @KUTlime
thanks for the explanation, this makes perfect sense. I'm looking forward to future releases then :-)

from powershell-open-here-module.

KUTlime avatar KUTlime commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.