Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Hardware & Software > PC Hard & Software

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd January 2021, 07:07   #1  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Looking for a solution of a common file management problem

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.
stax76 is offline   Reply With Quote
Old 7th January 2021, 00:06   #2  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,531
Could AutoHotKey be of any help ?
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 7th January 2021, 08:18   #3  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
Originally Posted by Emulgator View Post
Could AutoHotKey be of any help ?
Maybe, AutoHotKey and AutoIt are very useful and powerful tools, I typically use AutoIt, for instance for my global shortcuts or to interact with dialogs in powershell.

I've worked on this idea and gave up because there were too many obstacles, for instance Ctrl+double-click did not work and the shell would not allow a generic wrapper app, the app must be changed for every file extension including an icon. It appeared simple but turned out to be tricky.
stax76 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:22.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.