Author Topic: Changing default sorting column when configuring layout  (Read 9338 times)

xiubo

  • Contributor
  • Newbie
  • *****
  • Posts: 4
    • View Profile
Changing default sorting column when configuring layout
« on: October 27, 2015, 12:15:31 »
Hi Mathias,

I had been a TC user for years; I recently discovered Multi Commander and I instantly got excited --- it really feels like a quality piece of art. One of the features of MC that I loved most is the ability to sort folders together with files by date (I know some other file managers also have that but their implementations are nowhere near as fast as MC). The only problem with it is that the file explorer layout resets to sorting on file name for newly opened tabs --- I might missed something here, but if not could you allow the user to configure the default sorting column for the file explorer layouts?

Thanks,
Xiubo
« Last Edit: November 26, 2015, 16:45:53 by xiubo »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4271
    • View Profile
    • Multi Commander
Re: Changing default sorting column when configuring layout
« Reply #1 on: October 27, 2015, 13:26:28 »
Current new tabs are using default configuration.
But there are changes coming.

For now, You can create a new tab by script and then set the sorting.
for example a script of type Multi-Script that runs Multiple customcommands.

Code: [Select]
MC.Explorer.NewBrowser PATH=D:\
MC.Explorer.Sort COL=3 ORDER=ASC

xiubo

  • Contributor
  • Newbie
  • *****
  • Posts: 4
    • View Profile
Re: Changing default sorting column when configuring layout
« Reply #2 on: October 27, 2015, 14:49:54 »
Hi Mathias,

Thanks for your swift reply. The use case I was talking about is:
  • I have several tabs locked to my favourite folders;
  • the option "Open new tab when going to new location if tab is locked" from "Explorer Panel Settings > Tab" is checked
  • whenever I navigate into folders through these locked tabs, new tabs are opened automatically.
I am afraid the Multi-Script won't help in such case (unless it supports event-based extension-point/listener).

Still thank you for the update --- it's always glad to hear from the developer.

Regards,
Xiubo
« Last Edit: October 27, 2015, 14:54:10 by xiubo »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4271
    • View Profile
    • Multi Commander
Re: Changing default sorting column when configuring layout
« Reply #3 on: October 27, 2015, 15:08:22 »
Well The PATH variable do not need to be fixed.
It can be the path to the Folder in focus.

ex
MC.Explorer.NewBrowser PATH="${focusfilepath}"

Then if you assign that command to a hotkey it will open the folder in focus as a new tab

xiubo

  • Contributor
  • Newbie
  • *****
  • Posts: 4
    • View Profile
Re: Changing default sorting column when configuring layout
« Reply #4 on: November 24, 2015, 12:19:40 »
Hi Mathias,

Just received the v5.8 update and wanted to say thanks --- the default sorting option for new tabs is very helpful and practically solves my problem!

A minor suggestion: though I don't need this personally, but maybe the options for default tabs can be implemented per column layout so that each layout can have separate default sorting columns (please see the attached picture for what I meant)?

Thanks again for creating such a wonderful piece of software.

Regards,
Xiubo

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4271
    • View Profile
    • Multi Commander
Re: Changing default sorting column when configuring layout
« Reply #5 on: November 24, 2015, 18:42:11 »
Good idea.. however, I don't want to spread out settings for new tabs all over the place.. Settings for new tabs should be in one place.
Also the Column layout and how sorting for new tabs are set are very disconnected from each other. The architecture of how MC is built does not allow that easily. It would require to much work.