Agent-Hellboy / Agent-Hellboy/hcp

Support Multiple Clipboard Content Types (HTML, Images, Files, etc.)

Offen
#7 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
9
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## Description

Currently, the clipboard manager captures only plain text (`text/plain`, e.g., `std::string`). However, modern clipboards often contain rich content such as HTML, images, or file paths. To make the tool more powerful and user-friendly, we should extend support to additional clipboard formats.

## Tasks

- [ ] Detect and log available MIME types in the clipboard (e.g., via `xclip -t TARGETS`)
- [ ] Add support for `text/html` (capture raw HTML snippets)
- [ ] Add support for images (`image/png`, `image/jpeg`)
- [ ] Add support for file paths (`x-special/gnome-copied-files`, `application/x-kde-cutselection`)
- [ ] Provide metadata for each entry in history (type, size, timestamp)
- [ ] Add CLI options to filter by content type (e.g., `hcp list --type image`)
- [ ] Add graceful fallback if content type is unsupported
- [ ] (Optional) Store non-text content in a separate storage folder

## Notes

- On Linux (X11), tools like `xclip`, `xsel`, and `wl-clipboard` can be used to probe the clipboard's contents.
- MIME types of interest include:
- `text/plain`
- `text/html`
- `image/png`
- `image/jpeg`
- `application/octet-stream` (for binary)
- `x-special/gnome-copied-files` (for file drag-and-drop)

## References

- [XClip MIME Type Targets](https://linux.die.net/man/1/xclip)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.