It is currently March 29th, 2024, 7:25 am

FileView Plugin: Sort by most most recently opened

Get help with creating, editing & fixing problems with skins
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

FileView Plugin: Sort by most most recently opened

Post by Krainz »

Hi!

Is there a way to sort the FileView Plugin files so that the most recently opened files appear before the others?

The current SortType=Date and SortDateType=Accessed don't seem to be working properly for some reason...
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: FileView Plugin: Sort by most most recently opened

Post by balala »

Krainz wrote:Is there a way to sort the FileView Plugin files so that the most recently opened files appear before the others?
Add to the parent measure the following options:

Code: Select all

SortType=Date
SortDateType=Accessed
SortAscending=0
Details: https://docs.rainmeter.net/manual-beta/plugins/fileview/#SortType
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Re: FileView Plugin: Sort by most most recently opened

Post by Krainz »

Doesn't seem to be working 100%.

When does the info refresh or update?

See the following gifv:

https://gfycat.com/BareQueasyAnemone

Dragon Age II should move up, shouldn't it?
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: FileView Plugin: Sort by most most recently opened

Post by eclectic-tech »

Krainz wrote:Doesn't seem to be working 100%.

When does the info refresh or update?

See the following gifv:

https://gfycat.com/BareQueasyAnemone

Dragon Age II should move up, shouldn't it?
Can't tell anything from the picture... please post your code so we can duplicate the issue.
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Re: FileView Plugin: Sort by most most recently opened

Post by Krainz »

eclectic-tech wrote:Can't tell anything from the picture...
If I'm sorting by most recently accessed, then Dragon Age should move up in the next time I open the launcher, because I just accessed it. It never moves.
eclectic-tech wrote:please post your code so we can duplicate the issue.

Code: Select all

[FVMeasure]
Measure=Plugin
Plugin=FileView
Path="#FolderLoc#"
ShowDotDot=0
SortType=Date
SortAscending=0
SortDateType=Accessed
ShowHidden=0
HideExtensions=1
Count=#MaxItem#
FinishAction=[!UpdateMeterGroup Items][!Redraw]
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: FileView Plugin: Sort by most most recently opened

Post by balala »

eclectic-tech thought you'll post the whole code, not just the parent FileView plugin measure...
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Re: FileView Plugin: Sort by most most recently opened

Post by Krainz »

That's 5600 lines of code, are you sure of that?

Either way, you can test it yourself with any FileView Plugin skin using those settings: if you open file #3, it won't move up to #1 in the next measure refresh/update.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: FileView Plugin: Sort by most most recently opened

Post by balala »

Krainz wrote:if you open file #3, it won't move up to #1 in the next measure refresh/update.
You're right. I don't have an answer yet, but will try to figure out what's happening.
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Re: FileView Plugin: Sort by most most recently opened

Post by Krainz »

balala wrote:You're right. I don't have an answer yet, but will try to figure out what's happening.
If I can store variables to an ini file the moment the file is accessed, then that may be done manually if there's the possibility of setting each item's index position to a variable, I think.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: FileView Plugin: Sort by most most recently opened

Post by balala »

Krainz wrote:If I can store variables to an ini file the moment the file is accessed, then that may be done manually if there's the possibility of setting each item's index position to a variable, I think.
I'm not sure I understood what would you like to store as a variable, when the file is accessed.