show prompt responses in dialog

This commit is contained in:
2026-02-07 21:56:47 +02:00
parent 71d957882c
commit 16ab8e4207
4 changed files with 60 additions and 18 deletions

View File

@@ -58,6 +58,7 @@ async fn main() {
.plugin(tauri_plugin_global_shortcut::Builder::new().build())
.invoke_handler(tauri::generate_handler![toggle_popup, prompt_llm])
.setup(|app| {
/* Auto-hide popup when focus is lost
if let Some(window) = app.get_webview_window("popup") {
let w = window.clone();
window.on_window_event(move |event| {
@@ -68,6 +69,8 @@ async fn main() {
}
})
}
*/
// Global shortcut to pull up the popup
let shortcut = Shortcut::new(Some(Modifiers::META), Code::Space);
app.global_shortcut()
.on_shortcut(shortcut, move |app, _shortcut, event| {

View File

@@ -22,8 +22,8 @@
"label": "popup",
"title": "AI Quick Action",
"url": "/popup",
"width": 600,
"height": 260,
"width": 800,
"height": 400,
"decorations": false,
"transparent": true,
"alwaysOnTop": true,