Closed eco-nz closed 3 years ago
@eco-nz Not totally sure what you mean. Would sorting files alphabetically before adding to the viewer be ok?
This may be a duplicate @gillins. I think he wants to be able to sort where there are names like foo_Mar-2019_baa
- I think you indicated you may have addressed this before.
ping @shepjd
@shepjd I was thinking of sorting the filenames in alphabetic order before adding them so the filename aa.img
will be at the bottom and zz.img
will be at the top. Does that makes sense, or should it be in the other order?
I assume your filenaming convention still gives you a chronological order when sorting alphabetically?
I think this referred to when I have used month names (eg nz_jan.kea, nzfeb.kea) and then done "tuiview nz???.kea" or something like that, really my fault for shit names, probably nothing actually needs doing
Yeah month names are a pain because they never sort the way you want (and not keen to hardcode a filenaming convention into tuiview). If you used month numbers then the sorting would make sense (and could be sorted in the shell as a bonus).
I agree, I use the shell to load groups of files, I will just improve the naming
I'm wondering if there is still an argument for having sorting of the filenames selected from the file open dialog? Either (1) sort the filenames from the new wildcard expansion (just noticed this doesn't happen) or (2) sort any files selected. ATM files get added to the viewer in the order they were selected (is this always what you want? - not sure).
hmmm, I think sorting a wildcard expansion sounds good
Just created a PR here https://github.com/ubarsc/tuiview/pull/17 - will merge unless you have any objections?
no objections from me
From: Sam Gillingham @.> Sent: Thursday, September 9, 2021 11:42 AM To: ubarsc/tuiview @.> Cc: James Shepherd @.>; Mention @.> Subject: Re: [ubarsc/tuiview] Sort multiple layers by dates in name (#12)
Just created a PR here #17https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fubarsc%2Ftuiview%2Fpull%2F17&data=04%7C01%7Cshepherdj%40landcareresearch.co.nz%7C02236815fd1a419b920908d9732247c0%7C43050530b3c74cd2a11cb826b2604b5b%7C0%7C0%7C637667413338662989%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=7xr8gdNk%2B65eO8QNiP6N2F706ReC03XzWZknJBjMtec%3D&reserved=0 - will merge unless you have any objections?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fubarsc%2Ftuiview%2Fissues%2F12%23issuecomment-915645048&data=04%7C01%7Cshepherdj%40landcareresearch.co.nz%7C02236815fd1a419b920908d9732247c0%7C43050530b3c74cd2a11cb826b2604b5b%7C0%7C0%7C637667413338662989%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Ak6tRk6G3aOEGz8ETjEUtOa5bDkKn8hQaQ2RxhBXOm4%3D&reserved=0, or unsubscribehttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAUQY3GDROU6CQ5KYNUB7A5LUA7YE7ANCNFSM464RKINQ&data=04%7C01%7Cshepherdj%40landcareresearch.co.nz%7C02236815fd1a419b920908d9732247c0%7C43050530b3c74cd2a11cb826b2604b5b%7C0%7C0%7C637667413338672951%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=lHtiQmhFYukayjZynFYqEixf6GFCRWEIby0uAUeeN0w%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cshepherdj%40landcareresearch.co.nz%7C02236815fd1a419b920908d9732247c0%7C43050530b3c74cd2a11cb826b2604b5b%7C0%7C0%7C637667413338672951%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=7pz%2FJTtBnUp7pi4DKk7GS%2BCsAZ9ihaRYNjP1XAd5LAA%3D&reserved=0 or Androidhttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Cshepherdj%40landcareresearch.co.nz%7C02236815fd1a419b920908d9732247c0%7C43050530b3c74cd2a11cb826b2604b5b%7C0%7C0%7C637667413338672951%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=apnWNPMPTz0L1mD3vNkXldQmE%2F5C%2FGStmq43lsYcyiw%3D&reserved=0.
Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
Sort multiple layers by dates in their filenames when non-iso dates are used - especially when short (3 char) and long month names are used.
Requested by James Shepherd