Giter Club home page Giter Club logo

supercilex / gnome-clipboard-history Goto Github PK

View Code? Open in Web Editor NEW
389.0 6.0 42.0 1.08 MB

Gnome Clipboard History is a clipboard manager Gnome extension that saves what you've copied into an easily accessible, searchable history panel.

Home Page: https://extensions.gnome.org/extension/4839/clipboard-history/

License: MIT License

CSS 0.69% JavaScript 87.16% Makefile 1.12% Rust 11.03%
gnome gnome-shell-extension clipboard-manager clipboard-history clipboard

gnome-clipboard-history's Introduction

Gnome Clipboard History

Gnome Clipboard History is a clipboard manager GNOME extension that saves what you've copied into an easily accessible, searchable history panel.

The extension is a rewrite of Clipboard Indicator with vastly improved performance, new features, and bug fixes.

Download

Get it on GNOME Extensions

Tips

Tutorial screenshot

  • Open the panel from anywhere with Super + Shift + V.
  • Modify shortcuts in settings or delete them by hitting backspace while editing a shortcut.
  • Use the Only save favorites to disk feature to wipe your non-favorited items on shutdown.
  • Use Private mode to temporarily stop processing copied items.
  • Use keyboard shortcuts while the panel is open:
    • Ctrl + N where N is a number from 1 to 9 to select the Nth non-favorited entry.
    • Super + Ctrl + N where N is a number from 1 to 9 to select the Nth favorited entry.
    • Ctrl + p/n to navigate to the previous/next page.
    • Ctrl + Alt + S to open settings.
    • / to search.
    • F to (un)favorite a highlighted item.
  • Search uses case-insensitive regex.

Install from source

A note on versioning:

  • The master branch and 1.4.x tags support GNOME 45.
  • The pre-45 branch and 1.3.x (or earlier) tags support GNOME 40-44.

Build

cd ~/.local/share/gnome-shell/extensions/ && \
  git clone https://github.com/SUPERCILEX/gnome-clipboard-history.git [email protected] && \
  cd [email protected] && \
  make

Restart GNOME

Alt + F2 then type r.

Install

gnome-extensions enable [email protected]

gnome-clipboard-history's People

Contributors

ahmed-ayman avatar alewicki95 avatar alexmelman88 avatar amivaleo avatar asciiwolf avatar b00f avatar bilelmoussaoui avatar damjad avatar diego-rlima avatar dmig avatar etamuk avatar ibaios avatar jonian avatar jpvriel avatar jrahmatzadeh avatar junquera avatar l3nn4rt avatar neynefes avatar odrevet avatar oyajun avatar p-bo avatar pkomur avatar raphaelrochet avatar rmader avatar salim-b avatar shlinux avatar supercilex avatar sverentsov avatar tudmotu avatar xalt7x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gnome-clipboard-history's Issues

Clipboard remains blank - TypeError: undefined has no properties

Describe the bug

The clipboard does not populate on Gnome 42.
I see a closed issue #48 that's similar but this error seems to be different:

JS ERROR: TypeError: undefined has no properties
                                                 loop/<@/home/sean/.local/share/gnome-shell/extensions/[email protected]/store.js:144:56
                                                 parseAvailableAware@/home/sean/.local/share/gnome-shell/extensions/[email protected]/store.js:189:7
                                                 loop@/home/sean/.local/share/gnome-shell/extensions/[email protected]/store.js:142:26
                                                 loop/<@/home/sean/.local/share/gnome-shell/extensions/[email protected]/store.js:137:11

How To Reproduce

Install extension on Fedora 36 with latest Gnome 42

Versions

Fedora 36
Gnome 42

GNOME Shell 42.0
GCH Version: 11
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 0
org.gnome.shell.extensions.clipboard-history enable-keybindings true
org.gnome.shell.extensions.clipboard-history history-size 100
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 false
org.gnome.shell.extensions.clipboard-history strip-text false
org.gnome.shell.extensions.clipboard-history toggle-menu ['V']
org.gnome.shell.extensions.clipboard-history toggle-private-mode ['P']
org.gnome.shell.extensions.clipboard-history topbar-preview-size 10
org.gnome.shell.extensions.clipboard-history window-width-percentage 33

