QuickSwitch

General discussion related to "Everything".
Post Reply
NotNull
Posts: 3040
Joined: Wed May 24, 2017 9:22 pm

QuickSwitch

Post by NotNull » Mon Mar 22, 2021 8:05 pm

QuickSwitch is a spin-off of JumpToFolder and was suggested as an alternative to Listary's QuickSwitch as that is abandoned.

What does QuickSwitch do? - the short version
When in a file dialog, like Save As .. or Open ... , it can switch that dialog to any folder that is opened in a file manager.
Currently supported file managers: File Explorer, Total Commander and XYPlorer.


QuickSwitch can do that in two different ways:
  • Out of the box, it will show you a list of opened folders to choose from.
    When you select one of those, the file dialog will switch to the selected folder.
    The menu will not be shown if there are no file manager folders to select from.
  • AutoSwitch mode.
    After selecting AutoSwitch from the menu, the menu will no longer be shown for that specific dialog, for example Notepad's Save As dialog.
    From there on, when you Alt-Tab to the file manager and Alt-Tab back to the file dialog, The file dialog will automatically open the folder that was active in that file manager.
    When the file manager was active before you open the file dialog, it will even open that folder straight away, without further needed action.
    The keyboard shortcut Control-Q will still open the menu if you need it, for example to reconfigure what to do in this dialog.

There is also an option Never here.
Select that setting to 'mute' QuickSwitch in that specific dialog.
Useful for example for webbrowser dialogs, as they already keep track of website/downloadfolder combinations.


What does QuickSwitch do? -more details
to do ...


QuickSwitch is not finished yet.
On the To-Do list for the near future are:
  • Support for long paths ( longer than 259 characters)
  • A better user interface. There will be a simplified menu with less 'technical' entries.
    Suggestions are welcome.
  • A different way to 'talk with' Total Commander
  • A notification area (/system tray) menu, including icon
  • Option to load at startup
Limitations
  • Only supported OS is Windows 10
  • Can not get information from file managers that run elevated (as administrator)

Installation

QuickSwitch is developed in the AutoHotKey (AHK) language. If you already have AutoHotKey installed on your system, download QuickSwitch <date>.zip and you know how to handle it from there on :)

For others:
  • Download and extract QuickSwitch runtime.zip to a folder. QuickSwitch will write it's ini-file to that same folder, so you need write access there.
  • Download and extract QuickSwitch <date>.zip to that same folder.
  • That's all

Running QuickSwitch

To start, run QuickSwitch.exe. It will stay quietly in the background, until you open a File Dialog.
To stop using QuickSwitch, right-click it's system tray icon - a white on green "H" - and choose Exit


Note:
I want to thank @horst.epp and @tuska for testing.
*Especially* @tuska, as this program would not even exist without him. He went through at least 7 rewrites of the code and tested all of them. Extensively ...

I even wanted to call it TuskaTool, but "someone" had strong objections against that. I can't tell you who, as I respect tuska's privacy :lol:
So, if you like it, say thanks to @tuska!
He didn't test this last rewrite, so all bugs, shortcomings and whatever are on me.
Attachments
QuickSwitch Runtime.7z
(446.32 KiB) Downloaded 190 times
QuickSwitch 2021-03-21.7z
(6.38 KiB) Downloaded 200 times

tuska
Posts: 368
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska » Mon Mar 22, 2021 8:19 pm

2NotNull
I have to say thank you :!:

horst.epp
Posts: 427
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp » Mon Mar 22, 2021 9:09 pm

Thanks for the update.
I already downloaded it from Github and compiled it.
Runs fine for me as the previous versions did.

NotNull
Posts: 3040
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull » Mon Mar 22, 2021 9:29 pm

horst.epp wrote:
Mon Mar 22, 2021 9:09 pm
Thanks for the update.
I already downloaded it from Github and compiled it.
Runs fine for me as the previous versions did.
The previous detection mechanism required a rewrite because of ... wait for it .. Everything 1.5!
In Everything 1.5, the important components that make up the dialog are named differently from other known dialogs.
Meaning a new dialog-detector (that was number 6, IIRC).
The latest version works differently and can work with a lot less dialog specific detection.

