Skip to content

Add Snippets Manager plugin - #118

Open
doctatortot wants to merge 1 commit into
hermes-hq:mainfrom
doctatortot:plugin/snippets-manager
Open

doctatortot wants to merge 1 commit into
hermes-hq:mainfrom
doctatortot:plugin/snippets-manager

Conversation

@doctatortot

Copy link
Copy Markdown

Summary

  • Implements Plugin: Snippets Manager #33 — save/edit/delete snippets with title, language, and tags; search/filter across all three; copy-to-clipboard; JSON export/import (via paste, since the plugin API has no filesystem access).

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 no api.terminal namespace actually implemented in the host app — I checked the current HermesPluginAPI interface 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 install
  • tsc --noEmit clean
  • npm run build (vite) clean
  • Manual test in a running hermes-ide build

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.
@doctatortot doctatortot mentioned this pull request Sep 27, 2026
3 of 4 tasks
@doctatortot

Copy link
Copy Markdown
Author

Filed hermes-hq/hermes-ide#385 proposing an implementation for the terminal.write gap noted above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant