question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

difference between selecting and double clicking words

See original GitHub issue

Describe the bug

There seems to be a difference how snippets are selected. I noticed weird changes when pruning my history. When deleting an item, the list seemed to update weirdly. The entries didn’t just move up. Sometimes an old already removed entry showed up near the top again. It almost felt like the list was being shuffled.

Note: I have been hacking about for #100, so I wasn’t alarmed. But now I have the newest version installed by gnome, re-populated history and restarted gnome session.

How To Reproduce

Versions

GNOME Shell 42.4
GCH org.gnome.shell.extensions.clipboard-history cache-only-favorites false
org.gnome.shell.extensions.clipboard-history cache-size 100
org.gnome.shell.extensions.clipboard-history clear-history @as []
org.gnome.shell.extensions.clipboard-history confirm-clear true
org.gnome.shell.extensions.clipboard-history disable-down-arrow true
org.gnome.shell.extensions.clipboard-history display-mode 2
org.gnome.shell.extensions.clipboard-history enable-keybindings false
org.gnome.shell.extensions.clipboard-history history-size 1000
org.gnome.shell.extensions.clipboard-history move-item-first true
org.gnome.shell.extensions.clipboard-history next-entry @as []
org.gnome.shell.extensions.clipboard-history notify-on-copy false
org.gnome.shell.extensions.clipboard-history paste-on-selection false
org.gnome.shell.extensions.clipboard-history prev-entry @as []
org.gnome.shell.extensions.clipboard-history private-mode false
org.gnome.shell.extensions.clipboard-history process-primary-selection true
org.gnome.shell.extensions.clipboard-history strip-text false
org.gnome.shell.extensions.clipboard-history toggle-menu ['<Super><Shift>V']
org.gnome.shell.extensions.clipboard-history toggle-private-mode ['<Super><Shift>P']
org.gnome.shell.extensions.clipboard-history topbar-preview-size 10
org.gnome.shell.extensions.clipboard-history window-width-percentage 33

Steps to reproduce

  1. turn on process-primary-selection
  2. use something like this sample text:
1abcd
2abcd
3abcd
4abcd
5abcd
6abcd
7abcd
  1. double click on each word in order from top to bottom.

  2. open extension’s menu and look at list, looks fine.

  3. put mouse over topmost entry’s delete button.

  4. click away all seven entries

  5. repeat steps 3 to 6 (or not, up to you)

  6. select some unrelated text to get some new entries unrelated to our test

  7. this time don’t double click, instead select by dragging mouse, each word in order.

  8. open extension’s menu and look at list, also looks fine.

  9. repeat steps 5 and 6

  10. repeat steps 10 and 11

  11. it will look fine if you always draged from left to right. Otherwise you’ll only have the entries where you did from ltr or the last one if you did all from rtl.

Another test would be to select using keyboard, I didn’t get around to doing that.

Additional context (if a crash, provide stack trace)

no crash

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
SwissalpScommented, Oct 11, 2022

I’ve moved to another country, sorry for the long wait. Will test this out as soon as I can.

0reactions
SUPERCILEXcommented, Oct 15, 2022

Thanks for this!

Maybe I messed something up when hacking around.

Yeah, can you try resetting stuff? And are you sure you don’t have another program messing around with the clipboard? The logs are just nonsense: they basically show that every time you copy something, the ----s also get copied somehow. This could somehow be the extension’s fault if it tells the system to copy the ----s, but I can’t figure out the code path where that happens.

I’ll also try using the primary clipboard. I usually keep that option off, but I’ll turn it on for the next few days to see if I can get weirdness on my end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selecting Just the Word - Word Ribbon Tips
When you double-click on a word, the program automatically selects all the spaces along with the word. If there is a punctuation mark...
Read more >
Double click on a word selcts papragraph instead of word
Hi, Whenever I double-click ia single word in an office application it selects the paragraph and not the word. This only happening in...
Read more >
Word: Quick Text Selection Methods - KnowledgeWave
To select noncontiguous blocks of text or words, double-click on word or select a section of text then hold down Ctrl key.
Read more >
Double click selecting word in Word / Outlook - Super User
In short - it's likely to take far more time and effort to try and investigate / develop a solution than it would...
Read more >
What's the difference between Click and Double Click - YouTube
In this step-by-step tutorial in under 10 minutes, learn how you can✓ Subscribe for more Tech Tips: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found