eagleeyez
Posts: 22
Joined: Thu Mar 17, 2016 3:58 pm

Re: QuickSwitch

Post by eagleeyez » Tue Mar 23, 2021 12:35 am

Thank you!!! I would be great to have the look and feel of Listary and some other features...

horst.epp
Posts: 427
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp » Tue Mar 23, 2021 8:56 am

eagleeyez wrote:
Tue Mar 23, 2021 12:35 am
Thank you!!! I would be great to have the look and feel of Listary and some other features...
For this you have Everything, it beats Listary in all aspects.
Quick Switch is for Open/Save dialogs.

NotNull
Posts: 3040
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull » Tue Mar 23, 2021 10:06 am

eagleeyez wrote:
Tue Mar 23, 2021 12:35 am
Thank you!!! I would be great to have the look and feel of Listary and some other features...
As said:
On the To-Do list for the near future are:
  • A better user interface. There will be a simplified menu with less 'technical' entries.
    Suggestions are welcome.
So let's hear them .. :D
What look and feel would work/look better?

horst.epp
Posts: 427
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp » Tue Mar 23, 2021 1:30 pm

NotNull wrote:
Tue Mar 23, 2021 10:06 am
eagleeyez wrote:
Tue Mar 23, 2021 12:35 am
Thank you!!! I would be great to have the look and feel of Listary and some other features...
As said:
On the To-Do list for the near future are:
  • A better user interface. There will be a simplified menu with less 'technical' entries.
    Suggestions are welcome.
So let's hear them .. :D
What look and feel would work/look better?
Personaly I don't need much more in the interface.
One thing is missing, I can't see which entry in the list comes from which tool.
I sometimes have Total Commander, XYplorer and the Windows Explorer running and so I get 5 entries to select from.
Its not importand but may be the entries should have an header which says what the source is.

NotNull
Posts: 3040
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull » Tue Mar 23, 2021 2:11 pm

horst.epp wrote:
Tue Mar 23, 2021 1:30 pm
Personaly I don't need much more in the interface.
In my opinion there should be *less* interface, but I think it is better to show the list of folders somehow.
You can always press Escape, the Alt key or click somewhere in the File Dialog to make the folder list go away.
Selecting "Not now" does the same.

horst.epp wrote:
Tue Mar 23, 2021 1:30 pm
One thing is missing, I can't see which entry in the list comes from which tool.
That is strange. There should be an icon of the file manager where the folder came from, at the left of the foldername. Like this:


2021-03-23 14_56_49-C__Windows.png
2021-03-23 14_56_49-C__Windows.png (14.11 KiB) Viewed 13574 times

The folders are sorted by most recent used file manager. Most recent on top.

Note that if you have a specific folder opened in multiple file managers, it will be shown only once.
That will change with the new menu that I am working on *as we speak*. Thatwill also have path ellipsis, so long paths will be shown as
c:\folder1\...\folder5 (very pleased that I got that part working :))

horst.epp
Posts: 427
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp » Tue Mar 23, 2021 2:21 pm

NotNull wrote:
Tue Mar 23, 2021 2:11 pm
horst.epp wrote:
Tue Mar 23, 2021 1:30 pm
Personaly I don't need much more in the interface.
In my opinion there should be *less* interface, but I think it is better to show the list of folders somehow.
You can always press Escape, the Alt key or click somewhere in the File Dialog to make the folder list go away.
Selecting "Not now" does the same.

horst.epp wrote:
Tue Mar 23, 2021 1:30 pm
One thing is missing, I can't see which entry in the list comes from which tool.
That is strange. There should be an icon of the file manager where the folder came from, at the left of the foldername. Like this:

Note that if you have a specific folder opened in multiple file managers, it will be shown only once.
That will change with the new menu that I am working on *as we speak*. Thatwill also have path ellipsis, so long paths will be shown as
c:\folder1\...\folder5 (very pleased that I got that part working :))
Sorry, my mistake in the last tests I only looked to the list of dirs, all is fine with the icons.
I prefer to always see the list of folders and will never use Auto-Switch.

eagleeyez
Posts: 22
Joined: Thu Mar 17, 2016 3:58 pm

Re: QuickSwitch

