Skip to content

Quickly Switch to the folder from any file manager.

License

Notifications You must be signed in to change notification settings

JoyHak/QuickSwitch

Repository files navigation

This is an improved version of the QuickSwitch script v0.5 from Gepruts. DaWolfi, NotNull and Tuska first improved it to v0.5dw9a, and I've now released v1.0, where I've made some really significant improvements!

About

Imagine you want to open/save a file. A dialog box appears, allowing you to manually select the directory on your system. QuickSwitch lets you automatically switch to the path you need if it's open in any of the supported file managers (File Explorer, Directory Opus, Total Commander, XYPlorer).

In short, this compact menu will display all suitable paths:

It has two modes:

  1. Menu mode: displays a list of opened directories. Selecting one switches the file dialog to that path. The menu won't appear if no directories are open.

  2. AutoSwitch mode: the file dialog automatically opens the last active directory in the file manager when you Alt-Tab between them. If the file manager was active before opening the dialog, it opens that directory immediately. You can still use Ctr+Q to access the menu if needed.

AutoSwitch can be disabled using the Never option. There's also Never here option to disable QuickSwitch for specific dialogs, like web browsers or backup applications.

And of course you can customize the display of paths in the menu to your liking:

The latest versions include the following features:

  • Added application auto-startup at Windows log-on.
  • The menu will display the paths from all open folders starting from the current one.
  • The path can be displayed in a shortened form.
  • Improved settings interface and additional customization options and features.
  • Added minimalistic display of errors about incorrectly entered settings.

As an addition I recommend the BigSur or CakeOS themes from Niivu and XYplorer file manager:

Feedback

I really need your feedback! If something is not working for you, please let me know. If you think that app can be improved, write to me.

This version is aimed at high performance and is devoid of various checks. To ensure that the correct current paths always appear in the menu:

  • Disable localized folder names (e.g. C:\Users, C:\Användare, ...).
  • Periodically open the file manager you need (a big number of windows makes it difficult to find the last open manager).
  • Do not keep virtual folders open (e.g. coll://, Desktop, Rapid Access, ...).

Installation

  1. Download the latest version.

Subscribe to releases so you don't miss critical updates!

  1. Run .exe for your CPU architecture and check it's existence in the tray.

  2. Open different directories in a supported file manager.

E.g., open C:\ in Explorer.

  1. Open any application and try to open\save a file using it.

E.g., open Notepad then File - Open.... Or try downloading any file.

  1. Press Ctrl+Q and look at the paths in the menu that opens. All directories opened in supported file managers will be displayed here.

  2. Explore the available options in the menu, open the settings and experiment with them. Choose a convenient style and logic of the menu!

Scripting

This script is written in the Autohotkey language.

  1. Download Autohotkey v1.1 and install it.

PLEASE KEEP IN MIND: Autohotkey v1 is an outdated version. If you want to start learning the language, install v2. Do not learn autohotkey v1 yourself and use it exclusively to run old scripts. This script needs to be updated from v1 to v2 !

  1. When the installation is complete, you are presented with another menu. Choose Run AutoHotkey. Once the AutoHotkey help file opens, you can read or close it now.

  2. Download the latest version of QuickSwitch.

  3. Unpack .zip and run QuickSwitch.ahk. Check it's existence in the tray.

Compiling

QuickSwitch.ahk can be automatically compiled using ahk2exe which is here by default: C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe It can be downloaded from here: https://github.com/AutoHotkey/Ahk2Exe Or installed from here: C:\Program Files\AutoHotkey\UX\install-ahk2exe.ahk

7-zip is also needed to automatically create an archive with the required files:

"C:\Program Files\7-Zip\7zG.exe" a "%A_ScriptDir%\Releases\QuickSwitch 1.0".zip -tzip -sae -- "%A_ScriptDir%\QuickSwitch.ahk" "%A_ScriptDir%\Libs" "%A_ScriptDir%\QuickSwitch.ico"

For compilation, you need to select the .exe AHK v1.1.+ with Unicode support. They can be found here:

C:\Program Files\AutoHotkey\v1.1.37.02\AutoHotkeyU64.exe
C:\Program Files\AutoHotkey\v1.1.37.02\AutoHotkeyU32.exe
# version may vary

Directives are used for compilation, but it can be set manually at each compilation using the ahk2exe GUI. But this is inconvenient because you will need to manually perform different actions each time you run it and you lose the benefits of directives:

Script compiler directives allow the user to specify details of how a script is to be compiled via Ahk2Exe. Some of the features are:

  • Ability to change the version information (such as the name, description, version...).
  • Ability to add resources to the compiled script.
  • Ability to tweak several miscellaneous aspects of compilation.
  • Ability to remove code sections from the compiled script and vice versa.

Need help with

  • Auto-check for update (lib and setting)
  • AutoSwitch on clipboard change
  • Drag and drop any file field
  • Pin favourite paths
  • QTTabBar (get all tabs)
  • Autohotkey v2 port
  • New file managers support

About

Quickly Switch to the folder from any file manager.

Resources

License

Stars

Watchers

Forks

Packages

No packages published