Video - Smart Style Switcher w/ AutoHotPie

Directory Opus Customization: Learn to create commands for persistent pane layout switching (Dual/Single/Single+Thumbs) and essential utilities: Light/Dark theme toggle & Open file in text editor. See how to integrate them into a lightning-fast pie menus via AutoHotPie.

Steps:

  1. Set up your default folder format (will appear in the Dual style)
  2. Create new styles with the following names: Single_1, Single_1 (Thumbnails), and Dual_1
  3. Configure the folder format for Single_1 and Single_1 (Thumbnails) in the style settings
  4. Create user commands: to_single, to_single_t, to_dual — with code below
  5. Assign hotkeys (e.g., Ctrl+Alt+Shift+S, Ctrl+Alt+Shift+T, Ctrl+Alt+Shift+D)
  6. Create user command open_in_st
  7. Assign hotkey for open_in_st
  8. Install AutoHotKey
    https://www.autohotkey.com/
  9. Install AutoHotPie
    GitHub - dumbeau/AutoHotPie: Radial menus in Windows, aka PIE MENYOOS!
  10. Configure AutoHotPie with the corresponding hotkeys.

To call piemenu I use the side mouse button and it is very convenient

Scripts:


// → To Single_1

//Dual_1 → Single_1
@if:Prefs STYLE="Dual_1"
Set SOURCE=toggle
Go TABGROUPSAVE="!nocloseall,SavedInactivePanel"
Set SOURCE=toggle
Prefs STYLE="Single_1"
//Single_1 (Thumbnails) → Single_1
@if:Prefs STYLE="Single_1 (Thumbnails)"
Prefs STYLE="Single_1"
// → To Single_1 (Thumbnails)

//Dual_1 → Single_1 (Thumbnails)
@if:Prefs STYLE="Dual_1"
Set SOURCE=toggle
Go TABGROUPSAVE="!nocloseall,SavedInactivePanel"
Set SOURCE=toggle
Prefs STYLE="Single_1 (Thumbnails)"
Set FORMAT=!folder 

//Single_1 → Single_1 (Thumbnails)
@if:Prefs STYLE="Single_1"
Prefs STYLE="Single_1 (Thumbnails)"
Set FORMAT=!folder
// → To Dual

//Single_1 → Dual_1
@if:Prefs STYLE="Single_1"
Prefs STYLE="Dual_1"
Set SOURCE=toggle
Go TABGROUPLOAD="SavedInactivePanel" TABCLOSEALL=yes
Set SOURCE=toggle
Set FORMAT=!folder
 
//Single_1 (Thumbnails) → Dual_1
@if:Prefs STYLE="Single_1 (Thumbnails)"
Prefs STYLE="Dual_1"
Set SOURCE=toggle
Go TABGROUPLOAD="SavedInactivePanel" TABCLOSEALL=yes
Set SOURCE=toggle
Set FORMAT=!folder

Open in Sublime Text. Change path to your text editor!

open_in_sublime

"C:\Users\WDAGUtilityAccount\Downloads\sublime_text_build_4200_x64\sublime_text.exe" {filepath}

1 Like