Toolbar buttons for "sort by name" & "sort by modified date"

Features wanted...
ghost zero
Posts: 842
Joined: 26 Apr 2010 17:48

Toolbar buttons for "sort by name" & "sort by modified date"

Post by ghost zero »

I switch between using "sort by name" and "sort by modified date" a lot (ascending for both). So I would like to see toolbar buttons added for them like the ones for the different view modes (in which the button stay pressed down to help indicate which mode is in use). I know there is the current drop down button for this but I don't prefer it--because it is a slower way of doing things. Any chance for this to be made?

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by zer0 »

You're free to make such TB buttons yourself as per function IDs below:

Code: Select all

View / Current Tab / Sort By / Name	    #321
View / Current Tab / Sort By / Modified	#326
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

Minimax
Posts: 93
Joined: 12 Dec 2009 15:56
Location: Switzerland

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by Minimax »

Below are my shortcuts. The IDs can be used for Customized Toolbar buttons.
To see the attached files, you need to log into the forum.

ghost zero
Posts: 842
Joined: 26 Apr 2010 17:48

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by ghost zero »

i know we can make custom buttons, but the problem with them is that they don't stay pressed to indicate status like the real buttons do.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by zer0 »

ghost zero wrote:i know we can make custom buttons, but the problem with them is that they don't stay pressed to indicate status like the real buttons do.
Visual feedback is provided by the list with its light grey fill of the column by which sorting is done. As for CTBs not staying pressed -- it's not a bug, it's not yet possible to define such states.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

ghost zero
Posts: 842
Joined: 26 Apr 2010 17:48

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by ghost zero »

part of my request is to have that stay-pressed look on the button. it also helps this concept stay consisent with the "views" toolbar buttons.

admin
Site Admin
Posts: 66362
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by admin »

ghost zero wrote:I switch between using "sort by name" and "sort by modified date" a lot (ascending for both).
I use the same orders most of the times, but I'm surprised by your "ascending for both". Do you really mean "oldest files on top"? I always switch between Name (asc.) and Modified (desc.), and I made a script for this:

Code: Select all

// toggle sort
  if (getinfo("sort") == "Name,a") {
    sortby "Modified","d";
  } else {
    sortby "Name","a";
  }
I agree that pressed-state buttons would be good too, especially for non-details views where is no other indicator of the sort order. But I don't want to end up making a button for each of the many sort orders...

I'm thinking about a way to add pressed-state to user buttons...

ghost zero
Posts: 842
Joined: 26 Apr 2010 17:48

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by ghost zero »

I use the same orders most of the times, but I'm surprised by your "ascending for both". Do you really mean "oldest files on top"? I always switch between Name (asc.) and Modified (desc.), and I made a script for this:
i mostly use list view and thumbnail view (not details view). so i see this as not a matter of "oldest files on top", but a matter of them being listed in sequential order--with the newest files arriving at the end of the order (it's visually intuitive).
I agree that pressed-state buttons would be good too, especially for non-details views where is no other indicator of the sort order. But I don't want to end up making a button for each of the many sort orders...
i realize there are a lot of sort options, but it would be useful to have pressed-state buttons for the most often used ones that i mentioned (i realized you picked out the most used ones for the views buttons). thanks for the script, i'll try to use this for now. it would still be great if the pressed-state buttons could be made though.
Last edited by ghost zero on 09 May 2010 10:30, edited 1 time in total.

ghost zero
Posts: 842
Joined: 26 Apr 2010 17:48

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by ghost zero »

yikes, i just realized i ran out of custom toolbar buttons! can more than 16 be added?

ghost zero
Posts: 842
Joined: 26 Apr 2010 17:48

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by ghost zero »

can an official button be made for this? this type of sorting toggle is often used.

ghost zero
Posts: 842
Joined: 26 Apr 2010 17:48

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by ghost zero »

also for the right click menu method, is there a way to make modified (ascending) be the default on the first click, instead of descending?

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by zer0 »

ghost zero wrote:can an official button be made for this? this type of sorting toggle is often used.
it'd be easier for Don to add a vanilla CTB and let you customize it as you wish than add CTB for each type of sorting currently possible in XYplorer.
ghost zero wrote:also for the right click menu method, is there a way to make modified (ascending) be the default on the first click, instead of descending?
You can modify Don's script (above) to achieve this.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

ghost zero
Posts: 842
Joined: 26 Apr 2010 17:48

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by ghost zero »

but i ran out of ctb and can't make anymore. so it would be helpful to have it as an official button.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by zer0 »

ghost zero wrote:but i ran out of ctb and can't make anymore. so it would be helpful to have it as an official button.
You can combine multiple commands into one CTB ;) And it's better to have a vanilla CTB as that allows people to tweak it how they want. Factory-included TB buttons aren't customizable ;)
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

ghost zero
Posts: 842
Joined: 26 Apr 2010 17:48

Re: Toolbar buttons for "sort by name" & "sort by modified date"

Post by ghost zero »

combining commands into one ctb is not the same as having a dedicated button. the activation method is different.

basically, i would like to see an official button for this (like the ones for the views). or more ctb because i'm out of them.

Post Reply