I'm been using this as a custom command for the double-click on file display background which saves me lot of time and clicks. They only issue I have is knowing which sort is in effect while in thumbnail mode. I'm making a feature request to add "currently sorted field" to the status bar code list, along with possibly an up/down arrow to indicate sort order.
In my experience Opus is full of useful things that are easy to miss simply because there are so many of them. There's probably a term for this condition.... Feature Blindness!
Hi guys. I made my two sort-buttons working BUT they stop working as soon as I disable the Type/Modified columns as you can see in this GIF:
The whole idea of having these buttons was, to save some space because I actually don't need to see the modified date and/or the type. I just want to be able to quickly sort.
Do you guys know, how I can sort without having to show the type/modified columns?
The columns need to be visible to sort by them. You can make it so the buttons add and remove the columns so you only have them there when sorting by them, if that would solve things.
The function you need depends on exactly how you want it to work; here are two options:
The first version assumes you will be removing the type column by right-clicking on it as shown in your animation, rather than using the button. The button adds the column if it's not there, and then sorts by it.
If type column is visible, sort by type column
If type column isn't visible, display and sort by type column
@toggle:if set SORTBY=type
@if:set COLUMNSTOGGLE=type
set SORTBY=type
@if:else
set COLUMNSADD=type SORTBY=type
The second version will toggle the column on and off entirely from the button.
If type column is visible, remove it and sort by name
If type column isn't visible, display and sort by type column
@toggle:if set COLUMNSTOGGLE=type
@if:set COLUMNSTOGGLE=type
set COLUMNSREMOVE=type SORTBY=name
@if:else
set COLUMNSADD=type SORTBY=type
Thank you very much! Here is my little snippet based on your code. Unfortunately it doesnt work. It seems to always sort by name again (I guess removing the column is something which DO doesn't like)
set COLUMNSADD=type
Set Sortby=Type
Set Sortreverse=On
set COLUMNSREMOVE=type
But actually that's what I want. I want to sort, but I don't want to see the columns since they occlude a lot of space. That's why a added them again only so that the sort-algorithm can do its work and after that I hoped to be able to remove them again - with the sfiles stay sorted and not more space needed that necessary.
But it seems, that DO is not able to keep the sorting if the column isn't shown. Thanks for your help! It helped me a lot!
I had exactly this idea today, this seems like the ideal setting for the double click feature. Could somebody tell what exactly I would to write into the field in the settings for the double click action?
I.e., I am thinking, double clicking in file area -> toggling between sort by name (a....z) and sort by modified date (latest modified date .... oldest modified date).
I am too unskilled to know why @ifset:SORTBY=name Set SORTBY=modified @ifset:else Set SORTBY=name
does not work.
The forum messed up the old post and put everything on one line. I’ve fixed it above.
To use a multi-line command in a field that only takes a single line, first create a User-Defined Command out of it, then specify that as the thing to run.
(Not at my PC currently but can help more later if you need it.)