Defer reading folders when command sequence visits multiple

  • Create a toolbar button with this code:
    Go TABSELECT=last
    Go TABMOVE=-2
    Go C:\ NEWTAB OPENINDEST
    
  • Run Prefs PAGE="autoloading" and ensure that folders aren't read any earlier than on tab activation.
  • Run Prefs PAGE="foldertabgroups" to set up a tab group.
  • Create a new tab group "tmp" with paths C:\ and C:\non-existent in that order with the first one being the active tab (indicated by its text being bold).
    • Instead of C:\non-existent, ideally rather use a path that can more easily be recognized as attempted to load like the shell path ::{208D2C60-3AEA-1069-A2D7-08002B30309D} ("My Network Places"), which at least for me takes 30 seconds to load every time.
    • Don't forget to click "Apply".
  • Open the tab group in a new single-display lister by running Go NEW=nodual,notree,nometapane,noviewpane,noutilitypanel TABGROUPLOAD=tmp
  • Run the toolbar button initially created.
    • Problem: The folder only visited intermediately by the command sequence is read. In the case of ::{208D2C60-3AEA-1069-A2D7-08002B30309D}, this means blocking for 30 seconds, but it may also be undesired in other cases (HDD spin-up or whatever).

Possible solutions that come to mind:

  • Always defer reading the active tab until the end of the code.
  • Provide an @... command modifier that, when used, defers reading the active tab until the end of the code.