Here's zipped database.enc

database.zip

Crash

Describe the bug

A clear and concise description of what the bug is.

How To Reproduce

Install new version

Versions

  • Gnome shell version: GNOME Shell 40.5
  • GCH version: GCH Version: 8

Steps to repro

What causes the crash/bug?

just install

Additional context (if a crash, provide stack trace)

Add any other context about the problem here.

gdp@gdphz:~$ journalctl -n 1000000 | grep -B 10 -A 10 'clipboard-history'
Feb 24 21:24:49 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:49 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:49 gdphz audit[10098]: AVC apparmor="DENIED" operation="open" profile="snap.discord.discord" name="/proc/109951/cmdline" pid=10098 comm="Discord" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Feb 24 21:24:49 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:49 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:49 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:49 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:49 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:49 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:51 gdphz gnome-shell[160723]: Archive:  /tmp/45JZH1.shell-extension.zip
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/extension.js
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/store.js
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/dataStructures.js
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/confirmDialog.js
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/prefs.js
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/stylesheet.css
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/LICENSE
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/README.md
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/ar/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/ca/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/cs/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/de/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/el/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/es/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/eu/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/fa/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/fi/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/fr_FR/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/hu/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/it/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/ja/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/nl/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/oc/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/pl/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/pt_BR/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/ru/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/sk/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/tr/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/uk/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/zh_CN/LC_MESSAGES/[email protected]
Feb 24 21:24:51 gdphz gnome-shell[160723]:    creating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/schemas/
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/schemas/org.gnome.shell.extensions.clipboard-indicator.gschema.xml
Feb 24 21:24:51 gdphz gnome-shell[160723]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/schemas/gschemas.compiled
Feb 24 21:24:51 gdphz gnome-shell[160723]:  extracting: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/metadata.json
Feb 24 21:24:51 gdphz gnome-shell[1888]: JS ERROR: Extension [email protected]: Error: A different version was loaded previously. You need to log out for changes to take effect.
                                         loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:343:52
                                         callback@resource:///org/gnome/shell/ui/extensionDownloader.js:241:39
                                         gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:115:13
Feb 24 21:24:54 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:54 gdphz audit[10098]: AVC apparmor="DENIED" operation="open" profile="snap.discord.discord" name="/proc/1393/cmdline" pid=10098 comm="Discord" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Feb 24 21:24:54 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:54 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:54 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:54 gdphz audit[10098]: AVC apparmor="DENIED" operation="open" profile="snap.discord.discord" name="/proc/1408/cmdline" pid=10098 comm="Discord" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Feb 24 21:24:54 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
--
Feb 24 21:24:56 gdphz lens.desktop[41728]: info:    ┏ [CLUSTER]: refresh +30s
Feb 24 21:24:56 gdphz lens.desktop[41728]: info:    ┃ [1] {
Feb 24 21:24:56 gdphz lens.desktop[41728]: info:    ┃ [2]   id: 'c3f214b7850930dc81409cb586a5ffc4',
Feb 24 21:24:56 gdphz lens.desktop[41728]: info:    ┃ [3]   name: 'arn:aws:eks:us-east-1:808378037958:cluster/lili-eks-cluster-test',
Feb 24 21:24:56 gdphz lens.desktop[41728]: info:    ┃ [4]   ready: true,
Feb 24 21:24:56 gdphz lens.desktop[41728]: info:    ┃ [5]   online: true,
Feb 24 21:24:56 gdphz lens.desktop[41728]: info:    ┃ [6]   accessible: true,
Feb 24 21:24:56 gdphz lens.desktop[41728]: info:    ┃ [7]   disconnected: false
Feb 24 21:24:56 gdphz lens.desktop[41728]: info:    ┗ [8] }
Feb 24 21:24:58 gdphz gnome-shell[160772]: Archive:  /tmp/N4ATH1.shell-extension.zip
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/extension.js
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/store.js
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/dataStructures.js
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/confirmDialog.js
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/prefs.js
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/stylesheet.css
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/LICENSE
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/README.md
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/ar/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/ca/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/cs/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/de/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/el/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/es/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/eu/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/fa/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/fi/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/fr_FR/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/hu/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/it/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/ja/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/nl/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/oc/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/pl/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/pt_BR/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/ru/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/sk/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/tr/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/uk/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/zh_CN/LC_MESSAGES/[email protected]
Feb 24 21:24:58 gdphz gnome-shell[160772]:    creating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/schemas/
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/schemas/org.gnome.shell.extensions.clipboard-indicator.gschema.xml
Feb 24 21:24:58 gdphz gnome-shell[160772]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/schemas/gschemas.compiled
Feb 24 21:24:58 gdphz gnome-shell[160772]:  extracting: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/metadata.json
Feb 24 21:24:58 gdphz gnome-shell[1888]: JS ERROR: Extension [email protected]: Error: A different version was loaded previously. You need to log out for changes to take effect.
                                         loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:343:52
                                         callback@resource:///org/gnome/shell/ui/extensionDownloader.js:241:39
                                         gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:115:13
