ian4hu / Clipy

Clipboard extension app for macOS.
https://clipy-app.com
MIT License
253 stars 17 forks source link

Sort history by "Date created": latest copied should be at the top #30

Closed afeblot closed 4 years ago

afeblot commented 5 years ago

Hi, In version 1.2.8, when the sort order is set to "Date created", we get the latest copied at the bottom. It would make more sense to have it at the top, as recently copied items are more likely to be pasted than older ones.

Could you either

Thanks

afeblot commented 4 years ago

Any comment? agree? disagree?

ian4hu commented 4 years ago

sort by Date created is ascending or descending?

afeblot commented 4 years ago

I'm not sure how to understand ascending or descending in this context, but currently, with Date created, the most recent items get displayed at the bottom of the list. I'd be happy to have them instead at the top of the list.

Somehow related issue: if I set

ian4hu commented 4 years ago

I'm not sure how to understand ascending or descending in this context, but currently, with Date created, the most recent items get displayed at the bottom of the list. I'd be happy to have them instead at the top of the list.

Somehow related issue: if I set

  • Max clipboard history size to 30 items
  • Number of items place inline to 30 items too (because I don't want any items in a folder) Then, after the first 30 copied items in the list, no further copied items is added to the list, whereas they should rotate, I suppose (oldest items should be discarded to allow new items to be added to the list).

The history is already rotated.

afeblot commented 4 years ago

@ian4hu , thanks for the fix of #35 through #36. However this issue (#30) is not fixed: This issue is asking for a way to reverse the sort order when using sort by "Date Created". Quoting my initial request:

Could you either

  • reverse the sort,
  • or add a 3rd sort choice: "Reversed Date Created",
  • or add a distinct new option to chose the sort direction?

Thanks

ian4hu commented 4 years ago

IMO, Sort by Date Created is a total different to Last Used, and it will make history sort by create time with natural order (the last created will on the bottom). So if there is a sort order like Reversed Date Created, what the different compare with last used?

ian4hu commented 4 years ago

Could you explain your situation about the Reversed sort? @afeblot

afeblot commented 4 years ago

Ah, you're right. I think your change in #36 also fixed the behavior of the "Last used" ordering, which is now exactly as what I expect, whereas it really was not initially. Thanks and sorry. 👍