Repository navigation
Add Snippets Manager plugin - #118
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#33 — save/edit/delete code snippets with title, language, and tags; search/filter; copy-to-clipboard; JSON import/export via paste (no filesystem access in the plugin API). Note: the issue's "quick-paste into terminal" / terminal.write is not implementable — terminal.write is declared in the permission type enum but there's no api.terminal namespace actually exposed by the host (same gap noted in hermes-ide#383's database-permission work). Copy-to-clipboard is the closest available substitute.
3 of 4 tasks
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
Note for review
The issue asks for "quick-paste into terminal" via
terminal.write. That permission is declared in the type enum but there's noapi.terminalnamespace actually implemented in the host app — I checked the currentHermesPluginAPIinterface and it isn't there. This is the same gap flagged in hermes-ide#383 (filed for the database permission). Copy-to-clipboard is the closest available substitute for now; happy to wire up real terminal paste if/when that API lands.Test plan
npm installtsc --noEmitcleannpm run build(vite) clean