Feb 24 21:24:59 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:59 gdphz audit[10098]: AVC apparmor="DENIED" operation="open" profile="snap.discord.discord" name="/proc/1393/cmdline" pid=10098 comm="Discord" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Feb 24 21:24:59 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:59 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:59 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:24:59 gdphz audit[10098]: AVC apparmor="DENIED" operation="open" profile="snap.discord.discord" name="/proc/1408/cmdline" pid=10098 comm="Discord" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Feb 24 21:24:59 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
--
Feb 24 21:25:09 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:25:09 gdphz audit[10098]: AVC apparmor="DENIED" operation="open" profile="snap.discord.discord" name="/proc/109951/cmdline" pid=10098 comm="Discord" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Feb 24 21:25:09 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:25:09 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:25:09 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:25:09 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:25:09 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:25:09 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:25:09 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:25:13 gdphz gnome-shell[160894]: Archive:  /tmp/QLQ9H1.shell-extension.zip
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/extension.js
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/store.js
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/dataStructures.js
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/confirmDialog.js
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/prefs.js
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/stylesheet.css
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/LICENSE
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/README.md
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/ar/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/ca/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/cs/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/de/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/el/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/es/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/eu/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/fa/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/fi/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/fr_FR/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/hu/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/it/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/ja/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/nl/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/oc/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/pl/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/pt_BR/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/ru/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/sk/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/tr/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/uk/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/locale/zh_CN/LC_MESSAGES/[email protected]
Feb 24 21:25:13 gdphz gnome-shell[160894]:    creating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/schemas/
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/schemas/org.gnome.shell.extensions.clipboard-indicator.gschema.xml
Feb 24 21:25:13 gdphz gnome-shell[160894]:   inflating: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/schemas/gschemas.compiled
Feb 24 21:25:13 gdphz gnome-shell[160894]:  extracting: /home/gdp/.local/share/gnome-shell/extensions/[email protected]/metadata.json
Feb 24 21:25:13 gdphz gnome-shell[1888]: JS ERROR: Extension [email protected]: Error: A different version was loaded previously. You need to log out for changes to take effect.
                                         loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:343:52
                                         callback@resource:///org/gnome/shell/ui/extensionDownloader.js:241:39
                                         gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:115:13
Feb 24 21:25:14 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:25:14 gdphz audit[10098]: AVC apparmor="DENIED" operation="open" profile="snap.discord.discord" name="/proc/1393/cmdline" pid=10098 comm="Discord" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Feb 24 21:25:14 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:25:14 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:25:14 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"
Feb 24 21:25:14 gdphz audit[10098]: AVC apparmor="DENIED" operation="open" profile="snap.discord.discord" name="/proc/1408/cmdline" pid=10098 comm="Discord" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Feb 24 21:25:14 gdphz audit[10098]: AVC apparmor="DENIED" operation="ptrace" profile="snap.discord.discord" pid=10098 comm="Discord" requested_mask="read" denied_mask="read" peer="unconfined"

image

