diff --git a/docs/subsystems/gui-shell.md b/docs/subsystems/gui-shell.md index b9bf0cc33..f82b3d21b 100644 --- a/docs/subsystems/gui-shell.md +++ b/docs/subsystems/gui-shell.md @@ -33,6 +33,7 @@ three. 6. The window opens as it was last left. Its settled size and whether it was maximised are kept in `settings.Window` and `settings.WindowMaximised` (`settle`; per machine, see `KeepOwn`). A maximised window keeps the size it restores to. `makeMain` opens it at that size (`openSize`). On its first show, `placeMain` maximises it again on the Mac and Windows (on Windows once the page has come). On Linux, `makeMain` makes it maximised with `StartState`. On Windows a size larger than the screen's work area is fitted and centred (`fitRoom`), and the larger size stays kept. The window's position is not kept. 7. The page's header is the window's title bar. `plainTitlebar` sets it up once the app has started, and again on a window lightweight mode made again (`madeAgain`). On Linux it hides GTK's title bar and keeps the shadow and the resize edges; GTK 3 leaves the corners square. On the Mac the traffic lights are inset into the header (`MacTitleBarHiddenInset`). In the design of macOS 26 a window with a toolbar has larger corners than one with a plain title bar, so `insetLights` ([`titlebar_darwin.go`](../../internal/gui/titlebar_darwin.go)) takes the toolbar off, and `MagpieLights` keeps the lights and the title bar's height where the toolbar had them: after a resize, a new title, light or dark, more contrast or less transparency, and leaving full screen. A sheet, such as the folder chooser, still begins below the title bar. A first press while another app is in front still moves the window from anywhere in that title bar (`firstPress`), as AppKit moved it with the toolbar; AppKit itself now does so only in a plain title bar's top 32pt. AppKit gives a program that design from macOS 26 when the program is linked against the macOS 26 SDK or a later one and its Info.plist doesn't ask for the earlier design (`UIDesignRequiresCompatibility`); `designOf26` reads each at run time, as the SDK depends on the toolchain that built magpie. The toolbar stays in the earlier design, where it doesn't change the corners, with the lights on the right (a right-to-left language), or when the title bar isn't laid out as expected; this is decided once, when the window is set up. In full screen the title bar is AppKit's own. Windows keeps its own title bar. 8. On the Mac, Settings › Show in Dock puts magpie in the Dock never (`DockNever`), while the window is open (the default; `DockWindow` records it chosen, for an older magpie that took none for never) or always (`Dock`, which wins). The default was never until ShouguangCao on X found the open window out of Command-Tab, so going back to it to paste a key copied elsewhere took the menu bar; a new install (no settings.json) reads With window, and Hide is a choice of its own (`inDock`, `dockChoice` in app.js, `TestDockFollowsWindowByDefault`, `dock-choice.test.cjs`). A file written before that has no `dockSettled`, and stored Hide as nothing, so a user who chose Hide can't be told from one who never chose: such a file with no Dock choice reads as Hide, and the first save writes it so with `dockSettled` (`settleDock`, `TestOlderSettingsKeepHide`, `TestNewInstallFollowsWindow`). A file nobody can read reads the same way. The page never sends `dockSettled`; the save keeps the file's (`TestSettingsSaveKeepsDockReading`). It is this computer's own, as the Dock choice is (`KeepOwn`). A full-screen window joins it whatever the setting (`inDock`, `dockOnFullscreen`). `openMain` joins before it shows the window (`setDock` runs on the main thread at once). An app activated out of the Dock (the quick panel's focus) that then joins it stays last in Command-Tab's order though it is in front, so joining to the front activates magpie by way of the Dock (`dockStep`, `activateAgain`; #1381, `TestDockStep`, `TestDockJoinLeadsCommandTab`). It does so without asking NSApp whether magpie is active: the Mac makes it the front app at once, and NSApp says so only once the main thread has taken that in, after the join on a busy Mac (#1651). +9. Settings › General › Quick panel shortcut binds a key combination that opens the tray's panel from any app (ben hanks on Discord); none is set by default. The page records the keys and posts them to `POST /api/settings/panel-shortcut`, which checks them (`panelShortcut`: a letter, digit, Space or F1–F20 with Ctrl, Alt/Option or Cmd/Super, or an F key alone, written as Wails' accelerator), has the running app bind them (`onPanelShortcut`, `bindPanelKey` through Wails' `GlobalShortcut`: Carbon's hot keys on the Mac, `RegisterHotKey` on Windows, `XGrabKey` on X11) and saves them only once bound. One the system refuses (on Windows and X11, another app holding it) is not saved and the old one stays bound; one saved but refused as magpie starts is retried after a handed-over magpie exits and else said in the row (`panelKeysJSON.Taken`). A pressed shortcut toggles the panel as a tray click does (`togglePanel`). The Mac's Carbon hot keys don't refuse a combination another app registered too, so there both are taken and magpie can't tell the user. The shortcut is per computer (`KeepOwn`), and the Mac's old process lets go of it as it hands over (`leaveMenuBar`). On Wayland no app may grab keys itself, so the field is off and the row says the command to bind in the desktop's own keyboard settings (`magpie panel`); Wails' GlobalShortcuts portal is not used, since the compositor decides its keys and Hyprland binds none unless configured. ## Constraints and failure behavior diff --git a/internal/gui/api.go b/internal/gui/api.go index 0152731c0..0839ec3ce 100644 --- a/internal/gui/api.go +++ b/internal/gui/api.go @@ -373,6 +373,9 @@ type settingsJSON struct { // Builtins are the built-in plugins: each one's switch, whether it // runs and what of it is in use (builtins.go) Builtins []builtinJSON `json:"builtins"` + // PanelKeys is whether the quick panel's shortcut can be set here + // (panelkey.go) + PanelKeys panelKeysJSON `json:"panelKeys"` // JSRoutings are the routings JS gateway plugins serve now // ("/"), for the routing pickers JSRoutings []middleware.Routing `json:"jsRoutings"` @@ -640,6 +643,7 @@ func settingsState() settingsJSON { s := settingsJSON{Settings: settings.Load(), Version: Version, Dir: tilde(settings.Dir()), Portable: settings.Portable() != "", Gateway: gateway.URL()} s.AddrEnv = os.Getenv("MAGPIE_ADDR") s.Builtins = builtinsState() + s.PanelKeys = panelKeysState() s.JSRoutings = middleware.Routings() s.OnNetwork = gateway.OnNetwork() if list, env := gateway.AllowIPs(); env { @@ -1445,6 +1449,8 @@ func Handler(w Windows, gw *gateway.Server) http.Handler { in.CodexWarmAtOf = cur.CodexWarmAtOf // and the text size, which the keyboard changes too (text-size below) in.TextSize = cur.TextSize + // and the quick panel's shortcut, set on its own (panel-shortcut below) + in.PanelShortcut = cur.PanelShortcut // the Dock choice's reading, which the page never sets: the file's // as read (settings.DockSettled), so a save from the page doesn't // read its With window as an older file's Hide @@ -2116,6 +2122,41 @@ func Handler(w Windows, gw *gateway.Server) http.Handler { } writeJSON(rw, settingsState()) }) + // the quick panel's shortcut (panelkey.go): bound in the app first, so + // one the system refuses is said and not saved, the one before kept + mux.HandleFunc("POST /api/settings/panel-shortcut", func(rw http.ResponseWriter, r *http.Request) { + var in struct{ Shortcut string } + if err := json.NewDecoder(r.Body).Decode(&in); err != nil { + fail(rw, err) + return + } + key, err := panelShortcut(in.Shortcut, runtime.GOOS) + if err != nil { + fail(rw, err) + return + } + s := settings.Load() + if key != "" && !panelKeysState().Can { + fail(rw, errors.New("This desktop doesn't let apps take a shortcut")) + return + } + if onPanelShortcut != nil { + if err := onPanelShortcut(key); err != nil { + fail(rw, err) + return + } + } + was := s.PanelShortcut + s.PanelShortcut = key + if err := settings.Save(s); err != nil { + if onPanelShortcut != nil { + _ = onPanelShortcut(was) // the saved one bound again + } + fail(rw, err) + return + } + writeJSON(rw, settingsState()) + }) // the Agents page's order and what it folds away, in magpie's settings mux.HandleFunc("POST /api/agents/arrange", func(rw http.ResponseWriter, r *http.Request) { var in struct{ Order, Hidden, Shown []string } diff --git a/internal/gui/app.go b/internal/gui/app.go index d4ef6023b..9724a06de 100644 --- a/internal/gui/app.go +++ b/internal/gui/app.go @@ -107,6 +107,10 @@ type host struct { loading map[*application.WebviewWindow]bool // the main window placed as it was last left (placeMain), and so shown placed atomic.Pointer[application.WebviewWindow] + + // the quick panel's shortcut bound now, "" for none (panelkey_app.go) + keyMu sync.Mutex + panelKey string } // whenReady runs fn once the main window can be shown safely. @@ -576,6 +580,7 @@ func Run(version string, showMain bool, link string) error { } } h.watchTrayUsage() + h.startPanelKey(before) // Omarchy's bar shows magpie once: as its widget (Settings → Bar // icon) or as the tray's item, not both onBarIcon = h.setTrayInBar @@ -815,6 +820,8 @@ func (h *host) leaveMenuBar() { h.main.Hide() } setDock(false, false) + // and its shortcut, for the new version to bind + go h.dropPanelKey() }) } diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.css index bcda245a2..34c5a15e8 100644 --- a/internal/gui/assets/app.css +++ b/internal/gui/assets/app.css @@ -3507,6 +3507,15 @@ body:not(.side-nav) #view-settings .set-head.stuck::before { box-shadow: 0 1px 0 .row.pref .set-field { flex: none; width: 120px; height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); } .row.pref .set-field[type=number] { width: 72px; text-align: right; } .row.pref .set-field[aria-invalid=true] { border-color: var(--red); } +/* the quick panel's shortcut: a field that listens for keys, and its clear */ +#panelKey { flex: none; margin-left: auto; display: flex; align-items: center; gap: 4px; } +#panelKey .key-rec { min-width: 120px; height: 24px; padding: 0 8px; font: inherit; font-size: 12px; color: var(--fg); border: 1px solid var(--line); border-radius: 7px; background: var(--card); white-space: nowrap; cursor: default; } +#panelKey .key-rec.on { color: var(--fg-2); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } +#panelKey .key-rec:disabled { opacity: .5; } +#panelKey .key-clear { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; color: var(--fg-2); background: none; } +#panelKey .key-clear:hover { color: var(--fg); background: var(--pill); } +#panelKey .key-clear[hidden] { display: none; } +#panelKeyRow .sub { user-select: text; -webkit-user-select: text; } /* a plugin's page that broke (kernel.js): what broke, and Try again */ .slot-error .row { gap: 14px; padding: 12px 14px; } .slot-error .sub { margin-top: 2px; color: var(--fg-2); overflow-wrap: anywhere; } diff --git a/internal/gui/assets/app.js b/internal/gui/assets/app.js index b3f46f9bd..1b0c61a9d 100644 --- a/internal/gui/assets/app.js +++ b/internal/gui/assets/app.js @@ -2777,10 +2777,8 @@ let panelOpenAgent = null; // the one agent row the panel has opened // How the agent's own model is run (ultracode, an effort) is not: turning // Claude Code's ultracode on folded every other agent away under Show more. // One with 「接入」's switch is set up when it is connected, and only then -// (#726): its fields are read from its own files, so one not connected kept -// its row up for a model of its own (Antigravity, DeepSeek Harness), and a -// connected Codex starting on its last choice, no model set, went under -// Not set up. One magpie connected that has come apart (drift) stays up +// (#726): its fields are read from its own files. One magpie connected +// that has come apart (drift) stays up // too, to be put right. One with no switch (Cursor, an app's own models) // goes by what is set on it, as before, though while an agent can be // connected it doesn't start the folding (arrangeAgents): its values are @@ -5438,13 +5436,11 @@ function rateTag(rate = 0, was = 0) { } // modelTells: what tells apart the models of one list that would show the -// same label (sunset on Discord: the Our Free Model plugin's several -// "DeepSeek-V4.1-Flash · x0.1", told apart only by the buddy/… of their -// ids, in the tooltip). items are the list's entries, label(x) what each -// shows, id(x) its id, and key(x) the part of the list it is shown in (a -// picker's provider): labels are compared within a key. Returns a Map of -// id → tell for the entries whose label another of the same key shares; an -// entry whose label is its own gets none, and is drawn as it was. +// same label (sunset on Discord). items are the list's entries, label(x) +// what each shows, id(x) its id, and key(x) the part of the list it is +// shown in (a picker's provider): labels are compared within a key. +// Returns a Map of id → tell for the entries whose label another of the +// same key shares; one whose label is its own gets none. // // A tell is the part of its id the others' don't share: the path segments // every id of the label begins with and ends with are dropped, so buddy/x @@ -8788,22 +8784,15 @@ $("#modal").addEventListener("keydown", (e) => { e.preventDefault(); (e.shiftKey ? last : first).focus(); }); -// A dialog opens centred, and stays centred while what it holds fills in -// before the reader has done anything in it (a plugin's README loading -// under a dialog opened short read as a dialog sat low, the owner 10-24). -// From the reader's first press or key in it, it stays put while what it -// holds grows or shrinks (a fold opening, an error line, a list filling): it holds the -// place of whatever the reader last pressed or focused in it, and grows -// and shrinks round that, down to the window's foot, where it stays and -// its fields scroll as a full-height dialog's do. Where there is no -// room left to move, its fields shorten over a pressed button below them, -// so an error line over Remove doesn't push Remove down; a pressed field -// goes with what grows above it, as nothing a click does scrolls. Centred all along, a dialog -// shorter than the window moved by half of every change, the line just -// clicked sliding from under the pointer. Its place is a relative top and -// a cap on its height. A change made in the page is held before it is -// drawn (a mutation's microtask); one that only resizes (an animation, the -// window) a frame later, as an observer can't resize what it observes. +// A dialog opens centred and stays centred while it fills in, until the +// reader's first press or key in it (the owner 10-24). From then it holds +// the place of what the reader last pressed or focused, growing and +// shrinking round it down to the window's foot, where its fields scroll. +// With no room left, its fields shorten over a pressed button below them, +// so an error line over Remove doesn't push Remove down. Centred all along, +// the line just clicked slid from under the pointer. Its place is a +// relative top and a cap on its height. A change made in the page is held +// before it is drawn (a mutation's microtask); a resize a frame later. const modalHold = { off: 0, at: null, y: 0, cap: null, capSet: "", touched: false }; // how far down the dialog an element sits, to the fraction of a pixel, // what moves it in an animation (a row coming in) left out. An element @@ -9041,11 +9030,7 @@ $("#modal").onclick = (e) => { if (modalBackdrop(e)) cancelEdit(); }; // is another (a save refused puts one back), and otherwise is left as it // is. A thumb is placed only where the control is laid out: one drawn // hidden (Settings at start, a tab not shown) is put under its option, -// still, when it is shown or sized again (thumbFit). Before, a redrawn -// control made a new thumb and replayed what was remembered of the old -// one's glide from its start (a click's thumb jumped back and slid again), -// and positions taken while Settings was hidden, 0 wide, made every thumb -// on the page grow in from the left on the first save. +// still, when it is shown or sized again (thumbFit). const thumbs = new Map(); // control position → { th, pick, to }: its thumb, the option it is under or going to, and where that is const THUMB_MS = 280, THUMB_EASE = "cubic-bezier(.2, .8, .2, 1)"; // --ease const thumbKeys = new WeakMap(); // box → its key, for thumbFit @@ -10843,7 +10828,7 @@ function showRest(n, open) { const DETECT_MAX = 30; // addFormModels: the add form's models, typed in (ex) or picked from the // vendor's list, asked with the form as it stands before anything is saved -// (#578: 添加供应商的时候,希望添加可以获取全模型的按钮或者下拉框). A chip +// (#578). A chip // ticked or unticked is in draft.extra, which the Save sends as the models. function addFormModels(ex) { const box = el("div", "stack add-models"); @@ -16174,24 +16159,15 @@ function keyCards(list) { return gone.size ? list.filter((q) => !gone.has(q)).map((q) => merged.get(q) || q) : list; } -// packUsage lays the Usage page's cards out in columns, each card as tall -// as itself, the next in the order going to the column that ends highest -// (huoranxuanyuan, #860: a tall Codex card beside Antigravity and a -// DeepSeek balance left the short two mostly empty; 把 antigravity 和 -// deepseek 两个上下堆叠和 Codex 对齐). The order still reads left to right, -// row by row as near as the heights allow, and the cards stay in it on the -// page, for dragging, Alt+arrows and a screen reader alike. As many columns -// as 260px each fit, unless one fewer leaves much less empty beside the -// short cards for a page not much taller. Decided again when the cards -// change or the width fits another number of columns; a card growing (a -// fold opened) only packs them again, so what was clicked stays where it -// was, even as the view's scrollbar comes in and takes some of the width -// (in WebKit a card turned to every model went to one column under its -// neighbour, the page following it). The last card in each column reaches -// down to where the tallest column ends, so the bottoms line up: a row of -// cards side by side is as tall as its tallest, and a short card stacked -// under another ends with the tall one beside them (ikunbots on X: 卡片可以 -// 对齐吗). Each card is measured as tall as itself before that. +// packUsage lays the Usage page's cards out in columns, each as tall as +// itself, the next going to the column that ends highest (#860). The order +// reads left to right and stays the page's, for dragging, Alt+arrows and a +// screen reader. As many 260px columns as fit, unless one fewer leaves much +// less empty for a page not much taller; decided again when the cards +// change or the width fits another count. A card growing only packs them +// again, so what was clicked stays put as the scrollbar comes and goes. +// Each column's last card reaches down to the tallest column's end, so the +// bottoms line up (ikunbots on X). const USAGE_MIN = 260, USAGE_GAP = 7; let usagePacked = null, usagePackFrame = 0; function packUsage() { @@ -19191,6 +19167,43 @@ async function setTextSize(n) { status(e.message, "err"); } } +// The quick panel's own shortcut from any app (ben hanks): while its field +// listens, a letter, digit, Space or F key with Ctrl, Alt or Cmd/Win (an F +// key alone too) is sent as Wails names it (panelkey.go), ahead of the +// keys below; Esc or leaving the field stops it. Wayland's desktop binds +// it itself, to the command the row shows. +let keyRec = false; +const MAC = /^Mac/.test(navigator.platform); +const keyName = (a) => MAC ? a.replace("Ctrl+", "⌃").replace("Option+", "⌥").replace("Shift+", "⇧").replace("Cmd+", "⌘") + : a.replace("Super", /^Win/.test(navigator.platform) ? "Win" : "Super"); +function renderPanelKey(s) { + const k = s.panelKeys || {}, box = $("#panelKey"), sub = $("#panelKeyRow .sub"), cur = s.panelShortcut || ""; + $("#panelKeyRow").hidden = web; + sub.hidden = k.can && !(cur && k.taken === cur); + sub.textContent = k.can ? t("Another app already uses this shortcut") : t("Set it in your desktop's keyboard settings, to run {command}", { command: k.command }); + const b = el("button", "key-rec" + (keyRec ? " on" : ""), keyRec ? t("Type shortcut") : cur ? keyName(cur) : t("Record shortcut")); + b.type = "button"; + b.disabled = !k.can; + b.onclick = () => { keyRec = !keyRec; renderSettings(); }; + b.onblur = () => setTimeout(() => { if (keyRec && !box.contains(document.activeElement)) { keyRec = false; renderSettings(); } }); + const x = el("button", "key-clear", svg(CROSS, 10, 2)); + x.type = "button"; + x.setAttribute("aria-label", x.title = t("Clear")); + x.hidden = !cur; + x.onclick = () => { keyRec = false; prefWrite(api("settings/panel-shortcut", { shortcut: "" })); }; + box.replaceChildren(b, x); + if (keyRec) b.focus({ preventScroll: true }); +} +if (!web) addEventListener("keydown", (e) => { + if (!keyRec) return; + e.preventDefault(); + e.stopImmediatePropagation(); + if (e.key === "Escape") return void ((keyRec = false), renderSettings()); + const c = e.code, f = /^F([1-9]|1\d|20)$/.test(c), k = /^(?:Key|Digit)(.)$/.exec(c)?.[1] || (f || c === "Space" ? c : ""); + if (!k || !(f || e.ctrlKey || e.altKey || e.metaKey)) return; + keyRec = false; + prefWrite(api("settings/panel-shortcut", { shortcut: [e.ctrlKey && "Ctrl", e.altKey && (MAC ? "Option" : "Alt"), e.shiftKey && "Shift", e.metaKey && (MAC ? "Cmd" : "Super"), k].filter(Boolean).join("+") })); +}, true); // Ctrl/Cmd + = and − step through the sizes, 0 goes back to 100%, in the // window and the panel alike; in a browser tab they are the browser's. if (!web) addEventListener("keydown", (e) => { @@ -19801,6 +19814,7 @@ function renderSettings() { $("#textSizeSegs").title = t("Everything in magpie's windows, larger; {keys} too", { keys: textSizeKeys() }); $("#textSizeSegs").replaceChildren(segs(TEXT_SIZES.map((n) => [n, n + "%"]), s.textSize || 100, (n) => setTextSize(n))); $("#traySegs").replaceChildren(segs(TRAYS.map(([id, name]) => [id, t(name)]), s.tray || "panel", (tray) => savePrefs({ ...keep, tray }))); + renderPanelKey(s); // the Dock is the Mac's; the tray and the login item the app's $("#dockRow").hidden = !document.body.classList.contains("mac"); $("#traySegs").parentElement.hidden = $("#loginSegs").parentElement.hidden = web; @@ -20519,17 +20533,12 @@ const IN_USE = "|*"; // the tray icon, side by side. The cards are the Usage page's, asked for // when the menu opens; any number are ticked in it. // suffixSegs: how the agents' lists name a model — with its provider's -// (or "routing group") after it, all but the names the user gave models -// and the groups they made (#92), or none (#335). Set on its own, so the -// agents are told. Offered on Settings and where names are given, the -// provider's Names & levels and over Routing's groups (#868: an agent's -// narrow menu cut "· routing group" short, and the setting wasn't found; -// in one group's editor it read as that group's, PAMI on Discord); -// drawn(mode) redraws the place it was picked in. -// The mode is read from the state's settings, which startup reads before -// any page is drawn, not from Settings' own read, which only opening -// Settings makes: Routing and the provider editor said On over a saved Off -// until Settings had been opened (#1433, ObsidianArch02). +// (or "routing group") after it, all but the user's own names (#92), or +// none (#335). Set on its own, so the agents are told. Offered on Settings, +// the provider's Names & levels and over Routing's groups (#868); +// drawn(mode) redraws the place it was picked in. The mode is read from +// the state's settings, read before any page is drawn, not Settings' own +// read (#1433). function suffixMode(s = state.settings || {}) { return s.plainNames ? "off" : s.plainOwnNames ? "own" : "on"; } function suffixSegs(drawn) { const mode = suffixMode(); diff --git a/internal/gui/assets/i18n.js b/internal/gui/assets/i18n.js index 48f01d112..6736cc690 100644 --- a/internal/gui/assets/i18n.js +++ b/internal/gui/assets/i18n.js @@ -789,6 +789,14 @@ const I18N = { "Click the tray icon to": "点击托盘图标", "Open the quick panel": "打开快捷面板", "Open the main window": "打开主窗口", + "Quick panel shortcut": "快捷面板快捷键", + "Record shortcut": "录制快捷键", + "Type shortcut": "请按下快捷键", + "Another app already uses this shortcut": "其他应用已占用这个快捷键", + "Set it in your desktop's keyboard settings, to run {command}": "请在桌面环境的键盘设置里添加,运行 {command}", + "magpie couldn't take this shortcut": "magpie 无法使用这个快捷键", + "Not a shortcut magpie can use": "magpie 不能使用这个快捷键", + "This desktop doesn't let apps take a shortcut": "这个桌面环境不允许应用占用快捷键", "Bar icon": "状态栏图标", "magpie’s icon beside Omarchy’s own in the bar; right-click opens the window": "把 magpie 图标放进 Omarchy 状态栏,与系统图标并排;右键打开窗口", "Show in Dock": "显示程序坞", @@ -4929,6 +4937,14 @@ const I18N = { "Click the tray icon to": "點選托盤圖示", "Open the quick panel": "開啟快捷面板", "Open the main window": "開啟主視窗", + "Quick panel shortcut": "快捷面板快速鍵", + "Record shortcut": "錄製快速鍵", + "Type shortcut": "請按下快速鍵", + "Another app already uses this shortcut": "其他應用程式已占用這個快速鍵", + "Set it in your desktop's keyboard settings, to run {command}": "請在桌面環境的鍵盤設定裡新增,執行 {command}", + "magpie couldn't take this shortcut": "magpie 無法使用這個快速鍵", + "Not a shortcut magpie can use": "magpie 不能使用這個快速鍵", + "This desktop doesn't let apps take a shortcut": "這個桌面環境不允許應用程式占用快速鍵", "Bar icon": "狀態列圖示", "magpie’s icon beside Omarchy’s own in the bar; right-click opens the window": "把 magpie 圖示放進 Omarchy 狀態列,與系統圖示並排;右鍵開啟視窗", "Show in Dock": "顯示程式塢", @@ -9041,6 +9057,14 @@ const I18N = { "Click the tray icon to": "トレイアイコンのクリックで", "Open the quick panel": "クイックパネルを開く", "Open the main window": "メインウィンドウを開く", + "Quick panel shortcut": "クイックパネルのショートカット", + "Record shortcut": "ショートカットを記録", + "Type shortcut": "キーを押してください", + "Another app already uses this shortcut": "このショートカットは他のアプリが使用中です", + "Set it in your desktop's keyboard settings, to run {command}": "デスクトップのキーボード設定で、{command} を実行するよう設定してください", + "magpie couldn't take this shortcut": "magpie はこのショートカットを使えませんでした", + "Not a shortcut magpie can use": "magpie が使えるショートカットではありません", + "This desktop doesn't let apps take a shortcut": "このデスクトップではアプリがショートカットを登録できません", "Bar icon": "バーアイコン", "magpie’s icon beside Omarchy’s own in the bar; right-click opens the window": "Omarchy のバーで、Omarchy 自身のアイコンの横に magpie のアイコンを表示します。右クリックでウィンドウを開きます", "Show in Dock": "Dock に表示", @@ -13167,6 +13191,14 @@ const I18N = { "Click the tray icon to": "Klick auf das Tray-Symbol", "Open the quick panel": "Schnell-Panel öffnen", "Open the main window": "Hauptfenster öffnen", + "Quick panel shortcut": "Tastenkürzel für das Schnellpanel", + "Record shortcut": "Kürzel aufnehmen", + "Type shortcut": "Kürzel drücken", + "Another app already uses this shortcut": "Eine andere App nutzt dieses Kürzel bereits", + "Set it in your desktop's keyboard settings, to run {command}": "In den Tastatureinstellungen des Desktops festlegen, um {command} auszuführen", + "magpie couldn't take this shortcut": "magpie konnte dieses Kürzel nicht belegen", + "Not a shortcut magpie can use": "Kein Kürzel, das magpie nutzen kann", + "This desktop doesn't let apps take a shortcut": "Dieser Desktop lässt Apps keine Kürzel belegen", "Bar icon": "Leistensymbol", "magpie’s icon beside Omarchy’s own in the bar; right-click opens the window": "magpie-Symbol neben den Omarchy-Symbolen in der Leiste; Rechtsklick öffnet das Fenster", "Show in Dock": "Im Dock zeigen", diff --git a/internal/gui/assets/index.html b/internal/gui/assets/index.html index 46c26c1b1..31f403bb8 100644 --- a/internal/gui/assets/index.html +++ b/internal/gui/assets/index.html @@ -214,6 +214,10 @@
Click the tray icon to
+
+
Quick panel shortcut
+
+