mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 08:07:49 +00:00
A plugin system built on WebAssembly components (wasmtime, WASI p2), with a typed WIT API (`openidea:plugin@1.0.0`) and a Rust SDK, shipped as a preview. - Extension points declared in `plugin.toml` (commands, languages, themes, icon themes, menus, key bindings, status items, settings, views, custom editors, file icons and templates, run detectors, editor providers), validated before anything takes effect and projected onto the workbench's own registries: plugin themes and file icon themes are chosen in Settings › Appearance and Quick Switch, plugin shortcuts are edited in Settings › Keymap, plugin problems are grouped in Settings › Inspections. - Capabilities with risk levels and consent at install, pinned `process:` programs, secrets in the OS keychain. - Runtime: one thread per active plugin, fuel/time/memory budgets, soft and hard deadlines on the editing path, cancellation, crash backoff, idle reclaim, a precompiled-component cache; remote projects run code plugins on `openidea-server`. - Web views and custom editors with a sandboxed page, a document bridge joined to the text editor's undo history, and split or preview layouts. - Distribution: signed `.oiplugin` packages, a static marketplace index with revocation, versioned installs with rollback, install from a `.zip` or a folder. The release workflow signs and publishes the official plugins and their index, which released builds use as the default marketplace. - Official plugins: String Tools, Key Promoter, Git Toolbox, AI Completion, Checkstyle, MyBatis Navigator, CSV Editor, Solidity, Material Icons, Harbor Night, Excalidraw, Graphviz, Regex Tester, License Header. Closes #732 Co-authored-by: Deng Liu <5108773+dengliu@users.noreply.github.com> Co-authored-by: florentvdry <16673235+florentvdry@users.noreply.github.com>
172 lines
4.2 KiB
TOML
172 lines
4.2 KiB
TOML
id = "openidea.string-tools"
|
||
name = "String Tools"
|
||
version = "0.1.0"
|
||
description = "Case conversion (camelCase, snake_case, kebab-case…), encoding (Base64, URL, HTML, JSON), line sorting and more, on every selection at once."
|
||
authors = ["OpenIDEA contributors"]
|
||
license = "Apache-2.0"
|
||
change-notes = "0.1.0 — first release: 26 commands in four groups."
|
||
engines.openidea = "^1.0"
|
||
wasm = "dist/plugin.wasm"
|
||
# The commands are declared below, so Find Action and the keymap list them
|
||
# before the code is ever loaded; it loads on the first one run.
|
||
activation = ["on-command:*"]
|
||
|
||
[capabilities]
|
||
required = ["editor.read", "editor.write"]
|
||
|
||
[[contributes.commands]]
|
||
id = "camel-case"
|
||
title = "String Tools: To camelCase"
|
||
category = "String Tools › Case"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "pascal-case"
|
||
title = "String Tools: To PascalCase"
|
||
category = "String Tools › Case"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "snake-case"
|
||
title = "String Tools: To snake_case"
|
||
category = "String Tools › Case"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "screaming-snake-case"
|
||
title = "String Tools: To SCREAMING_SNAKE_CASE"
|
||
category = "String Tools › Case"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "kebab-case"
|
||
title = "String Tools: To kebab-case"
|
||
category = "String Tools › Case"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "dot-case"
|
||
title = "String Tools: To dot.case"
|
||
category = "String Tools › Case"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "title-case"
|
||
title = "String Tools: To Title Case"
|
||
category = "String Tools › Case"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "upper-case"
|
||
title = "String Tools: To UPPER CASE"
|
||
category = "String Tools › Case"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "lower-case"
|
||
title = "String Tools: To lower case"
|
||
category = "String Tools › Case"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "toggle-case"
|
||
title = "String Tools: Toggle Case"
|
||
category = "String Tools › Case"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "base64-encode"
|
||
title = "String Tools: Encode Base64"
|
||
category = "String Tools › Encode"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "base64-decode"
|
||
title = "String Tools: Decode Base64"
|
||
category = "String Tools › Encode"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "url-encode"
|
||
title = "String Tools: URL-Encode"
|
||
category = "String Tools › Encode"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "url-decode"
|
||
title = "String Tools: URL-Decode"
|
||
category = "String Tools › Encode"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "html-escape"
|
||
title = "String Tools: Escape HTML"
|
||
category = "String Tools › Encode"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "html-unescape"
|
||
title = "String Tools: Unescape HTML"
|
||
category = "String Tools › Encode"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "json-escape"
|
||
title = "String Tools: Escape as JSON String"
|
||
category = "String Tools › Encode"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "sort-lines"
|
||
title = "String Tools: Sort Lines"
|
||
category = "String Tools › Lines"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "sort-lines-desc"
|
||
title = "String Tools: Sort Lines Descending"
|
||
category = "String Tools › Lines"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "reverse-lines"
|
||
title = "String Tools: Reverse Lines"
|
||
category = "String Tools › Lines"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "unique-lines"
|
||
title = "String Tools: Remove Duplicate Lines"
|
||
category = "String Tools › Lines"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "trim-lines"
|
||
title = "String Tools: Trim Lines"
|
||
category = "String Tools › Lines"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "reverse"
|
||
title = "String Tools: Reverse Text"
|
||
category = "String Tools › Other"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "swap-quotes"
|
||
title = "String Tools: Swap Quotes (' ↔ \")"
|
||
category = "String Tools › Other"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "increment"
|
||
title = "String Tools: Increment Numbers"
|
||
category = "String Tools › Other"
|
||
when = "editorFocus"
|
||
|
||
[[contributes.commands]]
|
||
id = "decrement"
|
||
title = "String Tools: Decrement Numbers"
|
||
category = "String Tools › Other"
|
||
when = "editorFocus"
|