Crash after upgrade

Consider releasing as an independent extension

With the breadth of your changes and the (often slow) speed at which Tudmotu responses to PR's, I imagine you will have more traction (and thanks) from folks who find this extension essential and want something much more optimized and maintained. What do you think?

popup when choosing items from the clipboard using shortcuts no longer appears

Describe the bug

i'm on Pop!_OS 21.10 and just noticed today that when using the shortcuts to choose an item from the clipboard the lil popup that would show what item you were on no longer appears.

How To Reproduce

try using shortcuts and preview / popup does not appear

Versions

GNOME Shell 40.5
GCH   Version: 8
org.gnome.shell.extensions.clipboard-history next-entry ['<Alt><Super>bracketright']
org.gnome.shell.extensions.clipboard-history disable-down-arrow true
org.gnome.shell.extensions.clipboard-history history-size 15
org.gnome.shell.extensions.clipboard-history preview-size 30
org.gnome.shell.extensions.clipboard-history cache-size 1024
org.gnome.shell.extensions.clipboard-history confirm-clear true
org.gnome.shell.extensions.clipboard-history strip-text false
org.gnome.shell.extensions.clipboard-history display-mode 0
org.gnome.shell.extensions.clipboard-history topbar-preview-size 10
org.gnome.shell.extensions.clipboard-history clear-history @as []
org.gnome.shell.extensions.clipboard-history private-mode false
org.gnome.shell.extensions.clipboard-history cache-only-favorites false
org.gnome.shell.extensions.clipboard-history toggle-menu ['<Super><Shift>V']
org.gnome.shell.extensions.clipboard-history paste-on-selection false
org.gnome.shell.extensions.clipboard-history notify-on-copy false
org.gnome.shell.extensions.clipboard-history move-item-first false
org.gnome.shell.extensions.clipboard-history enable-keybindings true
org.gnome.shell.extensions.clipboard-history toggle-private-mode ['<Super><Shift>P']
org.gnome.shell.extensions.clipboard-history prev-entry ['<Alt><Super>bracketleft']

Steps to repro

What causes the crash/bug?

Additional context (if a crash, provide stack trace)

Add any other context about the problem here.

"top bar" or "panel"?

Hello @SUPERCILEX ,

In pot file the top bar is called "top bar". That's right. Original in Gnome the panel is on top. But maybe someone uses an extension like Dash to panel and puts the bar on the buttom, then the "top bar" isn't at top anymore :-)

What do think about it to change "top bar" to "panel" or "bar" in pot file?
Just a suggestion ;-)

Can't navigate between results with tab, up and down.

Describe the bug

After the menu is shown, tab, up and down can't select the new result.

How To Reproduce

Versions

GNOME Shell 42.0
GCH Version: 13
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 0
org.gnome.shell.extensions.clipboard-history enable-keybindings true
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 true
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 false
org.gnome.shell.extensions.clipboard-history strip-text false
org.gnome.shell.extensions.clipboard-history toggle-menu ['minus']
org.gnome.shell.extensions.clipboard-history toggle-private-mode ['P']
org.gnome.shell.extensions.clipboard-history topbar-preview-size 10
org.gnome.shell.extensions.clipboard-history window-width-percentage 33

CTRL+F keys can not be set using GUI

Describe the bug

When you try to assing a shortcut to i.e. CTRL+F10 using the GUI it will only set F10 to the shortcut.
Assigning CTRL+ any other key like "p" does let you set it to CTRL+P.
Using dconf-editor you can manually set it to CTRL+F10 and the shortcut will work without any problems.

How To Reproduce

  1. Open config of Clipboard History
  2. Attempt to rebind i.e. the "clear history" shortcut to CTRL+F10
  3. Will only assing F10

Versions

  • Gnome shell version: 41.4
  • GCH version: 8

Add Custom Actions upon copying/selecting

When copying some text/image, filter it through a regex to then run a bash one-liner

Xfce's Clipman

The Xfce panel plugin Clipman is where I first used this functionality, and found it very useful -- the ability to simply select or copy some text, and then have clipman pop up a small "Actions" dialog to ask what I want to do with it.

