I'm using Windows File Explorer in dark mode and noticed that for certain types of files I have 2 common use cases.
Example Image files, jpg, png etc.
------------------------------------------
1. Watching the image with an image viewer app, like mpv.
2. Editing the image with an image editing app, like paint.net
Scripts, Powershell, Python, Lua etc.
---------------------------------------------
1. Executing the script.
2. Editing the script, for instance with VS Code.
For ps scripts and any other text file types, my default file association is VS Code, and for execution I use Open with++, KeyLauncher and Windows Terminal. I'm very happy with the KeyLauncher solution and Windows Terminal but find the Open with++ solution inefficient for very frequent operations. What I would like to try is the following:
When I double-click a ps1 (or py) file in File Explorer, or press enter, VS Code starts to edit the file, now comes the trick, if I double-click or press enter while the Ctrl key is pressed, I want the script to be executed instead. I checked if Explorer opens it with Ctrl+Enter, and it does.
It's probably not difficult to build a tool that does what I want, it should not take more than a few hours. I already have built something related in the past:
WinAppLauncher
What I would like to ask however is if something similar or related already exists? Not necessary using File Explorer but also other file management tools.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 7 of 7
Thread
-
-
Aren't you making this overly complicated? Just right mouse on the image file and open it using your favorite image editor. Maybe I don't fully understand your question?
Extraordinary claims require extraordinary evidence -Carl Sagan -
Guys, the keyboard is much more efficient for tasks like this.
-
Do you honestly think you are going to need to be setting this up a lot (not performing the operation, but setting up the association)?
Otherwise, edit the registry to add a few win explorer shell context extensions.
Something like this: https://www.howtogeek.com/107965/how-to-add-any-application-shortcut-to-windows-explor...text-menu/amp/.
Should be able add keyboard shortcuts as well.
However, I disagree with your assessment - sometimes (and this is probably one of those), it IS easier to do it with a mouseclick or 2.
Scott -
To get started I plan to use it for ps1, jpg, png, bmp and reg. I will use Enter to edit it and Ctrl+Enter to open it.
I think my Open with++ shell extension solution is much better than using sendto or editing registry.
Similar Threads
-
Trying To Find Solution for playing 1996 AVI file created with a WebCam
By Jeff90046 in forum Newbie / General discussionsReplies: 9Last Post: 29th Dec 2019, 22:55 -
Digital Rights Management using PHP
By Ramsey555 in forum Video ConversionReplies: 6Last Post: 24th Nov 2019, 10:52 -
has there EVER been a solution to Avidemux's no batch problem?
By KneeRow in forum Video ConversionReplies: 1Last Post: 23rd Aug 2019, 15:28 -
A Solution: But Curious About The Cause Of The Problem
By Tom Saurus in forum Video ConversionReplies: 2Last Post: 4th Sep 2016, 12:55 -
Error: Decoder appears to have frozen, corrupt audio file? SOLUTION
By TheLastOfThem in forum Newbie / General discussionsReplies: 1Last Post: 13th Aug 2016, 10:50