Repository navigation
Add Clipboard History plugin - #119
Open
doctatortot wants to merge 1 commit into
Open
doctatortot wants to merge 1 commit into
doctatortot wants to merge 1 commit into
Conversation
Implements hermes-hq#47 — polls clipboard.readText() every 1.5s (no clipboard-change event exists in the plugin API), keeps a searchable, size-limited history, pin/unpin, click-to-copy. Note: same terminal.write gap as hermes-hq#118 (Snippets Manager) — "quick-paste into terminal" isn't implementable since api.terminal isn't exposed. Click-to-copy is the substitute.
Author
|
Filed hermes-hq/hermes-ide#385 proposing an implementation for the terminal.write gap noted above. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
clipboard.readText()every 1.5s (the plugin API has no clipboard-change event, so polling is the only option), keeps a searchable, size-limited history with pin/unpin, and click-to-copy on any entry.Note for review
Same gap as #118 (Snippets Manager): the issue asks for "quick-paste into terminal" via
terminal.write, which isn't actually implemented on the host (api.terminaldoesn't exist despite the permission being in the type enum — see hermes-ide#383's related database-permission gap). Click-to-copy is the substitute until that lands.Test plan
npm installtsc --noEmitcleannpm run build(vite) clean