wiiznokes / cosmic-clipboard-manager Goto Github PK
View Code? Open in Web Editor NEWClipboard manager for COSMIC
License: MIT License
Clipboard manager for COSMIC
License: MIT License
thread 'main' panicked at /rustc/c9f8f3438a8134a413aa5d4903e0196e44e37bbc/library/core/src/str/mod.rs:659:21:
byte index 50 is not a char boundary; it is inside 'r' (bytes 49..52) of `In Another Life 【slowed + reverb】`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
^C
It is your formatted_value
function in utils.rs
pop-os/cosmic-launcher#114
This would make the db crash
[2024-04-13T14:18:20Z WARN iced_futures::subscription::tracker] Error sending event to subscription: TrySendError { kind: Full }
Probably need some change in the data_control protocol https://wayland.app/protocols/wlr-data-control-unstable-v1
Layout shifts are particular annoying, especially if the dock is not extended.
[src/app.rs:73:9] start.elapsed() = 40.576382ms
2 ways:
This should add the entry at the top of the applet, for text that you often copy
KDE have this feature and it could be useful sometime
Currently, a clipboard value can be copied differently based on his mime type. So we can't just expose all mimetype that was used by source applications. We need to support the most commun one.
And see how this could be done.
For image, we need to check if the db is appropriate
Maybe take inspiration on this gnome extension: https://github.com/oae/gnome-shell-pano
How can we do this?
Apr 03 05:44:28 pop-os /usr/libexec/gdm-wayland-session[3497]: 2024-04-03T03:44:28.322726Z INFO cosmic-panel: cosmic_session::notifications: 2024-04-03T03:44:28.322652Z ERROR stderr{client=InnerClientId { ptr: 0x5f10f630da80, alive: false }}: com.wiiznokes.CosmicClipboardManager: 0: rust_begin_unwind
Apr 03 05:44:28 pop-os cosmic-session[3497]: 2024-04-03T03:44:28.319213Z ERROR stderr{client=InnerClientId { ptr: 0x5f10f630da80, alive: false }}: com.wiiznokes.CosmicClipboardManager: stack backtrace:
Apr 03 05:44:28 pop-os cosmic-session[3497]: 2024-04-03T03:44:28.319198Z ERROR stderr{client=InnerClientId { ptr: 0x5f10f630da80, alive: false }}: com.wiiznokes.CosmicClipboardManager: called Result::unwrap()
on an Err
value: Io(Custom { kind: Other, error: "could not acquire lock on "/tmp/welcome-to-sled/db": Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }" })
Apr 03 05:44:28 pop-os cosmic-session[3497]: 2024-04-03T03:44:28.319164Z ERROR stderr{client=InnerClientId { ptr: 0x5f10f630da80, alive: false }}: com.wiiznokes.CosmicClipboardManager: thread 'main' panicked at src/app.rs:72:32:
The current search implemenation have several problem.
Ideally, we would only need an LCS algo to search the database.
With an unicode and case normalization.
Currently, only match when the full block is found, and normalization have bugs:
é
and e
will match but not the next char.got this error on installation
cargo build -r
error: failed to parse manifest at /home/anik/cosmic-clipboard-manager/Cargo.toml
Caused by:
no targets specified in the manifest
either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present
error: Recipe install
failed on line 5 with exit code 101
https://extensions.gnome.org/extension/5278/pano/ have that and it's great. No need for disturbing notification
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.