Add option to push pasted item to bottom of the list#1178
Draft
merlondev wants to merge 11 commits intop0deje:masterfrom
Draft
Add option to push pasted item to bottom of the list#1178merlondev wants to merge 11 commits intop0deje:masterfrom
merlondev wants to merge 11 commits intop0deje:masterfrom
Conversation
merlondev
commented
Aug 13, 2025
since the line `throw Error("...")` didn't seem to work
this fixes sorting!
jameswomack
reviewed
Aug 30, 2025
jameswomack
left a comment
There was a problem hiding this comment.
I would love to see this get finished. Let me know if you want help with anything specific.
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important UPDATE!:
This pull request implements the feature requirement "Add option to push pasted item to bottom of the list" almost well already (but see "missing things" below, and maybe some slight improvements and interop with other Maccy features necessary).
I've noticed though, that this doesn't - in fact at all - help with the original goal I had with this issue, which was originally the goal of this PR.
(which is to implement a kind of "paste queue", where I can copy item1, copy item2, copy item3 and then paste, paste, paste emits item1, item2, item3 - in that order)
So I guess it's up to you @p0deje now, if you think it's worth it to add this functionality, for those that might (for whatever reason) need this.
Original Pull Request Description:
Add the option to move the item you just pasted to the bottom of the list.
(for now) Only when pasting via the Maccy ui!
when "paste automatically" option is enabled:
else
This is implemented by adding an extra sort criterion in
Sorter.sortenabled behind a boolean flag (in Defaults)This pull request is still a WIP, just to show a minimal sample implementation of this issue: #1175
Things that are still missing:
lastPastedAtthe solution is something like
historyItem.lastPastedAt = Date.distantPastin a place like.copy(item: HistoryItem)ASWELL AS.copy(text: String)