From b942b2bf852df8783fa676bf4ea228845b453c76 Mon Sep 17 00:00:00 2001 From: mic Date: Sun, 22 Sep 2024 23:27:20 +0200 Subject: [PATCH] dynamic_menu_force_enter option added. see #130 --- _locales/en/messages.json | 8 ++++++++ options/mzta-options-default.js | 1 + options/mzta-options.html | 11 +++++++++++ 3 files changed, 20 insertions(+) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index afdba6c7..4e3f3763 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -554,5 +554,13 @@ "SearchPrompt": { "message": "Search a prompt", "description": "" + }, + "prefs_OptionText_dynamic_menu_force_enter": { + "message": "Menu: immediate prompt send", + "description": "" + }, + "prefs_OptionText_dynamic_menu_force_enter_info": { + "message": "If checked, using the keyboard shortcut CTRL+ALT+A will automatically send the hightlighted prompt from the menu. Otherwise, the prompt name will be displayed to the user, requiring another press of the Enter key to send it.", + "description": "" } } \ No newline at end of file diff --git a/options/mzta-options-default.js b/options/mzta-options-default.js index 0632dabf..66a10d57 100644 --- a/options/mzta-options-default.js +++ b/options/mzta-options-default.js @@ -29,4 +29,5 @@ export const prefs_default = { openai_comp_host: '', // For OpenAI Compatible API as LM-Studio openai_comp_model: '', openai_comp_chat_name: 'OpenAI Comp', + dynamic_menu_force_enter: false, } \ No newline at end of file diff --git a/options/mzta-options.html b/options/mzta-options.html index 9b9e9f4f..d76f9b84 100644 --- a/options/mzta-options.html +++ b/options/mzta-options.html @@ -59,6 +59,17 @@ + + + + + +