Use Case 1

  • Flipping through IMDb, I get interested in Baby Driver: https://m.imdb.com/title/tt3890160/
  • I copy the URL from Firefox
  • My IMDb Action regex matches with https?:\/\/.*\.imdb\.com\/title\/tt([0-9]{4,})\/ (note that I'm capturing the 4+ digit IMDb identifier
  • A popup shows "Find in Radarr", with a bash one-liner that says "firefox https://my.radarr.lan/add/new?term=imdb:$1" (or maybe it's \1?)

Use Case 2

  • Installed a new app, but hate the icon. Downloaded a nicer image icon, but it doesn't match my icon theme.
  • Select the icon image filename & copy it
  • My Local Image regex matches with (.*Downloads\/.*\.jpg|png|JPEG)
  • A popup shows "Iconify", with a bash script that uses imagemagick, etc. to resize, round corners, etc. and save the new icon.

Appear on main display in multi-monitor setup

Problem description

Currently if the top bar is hidden the main UI modal will appear on the leftmost display when using multiple monitors. It would be great if there was an option for the modal to be restricted to the user's main display.

I am currently using the Hide Top Bar extension.

Blank clipboard after update

Describe the bug

No more clips inside the clipboard after a gnome update on fedora 35, it seems it broke something

How To Reproduce

Versions

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

Steps to repro

Update to the gnome shell 42 which was automatically applied by fedora 35

Additional context (if a crash, provide stack trace)

Database file on my owncloud server

Screenshot from 2022-03-25 22-37-02

Error: identifier starts immediately after numeric literal

Describe the bug

After installing the extension thru https://extensions.gnome.org/extension/4839/clipboard-history/ I get the following error:

SyntaxError: identifier starts immediately after numeric literal

Stack trace:
  _getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:75:13
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:90:31
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:243:17
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  main@resource:///org/gnome/shell/extensionPrefs/main.js:397:5
  @<main>:1:43

How To Reproduce

navigate to https://extensions.gnome.org/extension/4839/clipboard-history/

click the ON/OFF toggle

Versions

$ gnome-shell --version; echo -n "GCH "; gnome-extensions show [email protected] | grep Version; gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas list-recursively org.gnome.shell.extensions.clipboard-history
GNOME Shell 3.28.4
GCH gnome-extensions: command not found
org.gnome.shell.extensions.clipboard-history next-entry @as []
org.gnome.shell.extensions.clipboard-history clear-history @as []
org.gnome.shell.extensions.clipboard-history enable-keybindings true
org.gnome.shell.extensions.clipboard-history disable-down-arrow true
org.gnome.shell.extensions.clipboard-history private-mode false
org.gnome.shell.extensions.clipboard-history cache-size 100
org.gnome.shell.extensions.clipboard-history paste-on-selection true
org.gnome.shell.extensions.clipboard-history history-size 1000
org.gnome.shell.extensions.clipboard-history confirm-clear true
org.gnome.shell.extensions.clipboard-history cache-only-favorites false
org.gnome.shell.extensions.clipboard-history prev-entry @as []
org.gnome.shell.extensions.clipboard-history topbar-preview-size 10
org.gnome.shell.extensions.clipboard-history toggle-menu ['<Super><Shift>V']
org.gnome.shell.extensions.clipboard-history preview-size 100
org.gnome.shell.extensions.clipboard-history toggle-private-mode ['<Super><Shift>P']
org.gnome.shell.extensions.clipboard-history strip-text false
org.gnome.shell.extensions.clipboard-history move-item-first true
org.gnome.shell.extensions.clipboard-history notify-on-copy false
org.gnome.shell.extensions.clipboard-history display-mode 0

Steps to repro

What causes the crash/bug?

Additional context (if a crash, provide stack trace)

Add any other context about the problem here.

$ uname -a
Linux xps 5.4.0-86-generic #97~18.04.1-Ubuntu SMP Sat Sep 18 03:11:22 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
sas@xps ~ 
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.6 LTS
Release:	18.04
Codename:	bionic

Getting error while installing the extension

The settings of extension [email protected] had an error:

SyntaxError: identifier starts immediately after numeric literal

Stack trace:

_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:204:33
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

Changelog

Either as an .md file or on the release page.

Set window width as item preview size

Problem description

Currently when moving between different history pages if the max length of any string in that page is less than the "Item preview size", the width of the window is reduced to fit the longest string. This is a little disorienting to have a window width shift between pages.

Potential solutions/workarounds

I would either make the "Item preview size" to be default the width of the window under all conditions (as both min & max) or add a toggle to allow this behavior. I'm leaning towards the first as this is somewhat unusual behavior for a list with strings of varying lengths.

"Paste on selection" pastes the wrong item in Gnome Terminal

Describe the bug

"Paste on selection" always pastes the wrong item in Gnome Terminal, when clicking on any menu item.

How To Reproduce

Versions

  • Gnome shell version: 41.4
  • GCH version: 4

Steps to repro

  1. Copy a few items: "A", "B", "C".
  2. Open Gnome Terminal.
  3. Click on the top bar icon to open the menu.
  4. Click "A".
  5. Click on the top bar icon to open the menu.
  6. Click "B".

Expected results

  1. "A" is pasted.
  2. "B" is pasted.

Actual results

  1. "C" is pasted.
  2. "C" is pasted.

Additional context (if a crash, provide stack trace)

Ctrl+Shift+V and right click context menu "Paste" works correctly.

Crash on start: TypeError: text is null

Describe the bug

Crashes on initialization (toggling on the extension)

Versions

GNOME Shell 41.4
GCH Version: 4

Steps to repro

Initialization.

Additional context (if a crash, provide stack trace)

JS ERROR: TypeError: text is null
_hashText@/home/jackson/.local/share/gnome-shell/extensions/[email protected]/dataStructures.js:405:7
_hash@/home/jackson/.local/share/gnome-shell/extensions/[email protected]/dataStructures.js:223:14
_addToIndex@/home/jackson/.local/share/gnome-shell/extensions/[email protected]/dataStructures.js:184:23
append@/home/jackson/.local/share/gnome-shell/extensions/[email protected]/dataStructures.js:121:12
append@/home/jackson/.local/share/gnome-shell/extensions/[email protected]/dataStructures.js:315:24
_consumeStream/<@/home/jackson/.local/share/gnome-shell/extensions/[email protected]/store.js:140:23

Icons are not in the center of selected area

The bug

I think a screenshot is better than text discribtion:
نماگرفت از 2022-04-08 11-12-25
The X symbol is not in the center of the rectangle (botton).

Versions

GNOME Shell 42.0
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 ['Delete']
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 0
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 true
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 false
org.gnome.shell.extensions.clipboard-history strip-text false
org.gnome.shell.extensions.clipboard-history toggle-menu ['V']
org.gnome.shell.extensions.clipboard-history toggle-private-mode ['P']
org.gnome.shell.extensions.clipboard-history topbar-preview-size 1
org.gnome.shell.extensions.clipboard-history window-width-percentage 33

Steps to repro

You can see the issue when you hover mouse on a botton in the extension window.
NOTE: My system language is an RTL language.

Feature Request: Show Date and/or Time at entries

Great library, great addition to gnome!

As a feature request idea for the future: It would be really helpful for us if you could (as an option) see when the entries were copied. Often enough you know something like: "Yesterday afternoon I copied this token" and with this feature you could much more easily find entries like that while traversing the pagination.

Image Support

This extension is wayy better than clipboard indicator and I appreciate the effort put into this, but are there plans for adding image support for clipboard history - Similar to what diodon has?

German translation not working anymore completely

Hello,

I noticed the German translation seems to be not correct anymore.
The latest version was the translation from my PR #49 wich worked for me. This file was 100% translated.

Affected are strings like:
Window width (%) or
Process primary selection

cannot start the extension

Describe the bug

this is the error from extensions tab:

The settings of extension [email protected] had an error:

SyntaxError: identifier starts immediately after numeric literal


Stack trace:

_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:204:33
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

Versions

I am running Pop os:

OS: Pop!_OS 20.04 LTS x86_64
Host: B550 AORUS PRO AC
Kernel: 5.16.11-76051611-generic
Uptime: 1 day, 7 hours, 52 mins
Packages: 1927 (dpkg), 10 (flatpak)
Shell: zsh 5.8
Resolution: 1920x1080
DE: GNOME
WM: Mutter
WM Theme: Pop
Theme: Pop-dark [GTK2/3]
Icons: Pop [GTK2/3]
Terminal: x-terminal-emul
CPU: AMD Ryzen 5 3600X (12) @ 3.800GHz
GPU: NVIDIA GeForce GTX 1660 SUPER
Memory: 3096MiB / 16005MiB

output of debugging command

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

Thank you for checking this out :)

Clipboard position in notification not appearing

Describe the bug

I just switched from /extension/779 and I find the new features really helpful, though the clipboard position in the notification (e.g. 3/94) is missing when cycling through the entries

How To Reproduce

Cycle through the clipboard (prev / next)

Versions

GNOME Shell 40.5
GCH Version: 8

org.gnome.shell.extensions.clipboard-history next-entry ['F12']
org.gnome.shell.extensions.clipboard-history disable-down-arrow true
org.gnome.shell.extensions.clipboard-history history-size 100000
org.gnome.shell.extensions.clipboard-history preview-size 100
org.gnome.shell.extensions.clipboard-history cache-size 1024
org.gnome.shell.extensions.clipboard-history confirm-clear true
org.gnome.shell.extensions.clipboard-history strip-text false
org.gnome.shell.extensions.clipboard-history display-mode 2
org.gnome.shell.extensions.clipboard-history topbar-preview-size 32
org.gnome.shell.extensions.clipboard-history clear-history @as []
org.gnome.shell.extensions.clipboard-history private-mode false
org.gnome.shell.extensions.clipboard-history cache-only-favorites false
org.gnome.shell.extensions.clipboard-history toggle-menu ['F10']
org.gnome.shell.extensions.clipboard-history paste-on-selection true
org.gnome.shell.extensions.clipboard-history notify-on-copy false
org.gnome.shell.extensions.clipboard-history move-item-first true
org.gnome.shell.extensions.clipboard-history enable-keybindings true
org.gnome.shell.extensions.clipboard-history toggle-private-mode ['P']
org.gnome.shell.extensions.clipboard-history prev-entry ['F11']

Screen based panel width is inconvenient when using differen monitors

Describe the bug

When using different monitors (e.g. laptop used alone and with external monitor) the panel width changes if the monitors don't use the same resolution. Depending on resolution difference and settings this can make the panel unusable.

How To Reproduce

  1. Configure the panel width on a bigger/smaller external monitor.
  2. Unplug the external monitor thus Gnome switching the main screen.
  3. The panel is now to small or to wide

Versions

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

Steps to repro

Panel with 10% width on external monitor (2560x1440
grafik

Panel after unplugging external monitor, now in internal one (full HD)
grafik

Additional context

The issue seems only occur when unplugging the monitor and thus Gnome Shell auto-switching. If I change manually the main screen in Gnome settings the panel keeps somehow a sane width.

Don't let `Window width` too small

Describe the bug

The Window width is set as a % of the screen width, if is changed to a very small value (ex:5%) the window is deformed.
Maybe calculate the minimum width needed to accommodate the icons?
Of course the user can fix this making the % bigger and that's all.

How To Reproduce

Versions

GNOME Shell 42.0
GCH Version: 13
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 0
org.gnome.shell.extensions.clipboard-history enable-keybindings true
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 true
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 false
org.gnome.shell.extensions.clipboard-history strip-text false
org.gnome.shell.extensions.clipboard-history toggle-menu ['V']
org.gnome.shell.extensions.clipboard-history toggle-private-mode ['P']
org.gnome.shell.extensions.clipboard-history topbar-preview-size 10
org.gnome.shell.extensions.clipboard-history window-width-percentage 20

Steps to repro

Set a small Window width value.

Additional context (if a crash, provide stack trace)

Screenshot from 2022-04-12 15-15-18

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.