Post by eagleeyez » Sat Mar 27, 2021 5:46 pm

Hi,

Sounds great that you are willing to develop this further and open to suggestions...

The new Listary 6 is based on Node.js so I don't know if AutoHotkey allows the same flexibility in the term of user interface and features but I guess relying on WinAPI is the key to achieve better User Interaction... right now the menu open just once and it is over the open/save dialogue which is annoying and once it gets ignored, it is hard to get it back! The best is to make it display on the sides or the bottom (I think the bottom is better) and if it starts where Listary 5 at least left it can be a significant step toward replacing that abondonware...


I may miss some stuff since I didn't dive deep enough into QuickSwitch but I am open for a collaboration if you are willing to make it open-source ( I am not a programmer myself but a power-tinkerer and I can contribute to GUI and other stuff)

horst.epp
Posts: 427
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp » Sat Mar 27, 2021 5:59 pm

eagleeyez wrote:
Sat Mar 27, 2021 5:46 pm
...
relying on WinAPI is the key to achieve better User Interaction... right now the menu open just once and it is over the open/save dialogue which is annoying and once it gets ignored, it is hard to get it back! The best is to make it display on the sides or the bottom (I think the bottom is better) and if
You can always hit Ctrl-Q in the open/save dialog to get the QuickSwitch menu back

NotNull
Posts: 3040
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull » Sat Mar 27, 2021 6:59 pm

The idea was to either operate in AutoSwitch mode - that will automatically switch folders - or present a list of open folders to choose from - what you see by default.

When you don't want the list, you can get rid of it in a couple of ways:
- press the ESCAPE key
- press the ALT key
- click somewhere in the File Dialog (but not on files/folders, I noticed just recently)
- click on "Not Now"
- use cursor up / down to select the "Not Now" entry and press ENTER
- and probably more

As horst.epp already mentioned: pressing CTRL+Q brings the list back.




But all that may change with a new menu layout
At the moment I am working on the technical side of a new, cleaner and simpler, menu (how to handle mouse/keyboard actions, etcetera)
AutoHotKey has it's limitations in what is visually possible. It is mainly the basic Windows controls, like buttons, dropdownlist, etc.
But with some trickery, I could make it look like this (menu 1 of 3; just trying different possibilities and see what turns out best) :
2021-03-27 19_39_11-Window.png
2021-03-27 19_39_11-Window.png (41.04 KiB) Viewed 13299 times



@tuska wanted a different icon for in the system tray - and I fully agree with that. So playing around with that, i came up with the one below, but it is horribly hard - as in: after 3 hours work still no decent result - to reduce that to a 16*16 pixel icon.


The code is already open source: all the code is in QuickSwitch.ahk and that can be opened in any text editor.
Qswitch-03-removebg-preview-02.png
Qswitch-03-removebg-preview-02.png (213.21 KiB) Viewed 13299 times

eagleeyez
Posts: 22
Joined: Thu Mar 17, 2016 3:58 pm

Re: QuickSwitch

Post by eagleeyez » Tue Mar 30, 2021 3:58 pm

I can help with the icon! I told you!

NotNull
Posts: 3040
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull » Tue Mar 30, 2021 5:46 pm

eagleeyez wrote:
Tue Mar 30, 2021 3:58 pm
I can help with the icon! I told you!
You should have told me 46 aspirins ago!!! :D


But yes, if you can: please!
I don't have the tools, the knowledge and most important: the patience to get this done.


As long as it is still a stylized Q / rotated power-switch I'm good [1]. And that the leg of the Q starts in the center of the circle.
I don't expect the "glow" [2] in the power button to be captured in a small icon.


[1] Technically it is a stand-by switch, but who cares; it is still a Q (uick) SWITCH logo...
[2] Better visible here:
2021-03-30 20_03_16-1.5.0.1251a (x64).png
2021-03-30 20_03_16-1.5.0.1251a (x64).png (234.53 KiB) Viewed 12764 times

cmhdream
Posts: 1
Joined: Sat May 15, 2021 12:38 am

Re: QuickSwitch

Post by cmhdream » Sat May 15, 2021 2:27 am

I hope can support xplorer2 too..

Post Reply