mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 11:50:31 +01:00
[PR #310] feat: add select option for promt + template-function-promt-select plugin #232
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/310
Author: @majcn
Created: 11/27/2025
Status: 🔄 Open
Base:
main← Head:main📝 Commits (2)
ace635dadd select option for Context.prompt9290b01add template-function-prompt-select plugin📊 Changes
13 files changed (+395 additions, -2 deletions)
View changed files
📝
package-lock.json(+12 -0)📝
package.json(+1 -0)📝
packages/plugin-runtime-types/src/bindings/gen_events.ts(+21 -1)📝
packages/plugin-runtime-types/src/plugins/Context.ts(+3 -0)📝
packages/plugin-runtime/src/PluginInstance.ts(+8 -0)➕
plugins/template-function-prompt-select/package.json(+14 -0)➕
plugins/template-function-prompt-select/src/index.ts(+211 -0)➕
plugins/template-function-prompt-select/tsconfig.json(+3 -0)📝
src-tauri/src/plugin_events.rs(+4 -0)📝
src-tauri/yaak-plugins/bindings/gen_events.ts(+21 -1)📝
src-tauri/yaak-plugins/src/events.rs(+37 -0)📝
src-web/lib/initGlobalListeners.tsx(+15 -0)➕
src-web/lib/promptSelect.ts(+45 -0)📄 Description
When you call GET /list you often list all of your items and to GET /{itemId} I think select is way better option then just simple text.
I tried to make it as clean as possible, but it might be a bit of duplicated code because a lot of stuff is similar to text prompt
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.