mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 16:08:05 +00:00
* feat(plugins): list community plugins from a registry in the marketplace The marketplace index can now carry plugins of other publishers, published from their authors' repositories through the l0ng-ai/openidea-plugins registry. - `openidea-plugin index` with a key replaces only that publisher's plugins (it used to drop every other entry); without a key it indexes each package against the publishers the index already lists, checking the key and the id prefix instead of only the signature itself. - `openidea-plugin merge` takes another index's publishers, plugins and revocations in place of every publisher but `--keep`; the other index can't list or revoke the kept publishers' plugins. - `openidea-plugin check` accepts a `.oiplugin` file. - Releases merge the registry's index into plugins-index.json and attach the Linux x64 tool; plugins-index.yml refreshes the community plugins in the latest release hourly or when the registry signals a change. - plugins/README.md and CONTRIBUTING.md describe official and community plugins. * feat(plugins): offer the newest plugin version this IDE can load Index entries record the plugin API each version needs (`engine`: the manifest's `engines.openidea` narrowed to the API its component was built for), and an index may list several versions of a plugin. Settings › Plugins offers the newest version this IDE can load; with none, the plugin is shown as incompatible with the API it needs, and downloading it is refused. `openidea-plugin index` keeps, of each plugin, the newest version per API requirement, so users of an older IDE keep the last version built for them; `--download-base` makes downloads absolute, and the release workflow points them at the release that published them. Scratch directories are now unique per call. * feat(plugins): file marketplace plugins under categories `plugin.toml` takes `categories` (up to 3 of languages, themes, icon-themes, linters, vcs, ai, frameworks, tools, other). A plugin that declares none is filed under what its contributions imply (themes, icon themes, languages), else under other; categories an IDE doesn't know are ignored, and `check` warns about them. Index entries carry the categories, and Settings › Plugins › Available filters by them and shows them in a plugin's details. The official plugins declare theirs. * feat(plugins): let a marketplace index point to where it moved An index with `moved` sends the IDE to the index at that URL (relative or absolute, up to three hops; an https index can only move to https). Downloads resolve against the index actually read, so a marketplace can change hosts while released IDEs keep the address they were built with. * fix(plugins): full-width category filter and aligned incompatibility note * fix(plugins): translate the AI category in Chinese * feat(plugins): keep a plugin's signer across updates and announce updates - Index format: fields are only added; an IDE reading a newer `format` still applies its revocations and `moved`, lists no plugins and asks to be updated, instead of failing to read the index. - Key continuity: an installed plugin updates silently only to a package signed with the same key, or a key it endorsed (`KeyEntry.endorsement`, `index --previous-key`, `openidea-plugin endorse`). Another signer, or an unsigned package replacing a signed one, is shown on the install page and needs the user's confirmation (`Consent.signerChange`). - Official key: release builds carry the official publisher's public key (`OPENIDEA_OFFICIAL_PLUGIN_KEYS`, derived from PLUGIN_SIGNING_KEY); `openidea.*` plugins must be signed with it or a key it endorsed, whatever the index lists. - Updates: the daily marketplace check announces new versions once, with Update All (also in the gear menu and as an action). An update that asks for nothing new installs with the grants the installed version has. - Index entries need `engine`; `categories` beyond the first three are ignored instead of rejecting the manifest.
173 lines
4.2 KiB
TOML
173 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."
|
||
categories = ["tools"]
|
||
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"
|