Giter Club home page Giter Club logo

cosmic-clipboard-manager's People

Contributors

leb-kuchen avatar wiiznokes avatar

Stargazers

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

Watchers

 avatar

Forkers

leb-kuchen

cosmic-clipboard-manager's Issues

Invalid handling of unicode

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

subscription full error

[2024-04-13T14:18:20Z WARN iced_futures::subscription::tracker] Error sending event to subscription: TrySendError { kind: Full }

db

  • change the database to use diesel (or not) (with a SQL backend probably)
  • is it suitable for image ?
  • in debug, the db doesn't seems to works as expected

Global shorcut

2 ways:

  • workarround with custom shortcut in cosmic-comp and listen d-bus
  • global shortcut from portal, but its not currently impl in cosmic

FR: QR code

KDE have this feature and it could be useful sometime

Mime type support

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.

  • text
  • image
  • links
  • ... ?

And see how this could be done.

For image, we need to check if the db is appropriate

Meta issue for new feature/plan

  • change the database to use diese (or not) (with a SQL backend probably) is it suitable for image ?
  • add a global shortcut (ctrl + v), probably need d-bus, but S76 folks should know (actually, need the global shortcut from portal, but its not currently impl in cosmic)
  • add quick settings dropdown when right click the icon
  • add a settings window to remove the clear button and store future settings (winit + applet is not a things atm)
  • add a dropdown menu on right click of entries to remove the "remove" ugly button (it would be nice if we could use the one from iced_aw, but it doesn't work for now)
  • support image, and maybe other mime type #9
  • search should works with accents
  • auto remove old entries

Db is blocked and panics

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:

Search improvment

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.

Error on installation

Bug Description:

got this error on installation

Logs, Panic Messages, Stack Traces:

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

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.