p0deje / Maccy

Lightweight clipboard manager for macOS
https://maccy.app
MIT License
13.15k stars 553 forks source link

Force set window size #68

Closed LionelSelie closed 4 years ago

LionelSelie commented 5 years ago

Hi,

I absolutely love Maccy and I hope we will be able to pin items soon, but I'd like to be able to set that window size because if you copy many items, it seems the window length increases.

Is there a command we can set to force the window size is height?

If not, could this be implemented, to be able to set a flag? Thanks

p0deje commented 4 years ago

Hi. I don't quite follow what do you mean by window size. Would you like to limit the height of the window so it doesn't show on the whole screen?

LionelSelie commented 4 years ago

Hi, thanks for looking into this! Allow me to visualize this:

This would be a more preferred window size: https://really.iamno.pro/RBuX6Wom

But if we add more items, it starts to look like this: https://really.iamno.pro/mXumR5d2

So, what I'd like to do is tell the window to not be vertically longer, than a set amount. Maybe this can be done by setting the number of items visible when opening Maccy, for instance, after 5 items, add the next item, but only visible after mousing over an arrow. Or this to be achieved by a certain amount of pixels?

Not sure what would be the best way to handle this, but having a really long list to scroll through (Yes, I am aware we have a search option), is personally difficult for me.

Not sure if I expressed myself well here, but I hope the above, made sense?

Thanks, again!

p0deje commented 4 years ago

I get it thanks. I am not sure if it's doable via default macOS menu system, but I'll see how it can be done.

LionelSelie commented 4 years ago

<3

p0deje commented 4 years ago

By quick googling and checking the documentation of NSMenu, NSMenuDelegate it seems to be impossible to do in an obvious way. There is no way to access and modify the view of NSMenu. I believe it's possible to hack this around somehow, but I am not sure how to do that.

I'll keep this issue open for discussing and I'll appreciate any tips or PRs.

LionelSelie commented 4 years ago

Hmm.. thanks for looking into this. Could you give a look at iPaste which does this? I think after the 5th item copied, it creates a little arrow to see later items. Not sure if that'll help?

p0deje commented 4 years ago

Yes, I guess could do that creating a submenu. However, this means that one can't just scroll down the menu to see the items and has to navigate these submenus.

I'd prefer to just see the same menu with the history list I currently see but with the limited height so that when there are too many items, there is a way to scroll using mouse or arrow up/down keys.

alexjousse commented 4 years ago

Yes, I guess could do that creating a submenu. However, this means that one can't just scroll down the menu to see the items and has to navigate these submenus.

I'd prefer to just see the same menu with the history list I currently see but with the limited height so that when there are too many items, there is a way to scroll using mouse or arrow up/down keys.

Agreed with this, coming from ClipMenu, I hated the folder and expandable arrows instead of just having a menu where you can navigate with up/down keys!

p0deje commented 4 years ago

Closing since there is no obvious way to implement this without folders and I'm not going to add folders support (similar to #40)

p0deje commented 3 years ago

Actually, please follow #229 as it seems like I've found a way to implement something similar.