-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Open in Terminal RichCommand #11445
Feature: Open in Terminal RichCommand #11445
Conversation
My idea would be to create an own interface |
Hello @ferrariofilippo . This is a feature that will be coming soon. The solution proposed by @mafra99, which at first glance seems the right one, poses too many problems and greatly reduces the interest of richcommands because the parameter would only be given when the command is executed.
Here is the solution that will be implemented.
All comments are welcome. |
I just read your code, and I better understand your need. Actions need to be able to observe the application to run but also to update properties. This is currently too difficult to do. The solution will be to use contexts. A context is an observable service that easily returns useful information to actions. There will be several depending on the type of action. I am just preparing the most important context which will make it very easy to know the active folder, the selected elements and others. It should be released this weekend and with this context you will have everything you need. |
That's great, thank you |
@ferrariofilippo You can now use the new IContentPageService which will provide you with what you need. |
We can't bind that directly to a |
Is this ready for review? |
Yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@cinqmilleans can you look this over? |
|
|
If you open the terminal at the root of a drive, the terminal indicates that the folder is invalid. You must use the path C:\ instead of C: for drives, but especially not for other folders. |
Actually the issue is that the back slash escapes the following characther |
@cinqmilleans is this ready to merge? |
@ferrariofilippo The problems:
Here is an improved version. The 4 must be replaced by a constant to be placed in the constants file.
|
I didn't apply |
I changed it to |
Anything else @cinqmilleans or is this ready to merge? |
@yaira2 @ferrariofilippo It is mandatory to select a folder to activate the hotkey. It doesn't work on parent folder without seletion. Yet the action handles this case everywhere except in GetIsExecutable. Modify this method to enable it. |
LGTM |
Notes
Execute
without messing up all your code?Validation
How did you test these changes?