Tab Properties – option to show a fixed folder level as tab name

Started by Niavlys89, November 18, 2026, 09:53:45

Previous topic - Next topic

Niavlys89

Hello dear devellopers,

First of all, thank you for Multi Commander, I use it every.

My use case: our project folders on the network drive look like this:

  Z:\03_CHANTIERS\6347_STEF Logistique Aurice (toit)\4_SUIVI BUDGETAIRE\TS\echelle crinoline\

The interesting part for me is always the 3rd level (the project name,
"6347_STEF Logistique Aurice (toit)"). But as soon as I go into subfolders,
the tab shows "echelle crinoline", "TS", etc., and with 10+ tabs open I can
no longer tell which tab belongs to which project.

Feature request: in the Tab Properties dialog, add an option
"Subfolder number to display" (see attached mock-up):

 
  • Folder level at  [ 3 v ]

When enabled, the tab name would automatically be the folder at that level
of the current path (here level 3 = "6347_STEF Logistique Aurice (toit)"),
and it would update when I navigate to another project. If the current path
is shorter than that level, the normal folder name would be shown.

It would also be very useful to have it available from scripts, for example:

  MC.Explorer.SetTabProp TABNAMELEVEL=3

and ideally as a global setting for new tabs as well.

What I tried: a MultiScript button using MC.Explorer.SetTabProp TABNAME="..."
pre-fills the name in the Tab Properties dialog, but the name is only applied
on the tab after I open the dialog and validate it manually. A parameter to
also set "Force tab name" from SetTabProp (e.g. TABFORCENAME=1) would already
solve most of my problem.

Thanks in advance!

Mathias (Author)

Interesting. But I feels like this kind of feature only are valid for some folder.
And will be annoying if you navigate away from it.

But in next major version, v17. There will be a feature where you can specify some settings that will be change for some folders.  "Folder Specific settings". I fell that this feature might work better there. Then it only gets activated from specific folders where it is useful and not everywhere.
I add it to list and see if it is possible.



Niavlys89

Thanks a lot, Folder Specific Settings sounds like the perfect place for it.
In my case I would set it only for Z:\03_CHANTIERS\ (show level 3 as tab name),
and everywhere else the tab name would stay normal.

In the meantime, would it be possible to add a small parameter to
MC.Explorer.SetTabProp to also turn on "Force Tab Name"
(e.g. TABFORCENAME=1)? Right now TABNAME only pre-fills the name in the
Tab Properties dialog, so it is necessary to open the dialog and click Apply for it
to show on the tab. With that parameter, the MultiScript button would
already work today.

Thanks again for your work and fo Multi Commander!

Mathias (Author)

No new option is needed. SetTabName="name"  should enable the Force tabname.. and settings it to "" (blank) should remove it.

Niavlys89

Thanks! It almost works (latest version from the website, v16.6 build 3240,Windows 11).

This is my User Defined Command (MultiScript). I run it from a button in the Button Panel at the bottom of the window:

  @var $path  = GetSourcePath();
  @var $parts = StrTokenize2Array($path, "\\");
  @var $index = 2;

  if( arrayCount($parts) > $index )
  {
    @var $name = $parts[$index];
    MC.Explorer.SetTabProp TABNAME="{$name}"
    MC.Explorer.Goto PATH="{$path}"
  }
or
  @var $path  = GetSourcePath();
  @var $parts = StrTokenize2Array($path, "\\");
  @var $index = 2;

  if( arrayCount($parts) > $index )
  {
    @var $name = $parts[$index];
    MC.Explorer.SetTabName="{$name}"
  }
(Actually the last one doesn't even change de name in the properties tab)

For the first one the name is set and "Force Tab Name" is checked in Tab Properties, but the tab label in the Explorer Panel is not updated. It still shows the current folder name.

The forced name only appears on the tab if I:
- open Tab Properties and click Apply (without changing anything), or
- close and restart Multi Commander.

Navigating to the same folder again (MC.Explorer.Goto, as in the script above) or MC.Explorer.Refresh does not update it.

So it looks like the tab label is just not refreshed after SetTabProp.


Mathias (Author)

it is fixed for the next version.  So doing
MC.Explorer.SetTabProp TABNAME="My Name"

it will enabled also the force name property. so no need to go to that dialog and do it..  it was a bug that it did not do that.  settings blank name TABNAME="" will reset it. and remove the force name flag