I've had a look around, but can't seem to find a way to globally change how dates and times are displayed in all of my listview tabs (current and future), but without changing any of the other listview settings for any of the current tabs. Does anyone know how to do this?
Basically I want to be able to make all list views display ISO 8601 dates and times but without affecting anything else.
Thanks.
Make all list views display ISO 8601 dates and times
-
- Posts: 744
- Joined: 28 Jul 2006 13:15
- Location: Kent, UK
- Contact:
Make all list views display ISO 8601 dates and times
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)
Windows 10 Pro x64 (everywhere except phone…)
Re: Make all list views display ISO 8601 dates and times
just to confirm, 2014-12-02 15:29:23Z this is how XY displays ISO 8601 dates.
I suggest editing the pane.ini files.
Set all Date and Time keys under each [List*] section to
alternatively, run this script to do that automatically:
(when creating new tabsets, ensure their pane.ini also has those values set)
ed. fix: previously temp loaded 1 and 2, but they could be current tabsets
I suggest editing the pane.ini files.
Set all Date and Time keys under each [List*] section to
Code: Select all
Date=8
Time=4
Code: Select all
$paneinis = "<xypane1>\pane.ini|<xypane1>\t\pane.ini|<xypane2>\pane.ini|<xypane2>\t\pane.ini", r;
$sections = "ListBrowse|ListFind|ListDrives|ListNetwork|ListRecycler|ListBrowsePD|ListFindPD|ListDrivesPD";
foreach ($ini, $paneinis){
if (exists($ini)!=1){new($ini, file); wait 4;}
foreach ($section, $sections){
setkey 8, 'Date', $section, $ini;
setkey 4, 'Time', $section, $ini;
}
}
$tabset1 = <xypane1>;
$tabset2 = <xypane2>;
//fix: previously temp loaded 1 and 2, but they could be current tabsets
$tabsets = <crlf>.listfolder(getpathcomponent(<xypane1>,path),,6,<crlf>).<crlf>;
$c=0; while(strpos(<crlf>.$c.<crlf>,$tabsets) != -1){$c++}
$tmp_tabset = $c;
tabset(load, $tmp_tabset, 1);
tabset(load, $tabset1, 1);
tabset(load, $tmp_tabset, 2);
tabset(load, $tabset2, 2);
ed. fix: previously temp loaded 1 and 2, but they could be current tabsets
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Posts: 744
- Joined: 28 Jul 2006 13:15
- Location: Kent, UK
- Contact:
Re: Make all list views display ISO 8601 dates and times
Thanks for the info Sammay.
Unfortunately the script didn't do the trick for me (I have a stupid number of tabs) but a good old bit of find and replace across all files in the /Data/Panes directory seems to have done the trick.
Unfortunately the script didn't do the trick for me (I have a stupid number of tabs) but a good old bit of find and replace across all files in the /Data/Panes directory seems to have done the trick.
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)
Windows 10 Pro x64 (everywhere except phone…)
Re: Make all list views display ISO 8601 dates and times
Huh, sorry. glad it worked out well anyways.lukescammell wrote:Thanks for the info Sammay.
Unfortunately the script didn't do the trick for me (I have a stupid number of tabs)
BTW, the options you changed are also available in GUI in the Date columns' context menu. But a quick search-replace is way faster than switching to each tab and clicking thru menus.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Site Admin
- Posts: 60558
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Make all list views display ISO 8601 dates and times
Hm, this setting is global (well, per list mode: Browse, Find, Drives etc...). You just need to change it once in any tab and it is applied to all tabs.SammaySarkar wrote:Huh, sorry. glad it worked out well anyways.lukescammell wrote:Thanks for the info Sammay.
Unfortunately the script didn't do the trick for me (I have a stupid number of tabs)
BTW, the options you changed are also available in GUI in the Date columns' context menu. But a quick search-replace is way faster than switching to each tab and clicking thru menus.
FAQ | XY News RSS | XY Twitter
Re: Make all list views display ISO 8601 dates and times
Hm, I have "Apply list styles globally" unchecked, and only saw the changes update in current tab. Confusion.admin wrote:Hm, this setting is global (well, per list mode: Browse, Find, Drives etc...). You just need to change it once in any tab and it is applied to all tabs.SammaySarkar wrote:Huh, sorry. glad it worked out well anyways.lukescammell wrote:Thanks for the info Sammay.
Unfortunately the script didn't do the trick for me (I have a stupid number of tabs)
BTW, the options you changed are also available in GUI in the Date columns' context menu. But a quick search-replace is way faster than switching to each tab and clicking thru menus.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Site Admin
- Posts: 60558
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Make all list views display ISO 8601 dates and times
Correction: It's per pane and mode.
FAQ | XY News RSS | XY Twitter
Re: Make all list views display ISO 8601 dates and times
Right, realized that just now. XY's tab/pane/mode/... style settings is not my forte...
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Site Admin
- Posts: 60558
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Make all list views display ISO 8601 dates and times
They are a bit complex because they mirror something complex: average human behavior and expectation patterns. The ultimate goal here is to be as little surprising as possible to as many users as possible.
FAQ | XY News RSS | XY Twitter
-
- Posts: 744
- Joined: 28 Jul 2006 13:15
- Location: Kent, UK
- Contact:
Re: Make all list views display ISO 8601 dates and times
GUI is hard
Just glad the settings for most things in XY or text formatted, so you can edit them directly if you need to.
Just glad the settings for most things in XY or text formatted, so you can edit them directly if you need to.
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)
Windows 10 Pro x64 (everywhere except phone…)