Skip to content
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 request] Run with... on certain filetypes #8

Open
Arno989 opened this issue May 11, 2020 · 3 comments
Open

[Feature request] Run with... on certain filetypes #8

Arno989 opened this issue May 11, 2020 · 3 comments
Labels

Comments

@Arno989
Copy link

Arno989 commented May 11, 2020

I don't even know if this is possible but maybe a feature that adds a 'Run with' in the context menu on certain filetypes.

For example if I right-click on a python script and run it in Powershell that it automatically enters the command and runs ith with the relevant program.
Or even just puts in the command so you can add extra args yourself?

I'm no powershell master but I don't think it would be that hard compared to what you already have (I really have no idea).

@lextm lextm added the idea label May 11, 2020
@lextm
Copy link
Owner

lextm commented May 11, 2020

https://devblogs.microsoft.com/commandline/windows-terminal-preview-v0-9-release/

There is no such argument from Windows Terminal to open a file, so currently what you wanted cannot be implemented.

@Arno989
Copy link
Author

Arno989 commented May 12, 2020

I delved into the code a bit and tried myself and now I see what you mean. Although this would be a nice option in your script.
Do you have any knowledge about such arguments being implemented or in the feature request list? Maybe for V1.0?
Perhaps i could fork, try it myself and create a pull request when this feature is implemented and functional?

@Arno989
Copy link
Author

Arno989 commented May 12, 2020

I did some research after finding out what to google and there's a lot of talk about this subject indeed, even some talk of implementing the context menu by default.

I don't think it will be much longer until the command argument will be added since they've laid the groundwork already with the split pane argument stuff. I think this is the best place to follow up on the progress/ look at how they will implement it: terminal/doc/specs/#607.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants