Is there a way to get the current folder format on the scripting side? I checked the docs, but couldn't find a property on the tab/format etc. objects that would allow this. And what about the format lock status, it's not available either right now, am I correct? I'd like my content detection overrider to take account for the format lock and the current folder format.
If you confirm, you might guess what my next post is going to be about. Thank you! o)
I'm not sure what you mean by "current folder format". You can use the tab.format object to query the folder format options in a tab - is that what you mean?
There's no way to get the lock state at the moment.
By "current format" I was thinking of the same kind of information you get, when hovering the mouse over the format-lock icon in the status bar. So I could fetch the name of a predefined format or what formats and changes led to the current lister format.
Ok, confirmed - so I wasn't blind while checking the documentation, sadly that happens. o)
Thanks for taking the time!
In case you have fun making these accessible by a script someday, I'll have fun making use of them! o)
We could provide the actual text of that tooltip to scripts but it's hard to see how it could be really useful, especially as it will change for different languages.
Opus doesn't keep track of that information in any kind of raw format - it's simply a string that's built up as changes occur.
Adding the format lock state is simple, we can put that in the next update.
Actually I just realised you can get the lock state using Command.IsSet, since the Set command lets you control the format lock using the FORMATLOCK argument, e.g.:
So I obviuosly did miss that in the docs, but maybe I just did not recognize it, as I did not expect to find it there, don't know (but I swear I even used ctrl-f o).
I probably repeat myself to death, but thanks for remembering as well as considering implementing it! o)) I tried it already, it works a treat!