nakkag / CLCL

78 stars 14 forks source link

[Feature request] Autoselect second clip in history #9

Open DangerPie opened 9 months ago

DangerPie commented 9 months ago

Please add autoselect the second value in the clipboard history.

When I call up a history, I often want to insert the previous value; To do this, just press the history hotkey and enter. ClipX has this function - it's convenient.

autoselect_second

AndreyKaiu commented 9 months ago

Please add autoselect the second value in the clipboard history. When I call up a history, I often want to insert the previous value; To do this, just press the history hotkey and enter. ClipX has this function - it's convenient. Interesting. Alt+V the menu and always display 2. Or change Alt+C so that 1 is always 2. But even now you can insert it like this, but I press Alt+C+2. You can try in the menu settings to auto-select 2 items from the top. The problem is that the menu can be changed in any way you want. Perhaps for my version https://github.com/AndreyKaiu/CLCL-EN-RU-JP-Plugins I will do it as you want, as soon as I have time.

DangerPie commented 9 months ago

Thanks.

I don't want to change the history range or any special hotkey.

I want the history popup to appear with the second clip selected as I showed.

AndreyKaiu commented 9 months ago

I don't want to change the history range or any special hotkey. I want the history popup to appear with the second clip selected as I showed.

I can only show this implementation in my version https://github.com/AndreyKaiu/CLCL-EN-RU-JP-Plugins

CLCL 2135

DangerPie commented 9 months ago

Thanks. But I think that you only need to take into account the history of the clipboard (including the current value): if there are fewer than N entries, then select the last one; if the history is empty, do not select anything.

N=2, "no history" in the clipboard and restarted CLCL: no_history

empty_clipboard

AndreyKaiu commented 9 months ago

Thanks. But I think that you only need to take into account the history of the clipboard (including the current value): if there are fewer than N entries, then select the last one; if the history is empty, do not select anything.

It is only highlighted, and the choice is up to the user. In normal use there will always be 2 buffers, at least the one that remains in history from the last time. So I won’t complicate this, since the story can be placed not at the top, but somewhere in the middle. Everything should be simple, then there will be fewer problems.