SpicyRicecaker / clipboard-inserter-plus-plus

0 stars 0 forks source link

Could newly copied text appears on top? #1

Open minshifu opened 2 years ago

minshifu commented 2 years ago

Thank you for your cute little addon which is very useful. Could newly copied text appears on top of the page? Now the most recent text appears on the bottom and users are supposed to scroll to find it. Best regards!

SpicyRicecaker commented 2 years ago

I added an options menu with 26c6a23d6721fc81849c3eb3008df3e4ced0f908, which upon being clicked, allows you to choose to sort the copied text by newest first. Though, because of how scroll snapping works, sorting by newest first will snap to the topmost edge (instead of the bottom edge). Hopefully that's not too big of a deal.

I've uploaded the latest binary to the github releases of this project if you wish to install it manually, but the live version should be up on mozilla addons in ~1 day. Feel free to try it out and let me know what you think!

Cheers!

minshifu commented 2 years ago

I added an options menu with 26c6a23, which upon being clicked, allows you to choose to sort the copied text by newest first. Though, because of how scroll snapping works, sorting by newest first will snap to the topmost edge (instead of the bottom edge). Hopefully that's not too big of a deal.

I've uploaded the latest binary to the github releases of this project if you wish to install it manually, but the live version should be up on mozilla addons in ~1 day. Feel free to try it out and let me know what you think!

Cheers!

Thank you so much for your prompt response. It works well so far. Besides, would it possible for the addon to support some popup search tools like this one ( https://addons.mozilla.org/zh-CN/firefox/addon/swift-selection-search/ )? That is ,when text is selected, a menu will pop up from which you can choose differenct search engines. Best regards!

SpicyRicecaker commented 2 years ago

This is a bit more complicated, as firefox addons aren't allowed to access the content pages of other addons, so I would have to look into injecting html into an existing webpage of the user's choice

SpicyRicecaker commented 2 years ago

clipboard inserter does exactly this (it just doesn't provide a pretty webpage to put the clipboard items) so if you need something to use while I'm working on implementing this then I would recommend using that

minshifu commented 2 years ago

This is a bit more complicated, as firefox addons aren't allowed to access the content pages of other addons, so I would have to look into injecting html into an existing webpage of the user's choice

Thanks a lot !