diff --git a/CHANGELOG.md b/CHANGELOG.md index 38d0a59..494a48c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,20 @@ What's new in each version of Glide for Mac. Glide shows the new entries once after it updates, and each release's notes on GitHub come from here, so write for people using Glide. Add an entry for every change worth knowing about under the next version before tagging it. Glide shows these notes in the app's language: the translations live in `changelog/CHANGELOG..md`, and a new entry must be translated in every one of them before tagging (`ChangelogTranslationTests` checks that they match this file). +## 0.12.0 — 2026-10-30 + +### New + +- **Back and forth.** ⌃⌥\` goes back to the window you were in before, on any workspace or display, and ⌃⌥⇥ to the last workspace. Press either again to come back. +- **H J K L for directions.** Settings › Shortcuts › Direction keys swaps the arrows of the focus and move shortcuts for H, J, K and L, as in vim. Display shortcuts keep the arrows. +- **Your own column widths.** Settings › General › Column widths takes the widths ⌃⌥R steps through, as percentages of the screen. New windows open at the one nearest 50. +- **Even out the columns on screen.** ⌃⌥E gives the columns on screen, even partly, equal widths that fill it together. In the tiled layout, it resets the splits. +- **Focus follows the mouse,** if you turn it on in Settings › General. Resting the pointer on a tiled window that's fully on screen focuses it; floating windows, menus and the Dock are left alone. +- **Scratchpad.** ⌃⌥⇧S makes the focused window (a terminal, notes, a chat) the scratchpad and hides it. ⌃⌥S brings it out, floating in the middle of the screen, and hides it again. +- **Command line and links.** `glide focus-workspace 3`, or a glide://focus-workspace-3 link, runs any action from scripts, Raycast, Alfred, Stream Deck or Shortcuts. Settings › General › Command line tool copies the command that installs `glide`. +- **Your layout comes back after a restart.** Glide now finds windows again by their app and title after the Mac restarts, and puts each back on its workspace, at its width and in its stack as it opens. +- **Export and import settings.** Settings › General › Settings file saves shortcuts, app rules, layout and appearance as a readable JSON file, and loads one on another Mac. + ## 0.11.2 — 2026-10-30 ### New diff --git a/Glide.xcodeproj/project.pbxproj b/Glide.xcodeproj/project.pbxproj index 1c4398e..f8b2112 100644 --- a/Glide.xcodeproj/project.pbxproj +++ b/Glide.xcodeproj/project.pbxproj @@ -13,6 +13,7 @@ 06BD64AC4BB36B7D23006468 /* SwipeTracker.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0218104AF30AC3A25988DD7 /* SwipeTracker.swift */; }; 08619B001FD6F8C2700A2AEF /* CHANGELOG.ko.md in Resources */ = {isa = PBXBuildFile; fileRef = B7D12B025F20F840EF8CF5D1 /* CHANGELOG.ko.md */; }; 099BBA34005BADFA62071358 /* GlideApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8DC58FA05CD84A7E6606359 /* GlideApp.swift */; }; + 0B13550CA01133CF1BD61254 /* SettingsTransfer.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC7AAF8BC4562EFBE6B5F643 /* SettingsTransfer.swift */; }; 0E058A48302ABAE139350059 /* TiledLayoutTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 940360AD9FE5D11131C5B46C /* TiledLayoutTests.swift */; }; 0ED63ED44A92CE6CA26A3553 /* FrameCheckTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4CA66AB46C4FA25CC262293 /* FrameCheckTests.swift */; }; 13064E5791605EB01D0B61C1 /* ShortcutSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = FECA1EB3CA83CD0F5481A0CA /* ShortcutSheet.swift */; }; @@ -34,6 +35,7 @@ 3B3A0AC8EC8515F2D73F7CE2 /* GlideCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD74BF51238E38CE7484D1F6 /* GlideCore.framework */; }; 3BC835F10F0ABC9E8D56FC40 /* DisplayTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0713A0762AABAE3F11AD26DF /* DisplayTests.swift */; }; 3BF7C6FF9474E48262C1DE62 /* WheelRouting.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8AAF96897958EBD5E8B05705 /* WheelRouting.swift */; }; + 3EC39B56A4F7AD23E0D6D922 /* CommandLineTool.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99649FDE4B85108755A2EE7B /* CommandLineTool.swift */; }; 408F1EC440A043A99535132D /* ProblemReportTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F14A6567E31AC2034FAE767 /* ProblemReportTests.swift */; }; 468E6CB8186840D9CBD39703 /* WorkspaceTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 855D351DAF3428DE0F359ACF /* WorkspaceTests.swift */; }; 47DFC044C64B0DD3B4BEBECE /* StripTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7ECA03FC26B7820A6830B7D2 /* StripTests.swift */; }; @@ -48,6 +50,7 @@ 6336834BF168EB783F12E62C /* KeyCombo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 211731250170AA7196708655 /* KeyCombo.swift */; }; 6772F5E84831025E6B9D494E /* WorkspaceSetTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D53F3C7F12550C9F2EBD2630 /* WorkspaceSetTests.swift */; }; 6C1175CF3ABEE2F1C1F27802 /* AppRuleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7EA952993265962A300C3389 /* AppRuleTests.swift */; }; + 6DD76968159564189FCFD400 /* CommandNameTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEB0145B9BB04FD20F56D79C /* CommandNameTests.swift */; }; 778B8C4027B61ACADD384C58 /* TrackpadMonitor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73EB183C8C8029224335660D /* TrackpadMonitor.swift */; }; 7D4F93C4F7E159C0A2EC4B80 /* CHANGELOG.de.md in Resources */ = {isa = PBXBuildFile; fileRef = 00324F0FEE8051CB60BB2A56 /* CHANGELOG.de.md */; }; 7DA6B81D65AEC85B7209AC22 /* TabTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4B209FFB1B066001F2B114E /* TabTests.swift */; }; @@ -57,6 +60,7 @@ 9752D2DB073C18961DD26742 /* RestorePlannerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F55E3468B2292B798242FE4E /* RestorePlannerTests.swift */; }; 9DC758C127A17141F074A152 /* AXWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F7723B886DE20AE2F7F7E0E /* AXWindow.swift */; }; A32997517D6E7D0E5E79E97C /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 4B1C432F3A589853DD4D1E9D /* Localizable.xcstrings */; }; + A400D6FC6D5D9163ECC2920D /* RestartPlanTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E4056CC86F6C1959350D5B19 /* RestartPlanTests.swift */; }; A46B85A598CE5CC11B525D73 /* WhatsNewWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = EB824727C276DAC656A7D6C8 /* WhatsNewWindow.swift */; }; A4779587F5BFED2CB2E60FC9 /* StripSnapshotTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEA2E89E28846A56010FD3FD /* StripSnapshotTests.swift */; }; A4D7ADD9E7AE917C0CAF3476 /* TiledLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 550A8E9986266E96158B1103 /* TiledLayout.swift */; }; @@ -72,6 +76,7 @@ C002C1A80083DFBE04656F21 /* Updates.swift in Sources */ = {isa = PBXBuildFile; fileRef = D404646C9367FC96B9CDE194 /* Updates.swift */; }; C45E15B309635B7A7F0C956E /* CHANGELOG.zh-Hans.md in Resources */ = {isa = PBXBuildFile; fileRef = 8F568D7B1835FE2C4A5FD7E9 /* CHANGELOG.zh-Hans.md */; }; C4CA74DD658F9F1035329EDF /* WheelMonitor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 591AA3F2BA3FC3A11535A704 /* WheelMonitor.swift */; }; + C941E557BFC2D73589681EA7 /* RestartPlan.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8E42F2887FFCB4D2C25526E /* RestartPlan.swift */; }; C9B06DF243396B5EAF691E66 /* LocalizationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D42059F7743469B1EC45EC20 /* LocalizationTests.swift */; }; CDE703CBDFAC970353EE4CFB /* AccessibilityPermission.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7EB9518715CCEA7C54408F11 /* AccessibilityPermission.swift */; }; D5BF014404C5C81A43FC2089 /* WorkspaceSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D1DAFAB441E17A99F3AC4E9 /* WorkspaceSet.swift */; }; @@ -178,13 +183,16 @@ 940360AD9FE5D11131C5B46C /* TiledLayoutTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TiledLayoutTests.swift; sourceTree = ""; }; 97C6EBB568AC2ADAFB1A70E0 /* Glide.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Glide.app; sourceTree = BUILT_PRODUCTS_DIR; }; 98A651CC71C1F5C9B99C817E /* ProblemReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProblemReport.swift; sourceTree = ""; }; + 99649FDE4B85108755A2EE7B /* CommandLineTool.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CommandLineTool.swift; sourceTree = ""; }; 9DB05702BE4EF9C631E22A1D /* Overview.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Overview.swift; sourceTree = ""; }; 9F7723B886DE20AE2F7F7E0E /* AXWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AXWindow.swift; sourceTree = ""; }; A81C06183F18F46F0E197D11 /* StripSnapshot.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StripSnapshot.swift; sourceTree = ""; }; + AC7AAF8BC4562EFBE6B5F643 /* SettingsTransfer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsTransfer.swift; sourceTree = ""; }; B7D12B025F20F840EF8CF5D1 /* CHANGELOG.ko.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.ko.md; sourceTree = ""; }; B932133198BF26973212958C /* WindowManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WindowManager.swift; sourceTree = ""; }; BB274D5EB7F5944002D274AB /* CHANGELOG.fr.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.fr.md; sourceTree = ""; }; C8DC58FA05CD84A7E6606359 /* GlideApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GlideApp.swift; sourceTree = ""; }; + C8E42F2887FFCB4D2C25526E /* RestartPlan.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RestartPlan.swift; sourceTree = ""; }; C9AEE8E1BF58E4F34130ACDD /* StatusMenu.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatusMenu.swift; sourceTree = ""; }; C9E398FD0B43B3340D4B1921 /* SwipeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwipeTests.swift; sourceTree = ""; }; CBFB3B94681949181BB10AE9 /* TabBarOverlay.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabBarOverlay.swift; sourceTree = ""; }; @@ -198,8 +206,10 @@ D7DE076DCB01EB56D2207378 /* SettingsWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsWindow.swift; sourceTree = ""; }; DD74BF51238E38CE7484D1F6 /* GlideCore.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GlideCore.framework; sourceTree = BUILT_PRODUCTS_DIR; }; DEA2E89E28846A56010FD3FD /* StripSnapshotTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StripSnapshotTests.swift; sourceTree = ""; }; + DEB0145B9BB04FD20F56D79C /* CommandNameTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CommandNameTests.swift; sourceTree = ""; }; E0218104AF30AC3A25988DD7 /* SwipeTracker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwipeTracker.swift; sourceTree = ""; }; E1D5BCF04C2F6A9E0B7A39A5 /* HotkeyCenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HotkeyCenter.swift; sourceTree = ""; }; + E4056CC86F6C1959350D5B19 /* RestartPlanTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RestartPlanTests.swift; sourceTree = ""; }; E4E1EFE1FDBB87D705674139 /* AppMemory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppMemory.swift; sourceTree = ""; }; EB824727C276DAC656A7D6C8 /* WhatsNewWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WhatsNewWindow.swift; sourceTree = ""; }; F286D1BB0A539F05483F1556 /* DropTargetTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DropTargetTests.swift; sourceTree = ""; }; @@ -237,6 +247,7 @@ children = ( 7EB9518715CCEA7C54408F11 /* AccessibilityPermission.swift */, 9F7723B886DE20AE2F7F7E0E /* AXWindow.swift */, + 99649FDE4B85108755A2EE7B /* CommandLineTool.swift */, 8A5D4666AF12CDEA444570C0 /* CrashWatchdog.swift */, F3825A04CEA6B7276C6C995D /* DropHighlight.swift */, 2CDFB0C976C8DE2E7661FA52 /* FocusDecorations.swift */, @@ -248,6 +259,7 @@ 913303FC6FE0EAFF5B404A4A /* OverviewWindow.swift */, 98A651CC71C1F5C9B99C817E /* ProblemReport.swift */, 0E3B1D8E1B8FC2E7B626F008 /* RuleStore.swift */, + AC7AAF8BC4562EFBE6B5F643 /* SettingsTransfer.swift */, D7DE076DCB01EB56D2207378 /* SettingsWindow.swift */, FECA1EB3CA83CD0F5481A0CA /* ShortcutSheet.swift */, 59ABF59D6A9737FB2874BB5B /* ShortcutStore.swift */, @@ -279,6 +291,7 @@ D6B529F81514ADA48040E8F6 /* Localizable.xcstrings */, 9DB05702BE4EF9C631E22A1D /* Overview.swift */, F6DAACEBEEB98FB7D85F7DE6 /* ProblemReport.swift */, + C8E42F2887FFCB4D2C25526E /* RestartPlan.swift */, 16BE04140139A88E5CF19C67 /* RestorePlanner.swift */, 2A06047E647B6B48699CC776 /* Strip.swift */, A81C06183F18F46F0E197D11 /* StripSnapshot.swift */, @@ -313,6 +326,7 @@ 7EA952993265962A300C3389 /* AppRuleTests.swift */, 0D3D1EAF622CF929EF911931 /* ChangelogTests.swift */, 08D9BEF9F7DEA00731D05AF4 /* ChangelogTranslationTests.swift */, + DEB0145B9BB04FD20F56D79C /* CommandNameTests.swift */, 0713A0762AABAE3F11AD26DF /* DisplayTests.swift */, F286D1BB0A539F05483F1556 /* DropTargetTests.swift */, 25B33FD4253A18B35308DCF6 /* FrameAnimationTests.swift */, @@ -321,6 +335,7 @@ D42059F7743469B1EC45EC20 /* LocalizationTests.swift */, 73891196AB0F372406F0213D /* OverviewTests.swift */, 5F14A6567E31AC2034FAE767 /* ProblemReportTests.swift */, + E4056CC86F6C1959350D5B19 /* RestartPlanTests.swift */, F55E3468B2292B798242FE4E /* RestorePlannerTests.swift */, DEA2E89E28846A56010FD3FD /* StripSnapshotTests.swift */, 7ECA03FC26B7820A6830B7D2 /* StripTests.swift */, @@ -519,6 +534,7 @@ 4F7F0DCACEA41D66A3506417 /* Keymap.swift in Sources */, FBAD67654FDC7461526321E1 /* Overview.swift in Sources */, B36F63813956294A94C655ED /* ProblemReport.swift in Sources */, + C941E557BFC2D73589681EA7 /* RestartPlan.swift in Sources */, 5B90D240DEDA13828B1D84EF /* RestorePlanner.swift in Sources */, 1BA66D9B2CD8AE2CF58148FD /* Strip.swift in Sources */, 5D6B74505C439B0419733952 /* StripSnapshot.swift in Sources */, @@ -536,6 +552,7 @@ files = ( 9DC758C127A17141F074A152 /* AXWindow.swift in Sources */, CDE703CBDFAC970353EE4CFB /* AccessibilityPermission.swift in Sources */, + 3EC39B56A4F7AD23E0D6D922 /* CommandLineTool.swift in Sources */, 5B857383E576775DD779433F /* CrashWatchdog.swift in Sources */, 3440F0F04C7824827A08D252 /* DropHighlight.swift in Sources */, 32291BF1A8BF5940323A8ACE /* FocusDecorations.swift in Sources */, @@ -545,6 +562,7 @@ 2A52C44D2CC367F4A3ACD154 /* OverviewWindow.swift in Sources */, FFC86AAF3ABE6178A7CFC693 /* ProblemReport.swift in Sources */, A71CF1F962ED1ADD49DFC800 /* RuleStore.swift in Sources */, + 0B13550CA01133CF1BD61254 /* SettingsTransfer.swift in Sources */, B43D06626F88A29E9F6C511E /* SettingsWindow.swift in Sources */, 13064E5791605EB01D0B61C1 /* ShortcutSheet.swift in Sources */, FBDA779A3D9620B228EE028F /* ShortcutStore.swift in Sources */, @@ -568,6 +586,7 @@ 6C1175CF3ABEE2F1C1F27802 /* AppRuleTests.swift in Sources */, B58A015F50FA1FA718A3558B /* ChangelogTests.swift in Sources */, 2AE23DA1EA2276EFA481F60E /* ChangelogTranslationTests.swift in Sources */, + 6DD76968159564189FCFD400 /* CommandNameTests.swift in Sources */, 3BC835F10F0ABC9E8D56FC40 /* DisplayTests.swift in Sources */, 05EABA58F843FB05AA29F043 /* DropTargetTests.swift in Sources */, E8C8A02BDD4E3C29C27EC33C /* FrameAnimationTests.swift in Sources */, @@ -576,6 +595,7 @@ C9B06DF243396B5EAF691E66 /* LocalizationTests.swift in Sources */, B275455F096DE049625B288F /* OverviewTests.swift in Sources */, 408F1EC440A043A99535132D /* ProblemReportTests.swift in Sources */, + A400D6FC6D5D9163ECC2920D /* RestartPlanTests.swift in Sources */, 9752D2DB073C18961DD26742 /* RestorePlannerTests.swift in Sources */, A4779587F5BFED2CB2E60FC9 /* StripSnapshotTests.swift in Sources */, 47DFC044C64B0DD3B4BEBECE /* StripTests.swift in Sources */, @@ -640,7 +660,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_STYLE = Automatic; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 17; + CURRENT_PROJECT_VERSION = 18; DEBUG_INFORMATION_FORMAT = dwarf; DEVELOPMENT_TEAM = 435MC3786D; ENABLE_HARDENED_RUNTIME = YES; @@ -662,7 +682,7 @@ GCC_WARN_UNUSED_VARIABLE = YES; LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MACOSX_DEPLOYMENT_TARGET = 27.0; - MARKETING_VERSION = 0.11.2; + MARKETING_VERSION = 0.12.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -712,7 +732,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_STYLE = Automatic; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 17; + CURRENT_PROJECT_VERSION = 18; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = 435MC3786D; ENABLE_HARDENED_RUNTIME = YES; @@ -728,7 +748,7 @@ GCC_WARN_UNUSED_VARIABLE = YES; LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MACOSX_DEPLOYMENT_TARGET = 27.0; - MARKETING_VERSION = 0.11.2; + MARKETING_VERSION = 0.12.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/README.md b/README.md index fac753f..3cf7f63 100644 --- a/README.md +++ b/README.md @@ -4,28 +4,30 @@ A scrolling window manager for macOS. Windows are laid out as columns on an endl Keyboard-first: every action has a default shortcut out of the box, and every shortcut can be rebound. -Status: early development (milestone 1: one display). There's also [Glide for Windows](https://github.com/QuackByte/glide-windows); [quackbyte.dev/glide](https://quackbyte.dev/glide/#platforms) shows what each one does. +Status: early development. There's also [Glide for Windows](https://github.com/QuackByte/glide-windows); [quackbyte.dev/glide](https://quackbyte.dev/glide/#platforms) shows what each one does. ## How it works - Each standard window is a **column** on the strip. New windows open to the right of the focused column and take focus. -- Columns use preset widths (⅓, ½, ⅔, full) and fill the screen height, minus a gap (12 pt by default). A column can stack several windows vertically. +- Columns use preset widths (⅓, ½, ⅔, full; change them under **Settings › General › Column widths**, as percentages) and fill the screen height, minus a gap (12 pt by default). New columns open at the preset nearest ½. A column can stack several windows vertically. - **Resize with the mouse:** drag a tiled window's edge and its column keeps the new width; the strip reflows around it. ⌃⌥R / ⌃⌥⇧R then step to the next preset in that direction. **Drag a window** (rather than its edge) onto a tab bar and it becomes a tab there; onto another window and it stacks into that window's column; onto another display and it joins that display's strip. While you drag, an outline in the focus ring color shows the column it would join, or a bar where it would land on another display. Dropped anywhere else, it snaps back into its slot. A floating window dropped on a tile joins the tiles. - **Tiled layout:** ⌃⌥T switches the current workspace between the scrolling strip and a tiled layout, where every window fits on screen and nothing scrolls. Each workspace on each display keeps its own layout, even after a restart. **Settings › General › Layout** sets the layout of workspaces you haven't switched by hand, and applies at once. [Details below.](#tiled-layout) - Glide keeps the focused column fully on screen, scrolling the strip as little as possible. macOS doesn't let windows sit entirely off screen, so columns scrolled out of view are parked as 4 pt slivers at the left and right screen edges. - A column can also be **tabbed** (⌃⌥W): it shows one window at full height under a tab bar, and the others wait as tabs. ⌃⌥↑/↓ switch tabs, ⌃⌥⇧↑/↓ reorder them, clicking a tab selects it, and consume/expel (⌃⌥[ / ⌃⌥]) adds or removes tabs. Tabs can be windows of different apps. macOS won't let a window go fully off screen, so hidden tabs wait in the bottom-right corner with a point showing. - Dialogs, sheets, panels, popovers, full-screen windows and fixed-size windows float: Glide leaves them alone. You can float or tile any window by hand. - **Full screen stays full screen.** A tiled window that goes full screen (the green button, a video, a game) keeps its place in the strip but is left alone: no focus ring, dimming or tab bar over it, and the horizontal wheel and three-finger swipes on its display reach it instead of gliding the strip (⌃⌥ + wheel still glides). When it leaves full screen, it goes back to its column. +- **Scratchpad:** ⌃⌥⇧S turns the focused window (a terminal, notes, a chat) into the scratchpad and hides it. ⌃⌥S brings it out, floating in the middle of the focused display, and hides it again. Switching to it with ⌘-Tab or the Dock brings it out too. ⌃⌥⇧S on the scratchpad tiles it again. - **App rules** (Settings › App Rules): per app, always float, always tile, or let Glide decide, plus the width and workspace its new windows open with. A new window sent to another workspace by a rule takes you there. Float and tile apply at once to open windows; width and workspace apply to new ones. System Settings floats out of the box. ⌃⌥V on a single window still wins over its app's rule. - Closing, minimizing or hiding a window removes it from the strip. A minimized window, or one whose app was hidden, returns to the spot it left: same workspace, same width, and back into its stack or tabs if they're still there. - **Workspaces:** nine of them, each its own strip with its own scroll position. ⌃⌥1…9 switch workspaces and ⌃⌥⇧1…9 send the focused window to one: just that window, as a column of its own right of the workspace's focused column (keeping the column's width if it was alone in it, else the default width), while you stay where you are. ⌃⌥PgUp/PgDn (fn⌃⌥↑/↓ on a laptop) step to the previous or next workspace, and adding ⇧ sends the focused window there. The menu bar icon shows the active workspace's number, and the menu lists the occupied ones. Inactive workspaces' windows wait in the bottom-right corner like hidden tabs, since macOS Spaces can't be driven reliably from outside. Focusing a window on another workspace (⌘-Tab, the Dock, a notification) switches to it. New windows open on the active workspace. - **Displays:** every display is tiled, each with its own strip and its own nine workspaces. Shortcuts act on the focused display: the one with the focused window, else the one under the pointer. ⌃⌥⌘←/→ move focus to the display on that side, and ⌃⌥⌘⇧←/→ send the focused column there. New windows join the display they open on; drag a tiled window onto another display to move it there. A column scrolled toward a neighbouring display waits hidden instead of peeking onto it, and hidden windows wait in whichever bottom corner faces away from other displays. If a display goes away, its windows move to the main one, workspace by workspace. - **Workspace indicator:** the menu bar shows the numbers of the workspaces in use, with the active one filled in. Switching workspaces, or sending a window to one, also shows the numbers briefly near the bottom of the screen (turn it off under **Settings › Appearance**). - **Overview (⌃⌥O):** a zoomed-out view of every workspace in use, one row each, with columns, stacks and tabs drawn to scale. Arrow keys or the pointer select a window; Return or a click goes to it, switching workspace if needed; Esc or a click on the background closes it. Start typing to filter by app name and window title (every word must match, case and accents ignored); the arrows then step through the matches, ⌫ edits the filter and Esc clears it. With **Screen Recording** access the tiles show live window previews (ScreenCaptureKit renders parked and hidden windows in full); without it they show app icons. Allow it from the button in the overview. +- **Focus follows the mouse** (off by default, **Settings › General**): resting the pointer on a tiled window focuses it. Only windows fully on screen and in front count, so the strip never scrolls under the pointer, and floating windows, menus and the Dock keep it. - Layout changes slide into place in about 120 ms (ease-out). Turn this off under **Settings › Animate window movement**. - A **focus ring** outlines the focused window (your accent color, or any color you pick). Optionally, Glide **dims every other window**. Both are click-through overlay windows stacked just above and just below the focused window, since macOS doesn't let one app restyle another's windows. They hide while a floating window or Glide's own Settings has focus. The ring and tab bars disappear while windows slide and fade back in once they settle: each app redraws a moved window on its own schedule, so an overlay moved alongside would drift away from it. - Set the **gap** between windows (0–40 pt), the ring color, and the dimming amount under **Settings › Appearance**. Changes apply immediately. -- Glide remembers the layout (column order, stacks, widths, each workspace's scrolling or tiled layout with its tiled column count and splits, and windows you floated or tiled by hand) when you quit it or turn tiling off. Windows that are still open come back exactly as they were. The layout resets after a restart, because macOS window IDs only last until then. +- Glide remembers the layout (column order, stacks, widths, each workspace's scrolling or tiled layout with its tiled column count and splits, and windows you floated or tiled by hand) when you quit it or turn tiling off. Windows that are still open come back exactly as they were. After the Mac restarts, window IDs are new, so Glide finds windows again by their app and title as they open, for 10 minutes after it starts: each goes back to its workspace, width and stack, next to whichever of its old neighbours are back. - Turning tiling off (or quitting Glide) moves every window to a sensible spot on screen, so nothing stays parked at the edges. - **Crash recovery:** Glide runs a small watchdog (a second copy of itself started with `--watchdog`). If Glide exits without quitting cleanly, whether it crashed or was force quit, the watchdog brings every parked or hidden window back on screen. After a real crash (macOS wrote a crash report) it also relaunches Glide, at most once a minute, and Glide re-tiles from the saved layout. @@ -55,6 +57,7 @@ Raw finger positions come from Apple's private MultitouchSupport framework, the | Focus column left / right | ⌃⌥← / ⌃⌥→ | | Focus window up / down (within a column, or switch tabs) | ⌃⌥↑ / ⌃⌥↓ | | Focus first / last column | ⌃⌥Home / ⌃⌥End (fn⌃⌥← / fn⌃⌥→ on laptops) | +| Back to the previously focused window (again to come back) | ⌃⌥\` | | Move column left / right | ⌃⌥⇧← / ⌃⌥⇧→ | | Move window up / down (within a column, or reorder tabs) | ⌃⌥⇧↑ / ⌃⌥⇧↓ | | Consume or expel window left / right | ⌃⌥[ / ⌃⌥] | @@ -64,15 +67,19 @@ Raw finger positions come from Apple's private MultitouchSupport framework, the | Switch the workspace between scrolling and tiled | ⌃⌥T | | Switch the tiled workspace between 2 and 3 columns | ⌃⌥G | | Center focused column | ⌃⌥C | +| Even out the columns on screen so they share it equally; tiled: reset the splits | ⌃⌥E | | Switch to workspace 1…9 | ⌃⌥1 … ⌃⌥9 | | Send focused window to workspace 1…9 | ⌃⌥⇧1 … ⌃⌥⇧9 | | Previous / next workspace | ⌃⌥PgUp / ⌃⌥PgDn (fn⌃⌥↑ / fn⌃⌥↓ on laptops) | | Send window to previous / next workspace | ⌃⌥⇧PgUp / ⌃⌥⇧PgDn | +| Back to the last workspace (again to come back) | ⌃⌥⇥ | | Focus display left / right | ⌃⌥⌘← / ⌃⌥⌘→ | | Send column to display left / right | ⌃⌥⌘⇧← / ⌃⌥⌘⇧→ | | Overview | ⌃⌥O | | Show every shortcut | ⌃⌥/ | | Toggle floating for the focused window | ⌃⌥V | +| Show or hide the scratchpad | ⌃⌥S | +| Make the focused window the scratchpad (on the scratchpad: tile it again) | ⌃⌥⇧S | | Enable or disable tiling | ⌃⌥⇧T | **Consume or expel** works like niri: a window alone in its column joins the bottom of the neighbouring column on that side. A window in a stack leaves its column and gets a new column on that side. @@ -90,12 +97,28 @@ Raw finger positions come from Apple's private MultitouchSupport framework, the ## Changing shortcuts -**Settings › Shortcuts › Glide modifier** switches every default from ⌃⌥ to ⌥ alone, as AeroSpace and similar apps use (⌥→ focuses right, ⌥⇧→ moves, ⌥⌘→ goes to the next display, and the mouse wheel follows too). It's easier to press, but ⌥ + arrows then stop jumping by word in text fields, and ⌥ + letters and digits stop typing characters like é, ñ or ©. Shortcuts you changed by hand stay as they are, and win over a new default on the same keys. The choice is saved under the `glideModifier` key. +**Settings › Shortcuts › Glide modifier** switches every default from ⌃⌥ to ⌥ alone, as AeroSpace and similar apps use (⌥→ focuses right, ⌥⇧→ moves, ⌥⌘→ goes to the next display, and the mouse wheel follows too). It's easier to press, but ⌥ + arrows then stop jumping by word in text fields, and ⌥ + letters and digits stop typing characters like é, ñ or ©. Shortcuts you changed by hand stay as they are, and win over a new default on the same keys. The choice is saved under the `glideModifier` key. **Direction keys** next to it swaps the arrows of the focus and move shortcuts for H J K L, as in vim (display shortcuts keep the arrows); it's saved under `directionKeys`. Open **Settings…** from the menu bar icon, click a shortcut and press the new combo. Esc cancels; ⌫ removes the shortcut. Shortcuts must include ⌃, ⌥ or ⌘ (F-keys may stand alone). Glide warns when a combo would shadow a text-editing or macOS shortcut. Assigning a combo that another Glide action uses moves it. Shortcuts are saved in `UserDefaults` (`dev.quackbyte.glide`, key `shortcuts`, overrides only), and **Restore Defaults** clears them. +**Settings › General › Settings file** exports shortcuts, app rules, layout and appearance settings as a readable JSON file, and imports one (replacing the current settings, then restarting Glide), to move them to another Mac or keep them with your dotfiles. Window layouts and update preferences aren't included. + If a shortcut can't be registered, the menu bar icon turns into a warning triangle. The menu and the Settings row then name the shortcut and the reason. macOS has no public API to see every other app's shortcuts: Glide detects collisions with enabled macOS shortcuts, but not with an app that grabs keys through an event tap or registers the same combo after Glide starts. +## Command line and URLs + +Every action can also run from a terminal or a link, for scripts, Raycast, Alfred, Stream Deck or Shortcuts. **Settings › General › Command line tool** copies the command that links Glide's executable as `glide` in `/usr/local/bin`: + +```sh +glide focus-column-left +glide focus-workspace 3 # same as focus-workspace-3 +glide toggle-overview +glide list # every command and what it does +open -g glide://focus-workspace-3 +``` + +Command names are the actions in kebab case. Glide has to be running; the command hands the action to it and exits (64 for an unknown command, 69 if Glide isn't running). + ## Install and permissions Requires macOS 27 or later (Glide follows the current Xcode 27 project defaults). diff --git a/Sources/Glide/CommandLineTool.swift b/Sources/Glide/CommandLineTool.swift new file mode 100644 index 0000000..62d458a --- /dev/null +++ b/Sources/Glide/CommandLineTool.swift @@ -0,0 +1,89 @@ +import AppKit +import GlideCore + +/// `glide ` in a terminal, and `glide://` URLs: run any action in the Glide +/// that is running. The command line is Glide's own executable, linked as `glide` (or run with +/// `--cli`); it hands the command over with a distributed notification and exits. +enum CommandLineTool { + static let argument = "--cli" + static let urlScheme = "glide" + private static let notification = Notification.Name("dev.quackbyte.glide.command") + private static let actionKey = "action" + + /// The arguments for the command line, if this process was started as one. + static func arguments(from arguments: [String]) -> [String]? { + if arguments.count > 1, arguments[1] == argument { return Array(arguments.dropFirst(2)) } + if let first = arguments.first, URL(fileURLWithPath: first).lastPathComponent == "glide" { return Array(arguments.dropFirst()) } + return nil + } + + /// Where the executable lives, for linking it into the PATH. + static var executablePath: String { Bundle.main.executablePath ?? "/Applications/Glide.app/Contents/MacOS/Glide" } + + static var installCommand: String { "sudo ln -sf '\(executablePath)' /usr/local/bin/glide" } + + static func run(_ arguments: [String]) -> Never { + switch arguments.first { + case nil, "help", "-h", "--help": + print(usage) + exit(0) + case "list": + let width = Action.allCases.map(\.commandName.count).max() ?? 0 + for action in Action.allCases { + print(action.commandName.padding(toLength: width + 2, withPad: " ", startingAt: 0) + action.title) + } + exit(0) + default: + // "focus-workspace 3" reads as "focus-workspace-3". + let name = arguments.joined(separator: "-") + guard let action = Action(commandName: name) else { + FileHandle.standardError.write(Data("glide: unknown command “\(name)”. Run “glide list” to see them all.\n".utf8)) + exit(64) + } + let ownPID = ProcessInfo.processInfo.processIdentifier + let running = NSRunningApplication.runningApplications(withBundleIdentifier: "dev.quackbyte.glide") + .contains { $0.processIdentifier != ownPID } + guard running else { + FileHandle.standardError.write(Data("glide: Glide isn't running. Open it first.\n".utf8)) + exit(69) + } + send(action) + exit(0) + } + } + + private static let usage = """ + Usage: glide + + Runs a Glide action in the Glide that is running, like its shortcut does. + + glide focus-column-left + glide focus-workspace 3 + glide toggle-overview + + glide list shows every command + glide help shows this + + URLs work too, e.g. glide://focus-workspace-3, for launchers and Shortcuts. + """ + + private static func send(_ action: Action) { + DistributedNotificationCenter.default().postNotificationName( + notification, object: nil, userInfo: [actionKey: action.rawValue], deliverImmediately: true) + } + + /// In the running app: runs commands from the command line. + static func listen(_ perform: @escaping (Action) -> Void) -> NSObjectProtocol { + DistributedNotificationCenter.default().addObserver(forName: notification, object: nil, queue: .main) { note in + guard let raw = note.userInfo?[actionKey] as? String, let action = Action(rawValue: raw) else { return } + MainActor.assumeIsolated { perform(action) } + } + } + + /// The action in a `glide://focus-column-left` URL. + static func action(from url: URL) -> Action? { + guard url.scheme?.lowercased() == urlScheme else { return nil } + let name = ([url.host ?? ""] + url.pathComponents.filter { $0 != "/" }).filter { !$0.isEmpty }.joined(separator: "-") + return Action(commandName: name) + } +} diff --git a/Sources/Glide/FocusDecorations.swift b/Sources/Glide/FocusDecorations.swift index 5c63041..d031bb3 100644 --- a/Sources/Glide/FocusDecorations.swift +++ b/Sources/Glide/FocusDecorations.swift @@ -53,6 +53,29 @@ enum Appearance { } } + /// The widths columns cycle through, as fractions of the screen. + static var widthPresets: [CGFloat] { + get { + guard let values = defaults.array(forKey: "widthPresets") as? [Double], (1...8).contains(values.count), + values.allSatisfy({ (0.1...1).contains($0) }) else { return LayoutSettings.standard.widthPresets } + return values.sorted().map { CGFloat($0) } + } + set { + if newValue == LayoutSettings.standard.widthPresets { + defaults.removeObject(forKey: "widthPresets") + } else { + defaults.set(newValue.map(Double.init), forKey: "widthPresets") + } + } + } + + /// The settings every workspace lays out with. + static var layoutSettings: LayoutSettings { + let presets = widthPresets + return LayoutSettings(gap: gap, widthPresets: presets, defaultWidthIndex: LayoutSettings.defaultWidthIndex(for: presets), + defaultLayout: defaultLayout, defaultTiledColumns: tiledColumns) + } + /// A brief display of the workspace numbers when switching. static var showsWorkspaceHUD: Bool { get { defaults.object(forKey: "workspaceHUD") as? Bool ?? true } diff --git a/Sources/Glide/GlideApp.swift b/Sources/Glide/GlideApp.swift index 16c59a3..612100d 100644 --- a/Sources/Glide/GlideApp.swift +++ b/Sources/Glide/GlideApp.swift @@ -10,6 +10,9 @@ enum GlideMain { if let index = arguments.firstIndex(of: CrashWatchdog.argument), index + 1 < arguments.count, let parent = pid_t(arguments[index + 1]) { CrashWatchdog.run(parent: parent) } + if let command = CommandLineTool.arguments(from: arguments) { + CommandLineTool.run(command) + } GlideApp.main() } } @@ -32,6 +35,16 @@ final class GlideAppDelegate: NSObject, NSApplicationDelegate { controller.launch() } + func application(_ application: NSApplication, open urls: [URL]) { + for url in urls { + if let action = CommandLineTool.action(from: url) { + controller.perform(action) + } else { + NSLog("Glide: unknown command URL \(url.absoluteString)") + } + } + } + func applicationWillTerminate(_ notification: Notification) { // Never leave windows parked off screen. controller.windowManager.stop() @@ -56,6 +69,7 @@ final class AppController { @ObservationIgnored private var statusMenu: StatusMenu? @ObservationIgnored private var watchdog: Process? + @ObservationIgnored private var commandListener: NSObjectProtocol? @ObservationIgnored private lazy var overview = OverviewController(manager: windowManager) @ObservationIgnored private let workspaceHUD = WorkspaceHUD() @ObservationIgnored private let shortcutSheet = ShortcutSheetController() @@ -77,6 +91,7 @@ final class AppController { updates.start() statusMenu = StatusMenu(controller: self) hotkeys.onAction = { [weak self] action in self?.perform(action) } + commandListener = CommandLineTool.listen { [weak self] action in self?.perform(action) } shortcuts.onChange = { [weak self] in self?.registerHotkeys() } windowManager.onChange = { [weak self] in self?.stateChanged() } windowManager.rules = appRules.rules diff --git a/Sources/Glide/Info.plist b/Sources/Glide/Info.plist index 40d4ae5..c1d3b64 100644 --- a/Sources/Glide/Info.plist +++ b/Sources/Glide/Info.plist @@ -8,5 +8,16 @@ 1HMn0Zspr9ZPEGHwpMglUGgo8W01dAzOLZoIPxDlGgc= SUEnableAutomaticChecks + CFBundleURLTypes + + + CFBundleURLName + dev.quackbyte.glide.command + CFBundleURLSchemes + + glide + + + diff --git a/Sources/Glide/Localizable.xcstrings b/Sources/Glide/Localizable.xcstrings index d670f5c..b78d8ae 100644 --- a/Sources/Glide/Localizable.xcstrings +++ b/Sources/Glide/Localizable.xcstrings @@ -142,6 +142,53 @@ } } }, + "%@ width" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "%@ Breite" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "%@ de ancho" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Largeur %@" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "幅 %@" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "너비 %@" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "%@ de largura" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "%@ 宽" + } + } + } + }, "%@, %@" : { "extractionState" : "manual", "localizations" : { @@ -1682,6 +1729,53 @@ } } }, + "Arrows" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Pfeiltasten" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Flechas" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Flèches" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "矢印キー" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "화살표" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Setas" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "箭头键" + } + } + } + }, "Automatic" : { "extractionState" : "manual", "localizations" : { @@ -1729,6 +1823,53 @@ } } }, + "Cancel" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Abbrechen" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Cancelar" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Annuler" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "キャンセル" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "취소" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Cancelar" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "取消" + } + } + } + }, "Check Now" : { "extractionState" : "manual", "localizations" : { @@ -1964,507 +2105,695 @@ } } }, - "Continue" : { + "Column widths" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Weiter" + "value" : "Spaltenbreiten" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Continuar" + "value" : "Anchos de columna" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Continuer" + "value" : "Largeurs de colonne" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "続ける" + "value" : "列の幅" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "계속" + "value" : "열 너비" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Continuar" + "value" : "Larguras de coluna" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "继续" + "value" : "列宽" } } } }, - "Couldn't register (error %lld)" : { + "Command line tool" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Registrierung nicht möglich (Fehler %lld)" + "value" : "Befehlszeilenprogramm" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "No se ha podido registrar (error %lld)" + "value" : "Herramienta de línea de comandos" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Enregistrement impossible (erreur %lld)" + "value" : "Outil en ligne de commande" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "登録できませんでした(エラー%lld)" + "value" : "コマンドラインツール" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "등록할 수 없음(오류 %lld)" + "value" : "명령줄 도구" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Não foi possível registrar (erro %lld)" + "value" : "Ferramenta de linha de comando" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "无法注册(错误 %lld)" + "value" : "命令行工具" } } } }, - "Couldn’t Create the Report" : { + "Continue" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Bericht konnte nicht erstellt werden" + "value" : "Weiter" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "No se ha podido crear el informe" + "value" : "Continuar" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Impossible de créer le rapport" + "value" : "Continuer" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "レポートを作成できませんでした" + "value" : "続ける" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "보고서를 생성할 수 없음" + "value" : "계속" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Não foi possível criar o relatório" + "value" : "Continuar" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "无法创建报告" + "value" : "继续" } } } }, - "Default width" : { + "Copy Install Command" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Standardbreite" + "value" : "Installationsbefehl kopieren" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Ancho predeterminado" + "value" : "Copiar comando de instalación" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Largeur par défaut" + "value" : "Copier la commande d’installation" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "初期設定の幅" + "value" : "インストールコマンドをコピー" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "기본 너비" + "value" : "설치 명령 복사" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Largura padrão" + "value" : "Copiar comando de instalação" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "默认宽度" + "value" : "拷贝安装命令" } } } }, - "Dim unfocused windows" : { + "Couldn't register (error %lld)" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Inaktive Fenster abdunkeln" + "value" : "Registrierung nicht möglich (Fehler %lld)" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Atenuar las ventanas sin foco" + "value" : "No se ha podido registrar (error %lld)" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Atténuer les fenêtres inactives" + "value" : "Enregistrement impossible (erreur %lld)" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "フォーカスのないウインドウを暗くする" + "value" : "登録できませんでした(エラー%lld)" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "포커스가 없는 윈도우 흐리게" + "value" : "등록할 수 없음(오류 %lld)" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Escurecer as janelas sem foco" + "value" : "Não foi possível registrar (erro %lld)" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "调暗未聚焦的窗口" + "value" : "无法注册(错误 %lld)" } } } }, - "Dimming" : { + "Couldn’t Create the Report" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Abdunkeln" + "value" : "Bericht konnte nicht erstellt werden" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Atenuación" + "value" : "No se ha podido crear el informe" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Atténuation" + "value" : "Impossible de créer le rapport" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "暗くする" + "value" : "レポートを作成できませんでした" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "흐리게 표시" + "value" : "보고서를 생성할 수 없음" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Escurecimento" + "value" : "Não foi possível criar o relatório" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "调暗" + "value" : "无法创建报告" } } } }, - "Download and install updates automatically" : { + "Default width" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Updates automatisch laden und installieren" + "value" : "Standardbreite" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Descargar e instalar las actualizaciones automáticamente" + "value" : "Ancho predeterminado" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Télécharger et installer les mises à jour automatiquement" + "value" : "Largeur par défaut" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "アップデートを自動的にダウンロードしてインストール" + "value" : "初期設定の幅" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "업데이트 자동 다운로드 및 설치" + "value" : "기본 너비" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Baixar e instalar atualizações automaticamente" + "value" : "Largura padrão" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "自动下载并安装更新" + "value" : "默认宽度" } } } }, - "Empty" : { + "Dim unfocused windows" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Leer" + "value" : "Inaktive Fenster abdunkeln" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Vacío" + "value" : "Atenuar las ventanas sin foco" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Vide" + "value" : "Atténuer les fenêtres inactives" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "空" + "value" : "フォーカスのないウインドウを暗くする" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "비어 있음" + "value" : "포커스가 없는 윈도우 흐리게" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Vazio" + "value" : "Escurecer as janelas sem foco" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "空" + "value" : "调暗未聚焦的窗口" } } } }, - "Enable Tiling" : { + "Dimming" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Kacheln aktivieren" + "value" : "Abdunkeln" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Activar mosaico" + "value" : "Atenuación" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Activer la mosaïque" + "value" : "Atténuation" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "タイル表示を有効にする" + "value" : "暗くする" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "타일링 켜기" + "value" : "흐리게 표시" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Ativar mosaico" + "value" : "Escurecimento" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "启用平铺" + "value" : "调暗" } } } }, - "Every default shortcut uses ⌃⌥, and ⇧ to move windows. Shortcuts you changed stay as they are." : { + "Direction keys" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Alle Standard-Tastenkürzel verwenden ⌃⌥, mit ⇧ zum Bewegen von Fenstern. Tastenkürzel, die du geändert hast, bleiben unverändert." + "value" : "Richtungstasten" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Todos los atajos predeterminados usan ⌃⌥, y ⇧ para mover ventanas. Los atajos que hayas cambiado se quedan como están." + "value" : "Teclas de dirección" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Tous les raccourcis par défaut utilisent ⌃⌥, et ⇧ pour déplacer les fenêtres. Les raccourcis que vous avez modifiés restent tels quels." + "value" : "Touches de direction" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "すべての標準ショートカットで⌃⌥を使い、ウインドウの移動には⇧を加えます。変更したショートカットはそのまま残ります。" + "value" : "方向キー" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "모든 기본 단축키는 ⌃⌥를 사용하며, 윈도우를 이동할 때는 ⇧를 함께 누릅니다. 변경한 단축키는 그대로 유지됩니다." + "value" : "방향 키" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Todos os atalhos padrão usam ⌃⌥, e ⇧ para mover janelas. Os atalhos que você mudou continuam como estão." + "value" : "Teclas de direção" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "所有默认快捷键都使用 ⌃⌥,加 ⇧ 可移动窗口。你更改过的快捷键保持不变。" + "value" : "方向键" } } } }, - "Every default shortcut uses ⌥, and ⇧ to move windows. ⌥ + arrows no longer jump by word in text, and ⌥ + letters and digits no longer type special characters like é or ©. Shortcuts you changed stay as they are." : { + "Download and install updates automatically" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Alle Standard-Tastenkürzel verwenden ⌥, mit ⇧ zum Bewegen von Fenstern. ⌥ + Pfeiltasten springen in Text nicht mehr wortweise, und ⌥ + Buchstaben und Ziffern tippen keine Sonderzeichen wie é oder © mehr. Tastenkürzel, die du geändert hast, bleiben unverändert." + "value" : "Updates automatisch laden und installieren" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Todos los atajos predeterminados usan ⌥, y ⇧ para mover ventanas. ⌥ + flechas ya no saltan de palabra en palabra en el texto, y ⌥ + letras y números ya no escriben caracteres especiales como é o ©. Los atajos que hayas cambiado se quedan como están." + "value" : "Descargar e instalar las actualizaciones automáticamente" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Tous les raccourcis par défaut utilisent ⌥, et ⇧ pour déplacer les fenêtres. ⌥ + flèches ne sautent plus de mot en mot dans le texte, et ⌥ + lettres et chiffres ne tapent plus de caractères spéciaux comme é ou ©. Les raccourcis que vous avez modifiés restent tels quels." + "value" : "Télécharger et installer les mises à jour automatiquement" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "すべての標準ショートカットで⌥を使い、ウインドウの移動には⇧を加えます。テキスト内で⌥+矢印キーによる単語単位の移動ができなくなり、⌥+文字や数字でéや©などの特殊文字を入力できなくなります。変更したショートカットはそのまま残ります。" + "value" : "アップデートを自動的にダウンロードしてインストール" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "모든 기본 단축키는 ⌥를 사용하며, 윈도우를 이동할 때는 ⇧를 함께 누릅니다. 텍스트에서 ⌥ + 화살표로 단어 단위 이동을 할 수 없게 되고, ⌥ + 문자나 숫자로 é나 © 같은 특수 문자를 입력할 수 없게 됩니다. 변경한 단축키는 그대로 유지됩니다." + "value" : "업데이트 자동 다운로드 및 설치" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Baixar e instalar atualizações automaticamente" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "自动下载并安装更新" + } + } + } + }, + "Empty" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Leer" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Vacío" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Vide" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "空" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "비어 있음" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Vazio" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "空" + } + } + } + }, + "Enable Tiling" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Kacheln aktivieren" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Activar mosaico" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Activer la mosaïque" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "タイル表示を有効にする" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "타일링 켜기" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Ativar mosaico" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "启用平铺" + } + } + } + }, + "Every default shortcut uses ⌃⌥, and ⇧ to move windows. Shortcuts you changed stay as they are." : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Alle Standard-Tastenkürzel verwenden ⌃⌥, mit ⇧ zum Bewegen von Fenstern. Tastenkürzel, die du geändert hast, bleiben unverändert." + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Todos los atajos predeterminados usan ⌃⌥, y ⇧ para mover ventanas. Los atajos que hayas cambiado se quedan como están." + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Tous les raccourcis par défaut utilisent ⌃⌥, et ⇧ pour déplacer les fenêtres. Les raccourcis que vous avez modifiés restent tels quels." + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "すべての標準ショートカットで⌃⌥を使い、ウインドウの移動には⇧を加えます。変更したショートカットはそのまま残ります。" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "모든 기본 단축키는 ⌃⌥를 사용하며, 윈도우를 이동할 때는 ⇧를 함께 누릅니다. 변경한 단축키는 그대로 유지됩니다." + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Todos os atalhos padrão usam ⌃⌥, e ⇧ para mover janelas. Os atalhos que você mudou continuam como estão." + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "所有默认快捷键都使用 ⌃⌥,加 ⇧ 可移动窗口。你更改过的快捷键保持不变。" + } + } + } + }, + "Every default shortcut uses ⌥, and ⇧ to move windows. ⌥ + arrows no longer jump by word in text, and ⌥ + letters and digits no longer type special characters like é or ©. Shortcuts you changed stay as they are." : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Alle Standard-Tastenkürzel verwenden ⌥, mit ⇧ zum Bewegen von Fenstern. ⌥ + Pfeiltasten springen in Text nicht mehr wortweise, und ⌥ + Buchstaben und Ziffern tippen keine Sonderzeichen wie é oder © mehr. Tastenkürzel, die du geändert hast, bleiben unverändert." + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Todos los atajos predeterminados usan ⌥, y ⇧ para mover ventanas. ⌥ + flechas ya no saltan de palabra en palabra en el texto, y ⌥ + letras y números ya no escriben caracteres especiales como é o ©. Los atajos que hayas cambiado se quedan como están." + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Tous les raccourcis par défaut utilisent ⌥, et ⇧ pour déplacer les fenêtres. ⌥ + flèches ne sautent plus de mot en mot dans le texte, et ⌥ + lettres et chiffres ne tapent plus de caractères spéciaux comme é ou ©. Les raccourcis que vous avez modifiés restent tels quels." + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "すべての標準ショートカットで⌥を使い、ウインドウの移動には⇧を加えます。テキスト内で⌥+矢印キーによる単語単位の移動ができなくなり、⌥+文字や数字でéや©などの特殊文字を入力できなくなります。変更したショートカットはそのまま残ります。" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "모든 기본 단축키는 ⌥를 사용하며, 윈도우를 이동할 때는 ⇧를 함께 누릅니다. 텍스트에서 ⌥ + 화살표로 단어 단위 이동을 할 수 없게 되고, ⌥ + 문자나 숫자로 é나 © 같은 특수 문자를 입력할 수 없게 됩니다. 변경한 단축키는 그대로 유지됩니다." } }, "pt-BR" : { @@ -2481,6 +2810,53 @@ } } }, + "Export…" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Exportieren …" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Exportar…" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Exporter…" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "書き出す…" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "내보내기…" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Exportar…" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "导出…" + } + } + } + }, "Filter" : { "extractionState" : "manual", "localizations" : { @@ -2528,2493 +2904,3198 @@ } } }, - "Focus ring" : { + "Focus follows the mouse" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Fokusrahmen" + "value" : "Fokus folgt der Maus" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Borde de foco" + "value" : "El foco sigue al ratón" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Contour de focus" + "value" : "Le focus suit la souris" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "マウスの位置にフォーカス" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "마우스를 따라 포커스" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "O foco segue o mouse" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "焦点跟随鼠标" + } + } + } + }, + "Focus ring" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Fokusrahmen" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Borde de foco" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Contour de focus" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "フォーカスリング" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "포커스 링" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Contorno de foco" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "焦点环" + } + } + } + }, + "Forget" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Vergessen" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Olvidar" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Oublier" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "消去" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "삭제" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Esquecer" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "忘记" + } + } + } + }, + "Full width" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Volle Breite" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Ancho completo" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Pleine largeur" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "全幅" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "전체 너비" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Largura total" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "全宽" + } + } + } + }, + "Gap between windows" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Abstand zwischen Fenstern" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Separación entre ventanas" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Espace entre les fenêtres" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "ウインドウの間隔" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "윈도우 사이 간격" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Espaço entre as janelas" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "窗口间距" + } + } + } + }, + "General" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Allgemein" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "General" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Général" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "一般" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "일반" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Geral" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "通用" + } + } + } + }, + "Glide %@" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide %@" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide %@" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide %@" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide %@" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide %@" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide %@" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide %@" + } + } + } + }, + "Glide modifier" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide-Modifikatortaste" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Tecla modificadora de Glide" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Touche de modification de Glide" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glideの修飾キー" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide 보조 키" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Tecla modificadora do Glide" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide 修饰键" + } + } + } + }, + "Glide Settings" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide-Einstellungen" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Ajustes de Glide" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Réglages de Glide" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide設定" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide 설정" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Ajustes do Glide" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide 设置" + } + } + } + }, + "Glide Shortcuts" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide-Tastenkürzel" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Atajos de Glide" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Raccourcis de Glide" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glideのショートカット" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide 단축키" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Atalhos do Glide" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide 快捷键" + } + } + } + }, + "Glide arranges your windows as columns on a strip you scroll with the keyboard. macOS only lets an app move and resize other apps' windows with Accessibility access." : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide ordnet deine Fenster als Spalten auf einem Band an, das du mit der Tastatur durchscrollst. macOS erlaubt einer App nur mit Zugriff auf die Bedienungshilfen, die Fenster anderer Apps zu bewegen und deren Größe zu ändern." + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide coloca tus ventanas en columnas sobre una tira que recorres con el teclado. macOS solo deja que una app mueva y cambie el tamaño de las ventanas de otras apps si tiene acceso de accesibilidad." + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide dispose vos fenêtres en colonnes sur une bande que vous faites défiler au clavier. macOS ne permet à une app de déplacer et de redimensionner les fenêtres d’autres apps que si elle dispose de l’accès à l’accessibilité." + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glideは、ウインドウを列としてストリップ上に並べ、キーボードでスクロールできるようにします。macOSでは、アクセシビリティのアクセスを許可された App だけがほかの App のウインドウを移動したりサイズ変更したりできます。" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide는 윈도우를 키보드로 스크롤하는 스트립 위에 열로 배치합니다. macOS에서는 손쉬운 사용 접근 권한이 있어야 앱이 다른 앱의 윈도우를 이동하거나 크기를 조절할 수 있습니다." + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "O Glide organiza suas janelas em colunas numa faixa pela qual você rola com o teclado. O macOS só permite que um app mova e redimensione as janelas de outros apps com acesso de Acessibilidade." + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide 会把窗口排成一条可用键盘滚动的条带上的多个列。macOS 仅允许拥有辅助功能权限的 App 移动其他 App 的窗口并调整其大小。" + } + } + } + }, + "Glide needs Accessibility access" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide benötigt Zugriff auf die Bedienungshilfen" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide necesita acceso de accesibilidad" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide a besoin de l’accès à l’accessibilité" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glideにはアクセシビリティのアクセスが必要です" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide에 손쉬운 사용 접근 권한이 필요합니다" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "O Glide precisa de acesso de Acessibilidade" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide 需要辅助功能权限" + } + } + } + }, + "Glide uses this access only to read window positions, move and resize windows, and focus them. It sends nothing over the network." : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide nutzt diesen Zugriff nur, um Fensterpositionen zu lesen, Fenster zu bewegen, ihre Größe zu ändern und sie zu fokussieren. Es wird nichts über das Netzwerk gesendet." + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide usa este acceso solo para leer la posición de las ventanas, moverlas, cambiarles el tamaño y darles el foco. No envía nada por la red." + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide utilise cet accès uniquement pour lire la position des fenêtres, les déplacer, les redimensionner et leur donner le focus. Il n’envoie rien sur le réseau." + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glideは、このアクセスをウインドウの位置の取得、移動、サイズ変更、フォーカスにのみ使用します。ネットワークには何も送信しません。" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide는 이 권한을 윈도우 위치를 읽고, 윈도우를 이동하고 크기를 조절하며, 포커스를 맞추는 데에만 사용합니다. 네트워크로는 아무것도 전송하지 않습니다." + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "O Glide usa esse acesso apenas para ler a posição das janelas, movê-las, redimensioná-las e dar foco a elas. Ele não envia nada pela rede." + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide 仅使用此权限读取窗口位置、移动窗口并调整其大小,以及让窗口获得焦点。它不会通过网络发送任何内容。" + } + } + } + }, + "Glide, workspace %lld" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide, Arbeitsbereich %lld" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide, escritorio %lld" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide, bureau %lld" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide、ワークスペース%lld" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide, 워크스페이스 %lld" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide, espaço de trabalho %lld" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide,工作区 %lld" + } + } + } + }, + "Glide: paused" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide: pausiert" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide: en pausa" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide : en pause" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide:一時停止中" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide: 일시 중지됨" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide: pausado" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide:已暂停" + } + } + } + }, + "Glide: workspace %lld" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide: Arbeitsbereich %lld" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide: escritorio %lld" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Glide : bureau %lld" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "フォーカスリング" + "value" : "Glide:ワークスペース%lld" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "포커스 링" + "value" : "Glide: 워크스페이스 %lld" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Contorno de foco" + "value" : "Glide: espaço de trabalho %lld" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "焦点环" + "value" : "Glide:工作区 %lld" } } } }, - "Forget" : { + "Go" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Vergessen" + "value" : "Öffnen" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Olvidar" + "value" : "Ir" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Oublier" + "value" : "Aller" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "消去" + "value" : "移動" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "삭제" + "value" : "이동" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Esquecer" + "value" : "Ir" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "忘记" + "value" : "前往" } } } }, - "Full width" : { + "Grant Accessibility Access…" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Volle Breite" + "value" : "Zugriff auf Bedienungshilfen erlauben …" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Ancho completo" + "value" : "Conceder acceso de accesibilidad…" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Pleine largeur" + "value" : "Accorder l’accès à l’accessibilité…" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "全幅" + "value" : "アクセシビリティのアクセスを許可…" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "전체 너비" + "value" : "손쉬운 사용 접근 권한 허용…" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Largura total" + "value" : "Conceder acesso de Acessibilidade…" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "全宽" + "value" : "授予辅助功能权限…" } } } }, - "Gap between windows" : { + "H, J, K and L go left, down, up and right, as in vim. Display shortcuts keep the arrows." : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Abstand zwischen Fenstern" + "value" : "H, J, K und L gehen nach links, unten, oben und rechts, wie in vim. Die Tastenkürzel für Bildschirme behalten die Pfeiltasten." } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Separación entre ventanas" + "value" : "H, J, K y L van a la izquierda, abajo, arriba y derecha, como en vim. Los atajos de pantallas siguen usando las flechas." } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Espace entre les fenêtres" + "value" : "H, J, K et L vont à gauche, en bas, en haut et à droite, comme dans vim. Les raccourcis des écrans gardent les flèches." } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "ウインドウの間隔" + "value" : "vimと同じく、H、J、K、Lで左、下、上、右に移動します。ディスプレイのショートカットは矢印キーのままです。" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "윈도우 사이 간격" + "value" : "vim처럼 H, J, K, L은 왼쪽, 아래, 위, 오른쪽으로 이동합니다. 디스플레이 단축키는 그대로 화살표를 사용합니다." } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Espaço entre as janelas" + "value" : "H, J, K e L vão para a esquerda, para baixo, para cima e para a direita, como no vim. Os atalhos de telas continuam usando as setas." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "窗口间距" + "value" : "与 vim 一样,H、J、K、L 分别向左、下、上、右移动。显示器快捷键仍使用箭头键。" } } } }, - "General" : { + "Horizontal mouse wheel" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Allgemein" + "value" : "Horizontales Mausrad" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "General" + "value" : "Rueda horizontal del ratón" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Général" + "value" : "Molette horizontale de la souris" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "一般" + "value" : "マウスの横スクロールホイール" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "일반" + "value" : "가로 마우스 휠" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Geral" + "value" : "Roda horizontal do mouse" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "通用" + "value" : "鼠标水平滚轮" } } } }, - "Glide %@" : { + "How many columns a tiled workspace uses before splitting the last one. Automatic uses 3 on ultrawide displays. %@ switches the current workspace." : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Glide %@" + "value" : "Wie viele Spalten ein gekachelter Arbeitsbereich nutzt, bevor die letzte geteilt wird. Automatisch nutzt auf Ultrawide-Bildschirmen 3. Mit %@ wechselst du den aktuellen Arbeitsbereich." } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Glide %@" + "value" : "Cuántas columnas usa un escritorio en mosaico antes de dividir la última. Automático usa 3 en pantallas ultrapanorámicas. %@ cambia el escritorio actual." } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Glide %@" + "value" : "Nombre de colonnes d’un bureau en mosaïque avant de diviser la dernière. Automatique en utilise 3 sur les écrans ultralarges. %@ change celui du bureau actuel." } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "Glide %@" + "value" : "タイル表示のワークスペースが、最後の列を分割する前に使う列の数です。自動の場合、ウルトラワイドディスプレイでは3列になります。%@ で現在のワークスペースを切り替えます。" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "Glide %@" + "value" : "타일 워크스페이스가 마지막 열을 나누기 전에 사용하는 열의 수입니다. 자동은 울트라와이드 디스플레이에서 3열을 사용합니다. %@(으)로 현재 워크스페이스를 전환합니다." } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Glide %@" + "value" : "Quantas colunas um espaço de trabalho em mosaico usa antes de dividir a última. Automático usa 3 em telas ultrawide. %@ alterna o espaço de trabalho atual." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "Glide %@" + "value" : "平铺工作区在拆分最后一列之前使用的列数。“自动”在超宽显示器上使用 3 列。%@ 可切换当前工作区。" } } } }, - "Glide modifier" : { + "Import and Restart" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Glide-Modifikatortaste" + "value" : "Importieren und neu starten" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Tecla modificadora de Glide" + "value" : "Importar y reiniciar" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Touche de modification de Glide" + "value" : "Importer et redémarrer" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "Glideの修飾キー" + "value" : "読み込んで再起動" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "Glide 보조 키" + "value" : "가져오고 다시 시작" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Tecla modificadora do Glide" + "value" : "Importar e reiniciar" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "Glide 修饰键" + "value" : "导入并重新启动" } } } }, - "Glide Settings" : { + "Import…" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Glide-Einstellungen" + "value" : "Importieren …" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Ajustes de Glide" + "value" : "Importar…" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Réglages de Glide" + "value" : "Importer…" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "Glide設定" + "value" : "読み込む…" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "Glide 설정" + "value" : "가져오기…" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Ajustes do Glide" + "value" : "Importar…" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "Glide 设置" + "value" : "导入…" } } } }, - "Glide Shortcuts" : { + "Layout" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Glide-Tastenkürzel" + "value" : "Anordnung" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Atajos de Glide" + "value" : "Disposición" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Raccourcis de Glide" + "value" : "Disposition" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "Glideのショートカット" + "value" : "レイアウト" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "Glide 단축키" + "value" : "레이아웃" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Atalhos do Glide" + "value" : "Layout" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "Glide 快捷键" + "value" : "布局" } } } }, - "Glide arranges your windows as columns on a strip you scroll with the keyboard. macOS only lets an app move and resize other apps' windows with Accessibility access." : { + "Login Items…" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Glide ordnet deine Fenster als Spalten auf einem Band an, das du mit der Tastatur durchscrollst. macOS erlaubt einer App nur mit Zugriff auf die Bedienungshilfen, die Fenster anderer Apps zu bewegen und deren Größe zu ändern." + "value" : "Anmeldeobjekte …" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Glide coloca tus ventanas en columnas sobre una tira que recorres con el teclado. macOS solo deja que una app mueva y cambie el tamaño de las ventanas de otras apps si tiene acceso de accesibilidad." + "value" : "Ítems de inicio…" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Glide dispose vos fenêtres en colonnes sur une bande que vous faites défiler au clavier. macOS ne permet à une app de déplacer et de redimensionner les fenêtres d’autres apps que si elle dispose de l’accès à l’accessibilité." + "value" : "Éléments de connexion…" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "Glideは、ウインドウを列としてストリップ上に並べ、キーボードでスクロールできるようにします。macOSでは、アクセシビリティのアクセスを許可された App だけがほかの App のウインドウを移動したりサイズ変更したりできます。" + "value" : "ログイン項目…" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "Glide는 윈도우를 키보드로 스크롤하는 스트립 위에 열로 배치합니다. macOS에서는 손쉬운 사용 접근 권한이 있어야 앱이 다른 앱의 윈도우를 이동하거나 크기를 조절할 수 있습니다." + "value" : "로그인 항목…" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "O Glide organiza suas janelas em colunas numa faixa pela qual você rola com o teclado. O macOS só permite que um app mova e redimensione as janelas de outros apps com acesso de Acessibilidade." + "value" : "Itens de Login…" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "Glide 会把窗口排成一条可用键盘滚动的条带上的多个列。macOS 仅允许拥有辅助功能权限的 App 移动其他 App 的窗口并调整其大小。" + "value" : "登录项…" } } } }, - "Glide needs Accessibility access" : { + "No match" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Glide benötigt Zugriff auf die Bedienungshilfen" + "value" : "Kein Treffer" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Glide necesita acceso de accesibilidad" + "value" : "Sin resultados" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Glide a besoin de l’accès à l’accessibilité" + "value" : "Aucun résultat" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "Glideにはアクセシビリティのアクセスが必要です" + "value" : "一致なし" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "Glide에 손쉬운 사용 접근 권한이 필요합니다" + "value" : "검색 결과 없음" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "O Glide precisa de acesso de Acessibilidade" + "value" : "Nenhum resultado" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "Glide 需要辅助功能权限" + "value" : "无结果" } } } }, - "Glide uses this access only to read window positions, move and resize windows, and focus them. It sends nothing over the network." : { + "No scratchpad" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Glide nutzt diesen Zugriff nur, um Fensterpositionen zu lesen, Fenster zu bewegen, ihre Größe zu ändern und sie zu fokussieren. Es wird nichts über das Netzwerk gesendet." + "value" : "Kein Notizfenster" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Glide usa este acceso solo para leer la posición de las ventanas, moverlas, cambiarles el tamaño y darles el foco. No envía nada por la red." + "value" : "Sin ventana rápida" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Glide utilise cet accès uniquement pour lire la position des fenêtres, les déplacer, les redimensionner et leur donner le focus. Il n’envoie rien sur le réseau." + "value" : "Plus de fenêtre d’appoint" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "Glideは、このアクセスをウインドウの位置の取得、移動、サイズ変更、フォーカスにのみ使用します。ネットワークには何も送信しません。" + "value" : "スクラッチパッドなし" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "Glide는 이 권한을 윈도우 위치를 읽고, 윈도우를 이동하고 크기를 조절하며, 포커스를 맞추는 데에만 사용합니다. 네트워크로는 아무것도 전송하지 않습니다." + "value" : "스크래치패드 없음" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "O Glide usa esse acesso apenas para ler a posição das janelas, movê-las, redimensioná-las e dar foco a elas. Ele não envia nada pela rede." + "value" : "Sem janela rápida" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "Glide 仅使用此权限读取窗口位置、移动窗口并调整其大小,以及让窗口获得焦点。它不会通过网络发送任何内容。" + "value" : "没有草稿窗口" } } } }, - "Glide, workspace %lld" : { + "No shortcut" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Glide, Arbeitsbereich %lld" + "value" : "Kein Tastenkürzel" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Glide, escritorio %lld" + "value" : "Sin atajo" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Glide, bureau %lld" + "value" : "Aucun raccourci" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "Glide、ワークスペース%lld" + "value" : "ショートカットなし" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "Glide, 워크스페이스 %lld" + "value" : "단축키 없음" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Glide, espaço de trabalho %lld" + "value" : "Sem atalho" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "Glide,工作区 %lld" + "value" : "无快捷键" } } } }, - "Glide: paused" : { + "None" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Glide: pausiert" + "value" : "Keine" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Glide: en pausa" + "value" : "Ninguno" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Glide : en pause" + "value" : "Aucun" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "Glide:一時停止中" + "value" : "なし" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "Glide: 일시 중지됨" + "value" : "없음" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Glide: pausado" + "value" : "Nenhum" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "Glide:已暂停" + "value" : "无" } } } }, - "Glide: workspace %lld" : { + "Note: %@" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Glide: Arbeitsbereich %lld" + "value" : "Hinweis: %@" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Glide: escritorio %lld" + "value" : "Nota: %@" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Glide : bureau %lld" + "value" : "Remarque : %@" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "Glide:ワークスペース%lld" + "value" : "注:%@" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "Glide: 워크스페이스 %lld" + "value" : "참고: %@" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Glide: espaço de trabalho %lld" + "value" : "Observação: %@" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "Glide:工作区 %lld" + "value" : "注意:%@" } } } }, - "Go" : { + "Off" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Öffnen" + "value" : "Aus" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Ir" + "value" : "Desactivada" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Aller" + "value" : "Désactivé" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "移動" + "value" : "オフ" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "이동" + "value" : "끔" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Ir" + "value" : "Desativado" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "前往" + "value" : "关闭" } } } }, - "Grant Accessibility Access…" : { + "Open Settings to choose other shortcuts." : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Zugriff auf Bedienungshilfen erlauben …" + "value" : "Öffne die Einstellungen, um andere Tastenkürzel zu wählen." } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Conceder acceso de accesibilidad…" + "value" : "Abre Ajustes para elegir otros atajos." } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Accorder l’accès à l’accessibilité…" + "value" : "Ouvrez les réglages pour choisir d’autres raccourcis." } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "アクセシビリティのアクセスを許可…" + "value" : "設定を開いて、ほかのショートカットを選択してください。" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "손쉬운 사용 접근 권한 허용…" + "value" : "설정을 열어 다른 단축키를 선택하세요." } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Conceder acesso de Acessibilidade…" + "value" : "Abra os Ajustes para escolher outros atalhos." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "授予辅助功能权限…" + "value" : "打开设置以选择其他快捷键。" } } } }, - "Horizontal mouse wheel" : { + "Open System Settings" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Horizontales Mausrad" + "value" : "Systemeinstellungen öffnen" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Rueda horizontal del ratón" + "value" : "Abrir Ajustes del Sistema" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Molette horizontale de la souris" + "value" : "Ouvrir Réglages Système" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "マウスの横スクロールホイール" + "value" : "システム設定を開く" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "가로 마우스 휠" + "value" : "시스템 설정 열기" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Roda horizontal do mouse" + "value" : "Abrir Ajustes do Sistema" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "鼠标水平滚轮" + "value" : "打开系统设置" } } } }, - "How many columns a tiled workspace uses before splitting the last one. Automatic uses 3 on ultrawide displays. %@ switches the current workspace." : { + "Open at login" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Wie viele Spalten ein gekachelter Arbeitsbereich nutzt, bevor die letzte geteilt wird. Automatisch nutzt auf Ultrawide-Bildschirmen 3. Mit %@ wechselst du den aktuellen Arbeitsbereich." + "value" : "Beim Anmelden öffnen" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Cuántas columnas usa un escritorio en mosaico antes de dividir la última. Automático usa 3 en pantallas ultrapanorámicas. %@ cambia el escritorio actual." + "value" : "Abrir al iniciar sesión" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Nombre de colonnes d’un bureau en mosaïque avant de diviser la dernière. Automatique en utilise 3 sur les écrans ultralarges. %@ change celui du bureau actuel." + "value" : "Ouvrir à la connexion" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "タイル表示のワークスペースが、最後の列を分割する前に使う列の数です。自動の場合、ウルトラワイドディスプレイでは3列になります。%@ で現在のワークスペースを切り替えます。" + "value" : "ログイン時に開く" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "타일 워크스페이스가 마지막 열을 나누기 전에 사용하는 열의 수입니다. 자동은 울트라와이드 디스플레이에서 3열을 사용합니다. %@(으)로 현재 워크스페이스를 전환합니다." + "value" : "로그인 시 열기" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Quantas colunas um espaço de trabalho em mosaico usa antes de dividir a última. Automático usa 3 em telas ultrawide. %@ alterna o espaço de trabalho atual." + "value" : "Abrir ao fazer login" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "平铺工作区在拆分最后一列之前使用的列数。“自动”在超宽显示器上使用 3 列。%@ 可切换当前工作区。" + "value" : "登录时打开" } } } }, - "Layout" : { + "Other App…" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Anordnung" + "value" : "Andere App …" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Disposición" + "value" : "Otra app…" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Disposition" + "value" : "Autre app…" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "レイアウト" + "value" : "ほかの App…" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "레이아웃" + "value" : "다른 앱…" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Layout" + "value" : "Outro app…" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "布局" + "value" : "其他 App…" } } } }, - "Login Items…" : { + "Paste the command in Terminal to add “glide”. Then “glide focus-workspace 3” or a glide://focus-workspace-3 link runs any action, from scripts, Raycast, Alfred or Shortcuts. “glide list” shows them all." : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Anmeldeobjekte …" + "value" : "Füge den Befehl im Terminal ein, um „glide“ hinzuzufügen. Danach führt „glide focus-workspace 3“ oder ein Link wie glide://focus-workspace-3 jede Aktion aus, aus Skripten, Raycast, Alfred oder Kurzbefehlen. „glide list“ zeigt alle." } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Ítems de inicio…" + "value" : "Pega el comando en Terminal para añadir «glide». Después, «glide focus-workspace 3» o un enlace glide://focus-workspace-3 ejecuta cualquier acción desde scripts, Raycast, Alfred o Atajos. «glide list» las muestra todas." } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Éléments de connexion…" + "value" : "Collez la commande dans Terminal pour ajouter « glide ». Ensuite, « glide focus-workspace 3 » ou un lien glide://focus-workspace-3 lance n’importe quelle action, depuis des scripts, Raycast, Alfred ou Raccourcis. « glide list » les affiche toutes." } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "ログイン項目…" + "value" : "ターミナルにコマンドを貼り付けると「glide」が追加されます。その後は「glide focus-workspace 3」や glide://focus-workspace-3 のリンクで、スクリプト、Raycast、Alfred、ショートカットからどのアクションでも実行できます。「glide list」ですべて表示されます。" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "로그인 항목…" + "value" : "터미널에 명령을 붙여 넣으면 ‘glide’가 추가됩니다. 그런 다음 ‘glide focus-workspace 3’이나 glide://focus-workspace-3 링크로 스크립트, Raycast, Alfred, 단축어에서 어떤 동작이든 실행할 수 있습니다. ‘glide list’로 전체 목록을 볼 수 있습니다." } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Itens de Login…" + "value" : "Cole o comando no Terminal para adicionar “glide”. Depois, “glide focus-workspace 3” ou um link glide://focus-workspace-3 executa qualquer ação a partir de scripts, Raycast, Alfred ou Atalhos. “glide list” mostra todas." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "登录项…" + "value" : "在“终端”中粘贴该命令即可添加“glide”。之后,“glide focus-workspace 3”或 glide://focus-workspace-3 链接可以从脚本、Raycast、Alfred 或“快捷指令”运行任何操作。“glide list”会列出全部操作。" } } } }, - "No match" : { + "Press esc to close" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Kein Treffer" + "value" : "Zum Schließen esc drücken" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Sin resultados" + "value" : "Pulsa esc para cerrar" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Aucun résultat" + "value" : "Appuyez sur échap pour fermer" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "一致なし" + "value" : "escキーを押すと閉じます" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "검색 결과 없음" + "value" : "esc를 눌러 닫기" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Nenhum resultado" + "value" : "Pressione esc para fechar" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "无结果" + "value" : "按 esc 键关闭" } } } }, - "No shortcut" : { + "Press keys…" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Kein Tastenkürzel" + "value" : "Tasten drücken …" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Sin atajo" + "value" : "Pulsa las teclas…" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Aucun raccourci" + "value" : "Appuyez sur les touches…" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "ショートカットなし" + "value" : "キーを押してください…" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "단축키 없음" + "value" : "키를 누르세요…" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Sem atalho" + "value" : "Pressione as teclas…" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "无快捷键" + "value" : "按下按键…" } } } }, - "None" : { + "Press the new shortcut for “%@”. Esc cancels, ⌫ removes it." : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Keine" + "value" : "Drücke das neue Tastenkürzel für „%@“. Esc bricht ab, ⌫ entfernt es." } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Ninguno" + "value" : "Pulsa el nuevo atajo para “%@”. Esc cancela, ⌫ lo quita." } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Aucun" + "value" : "Appuyez sur le nouveau raccourci pour « %@ ». Échap annule, ⌫ le supprime." } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "なし" + "value" : "「%@」の新しいショートカットを押してください。Escで取り消し、⌫で削除します。" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "없음" + "value" : "“%@”의 새 단축키를 누르세요. Esc는 취소, ⌫는 삭제입니다." } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Nenhum" + "value" : "Pressione o novo atalho de “%@”. Esc cancela, ⌫ o remove." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "无" + "value" : "请按下“%@”的新快捷键。按 Esc 取消,按 ⌫ 移除。" } } } }, - "Note: %@" : { + "Quit Glide" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Hinweis: %@" + "value" : "Glide beenden" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Nota: %@" + "value" : "Salir de Glide" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Remarque : %@" + "value" : "Quitter Glide" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "注:%@" + "value" : "Glideを終了" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "참고: %@" + "value" : "Glide 종료" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Observação: %@" + "value" : "Sair do Glide" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "注意:%@" + "value" : "退出 Glide" } } } }, - "Off" : { + "Remembered places" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Aus" + "value" : "Gemerkte Orte" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Desactivada" + "value" : "Sitios recordados" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Désactivé" + "value" : "Emplacements mémorisés" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "オフ" + "value" : "記憶した場所" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "끔" + "value" : "기억된 위치" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Desativado" + "value" : "Lugares lembrados" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "关闭" + "value" : "已记住的位置" } } } }, - "Open Settings to choose other shortcuts." : { + "Remove the rule for %@" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Öffne die Einstellungen, um andere Tastenkürzel zu wählen." + "value" : "Regel für %@ entfernen" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Abre Ajustes para elegir otros atajos." + "value" : "Quitar la regla de %@" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Ouvrez les réglages pour choisir d’autres raccourcis." + "value" : "Supprimer la règle pour %@" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "設定を開いて、ほかのショートカットを選択してください。" + "value" : "%@のルールを削除" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "설정을 열어 다른 단축키를 선택하세요." + "value" : "%@ 규칙 제거" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Abra os Ajustes para escolher outros atalhos." + "value" : "Remover a regra de %@" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "打开设置以选择其他快捷键。" + "value" : "移除 %@ 的规则" } } } }, - "Open System Settings" : { + "Removed the shortcut for “%@”." : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Systemeinstellungen öffnen" + "value" : "Tastenkürzel für „%@“ entfernt." } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Abrir Ajustes del Sistema" + "value" : "Se ha quitado el atajo de “%@”." } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Ouvrir Réglages Système" + "value" : "Raccourci de « %@ » supprimé." } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "システム設定を開く" + "value" : "「%@」のショートカットを削除しました。" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "시스템 설정 열기" + "value" : "“%@”의 단축키를 제거했습니다." } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Abrir Ajustes do Sistema" + "value" : "O atalho de “%@” foi removido." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "打开系统设置" + "value" : "已移除“%@”的快捷键。" } } } }, - "Open at login" : { + "Replace your settings with “%@”?" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Beim Anmelden öffnen" + "value" : "Deine Einstellungen durch „%@“ ersetzen?" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Abrir al iniciar sesión" + "value" : "¿Reemplazar tus ajustes por «%@»?" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Ouvrir à la connexion" + "value" : "Remplacer vos réglages par « %@ » ?" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "ログイン時に開く" + "value" : "設定を「%@」の内容で置き換えますか?" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "로그인 시 열기" + "value" : "설정을 ‘%@’(으)로 대체하겠습니까?" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Abrir ao fazer login" + "value" : "Substituir seus ajustes por “%@”?" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "登录时打开" + "value" : "要用“%@”替换你的设置吗?" } } } }, - "Other App…" : { + "Report a Problem…" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Andere App …" + "value" : "Problem melden …" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Otra app…" + "value" : "Informar de un problema…" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Autre app…" + "value" : "Signaler un problème…" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "ほかの App…" + "value" : "問題を報告…" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "다른 앱…" + "value" : "문제 보고…" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Outro app…" + "value" : "Relatar um problema…" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "其他 App…" + "value" : "报告问题…" } } } }, - "Press esc to close" : { + "Reset" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Zum Schließen esc drücken" + "value" : "Zurücksetzen" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Pulsa esc para cerrar" + "value" : "Restablecer" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Appuyez sur échap pour fermer" + "value" : "Réinitialiser" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "escキーを押すと閉じます" + "value" : "リセット" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "esc를 눌러 닫기" + "value" : "재설정" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Pressione esc para fechar" + "value" : "Redefinir" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "按 esc 键关闭" + "value" : "重置" } } } }, - "Press keys…" : { + "Resting the pointer on a tiled window that's fully on screen focuses it. Floating windows and the strip's edges are left alone." : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Tasten drücken …" + "value" : "Ruht der Zeiger auf einem gekachelten Fenster, das ganz zu sehen ist, wird es fokussiert. Schwebende Fenster und die Ränder des Bands bleiben unberührt." } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Pulsa las teclas…" + "value" : "Al dejar el puntero sobre una ventana en mosaico que se ve entera, se enfoca. Las ventanas flotantes y los bordes de la tira no se tocan." } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Appuyez sur les touches…" + "value" : "Laisser le pointeur sur une fenêtre en mosaïque entièrement visible l’active. Les fenêtres flottantes et les bords de la bande ne sont pas concernés." } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "キーを押してください…" + "value" : "画面に全体が表示されているタイルウインドウにポインタを置くと、そのウインドウにフォーカスします。フローティングウインドウとストリップの端は対象外です。" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "키를 누르세요…" + "value" : "화면에 전부 보이는 타일 윈도우 위에 포인터를 두면 그 윈도우에 포커스합니다. 플로팅 윈도우와 스트립 가장자리는 그대로 둡니다." } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Pressione as teclas…" + "value" : "Deixar o ponteiro sobre uma janela em mosaico que aparece inteira na tela a foca. Janelas flutuantes e as bordas da faixa ficam de fora." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "按下按键…" + "value" : "指针停在完整显示在屏幕上的平铺窗口上时,会聚焦该窗口。浮动窗口和条带边缘不受影响。" } } } }, - "Press the new shortcut for “%@”. Esc cancels, ⌫ removes it." : { + "Restore Defaults" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Drücke das neue Tastenkürzel für „%@“. Esc bricht ab, ⌫ entfernt es." + "value" : "Standardwerte wiederherstellen" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Pulsa el nuevo atajo para “%@”. Esc cancela, ⌫ lo quita." + "value" : "Restablecer valores" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Appuyez sur le nouveau raccourci pour « %@ ». Échap annule, ⌫ le supprime." + "value" : "Rétablir les valeurs par défaut" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "「%@」の新しいショートカットを押してください。Escで取り消し、⌫で削除します。" + "value" : "初期設定に戻す" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "“%@”의 새 단축키를 누르세요. Esc는 취소, ⌫는 삭제입니다." + "value" : "기본값 복원" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Pressione o novo atalho de “%@”. Esc cancela, ⌫ o remove." + "value" : "Restaurar padrões" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "请按下“%@”的新快捷键。按 Esc 取消,按 ⌫ 移除。" + "value" : "恢复默认设置" } } } }, - "Quit Glide" : { + "Restore the default (%@)" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Glide beenden" + "value" : "Standardwert wiederherstellen (%@)" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Salir de Glide" + "value" : "Restablecer el valor predeterminado (%@)" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Quitter Glide" + "value" : "Rétablir la valeur par défaut (%@)" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "Glideを終了" + "value" : "初期設定(%@)に戻す" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "Glide 종료" + "value" : "기본값(%@) 복원" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Sair do Glide" + "value" : "Restaurar o padrão (%@)" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "退出 Glide" + "value" : "恢复默认值(%@)" } } } }, - "Remembered places" : { + "Ring color" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Gemerkte Orte" + "value" : "Rahmenfarbe" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Sitios recordados" + "value" : "Color del borde" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Emplacements mémorisés" + "value" : "Couleur du contour" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "記憶した場所" + "value" : "リングの色" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "기억된 위치" + "value" : "링 색상" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Lugares lembrados" + "value" : "Cor do contorno" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "已记住的位置" + "value" : "焦点环颜色" } } } }, - "Remove the rule for %@" : { + "Ring thickness" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Regel für %@ entfernen" + "value" : "Rahmenstärke" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Quitar la regla de %@" + "value" : "Grosor del borde" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Supprimer la règle pour %@" + "value" : "Épaisseur du contour" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "%@のルールを削除" + "value" : "リングの太さ" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "%@ 규칙 제거" + "value" : "링 두께" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Remover a regra de %@" + "value" : "Espessura do contorno" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "移除 %@ 的规则" + "value" : "焦点环粗细" } } } }, - "Removed the shortcut for “%@”." : { + "Rules apply as windows open. Float and tile take effect right away; width and workspace apply to new windows. %@ still floats or tiles a single window." : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Tastenkürzel für „%@“ entfernt." + "value" : "Regeln gelten, sobald Fenster geöffnet werden. Schweben und Kacheln wirken sofort; Breite und Arbeitsbereich gelten für neue Fenster. Mit %@ lässt sich weiterhin ein einzelnes Fenster schweben lassen oder kacheln." } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Se ha quitado el atajo de “%@”." + "value" : "Las reglas se aplican al abrirse las ventanas. Flotante y mosaico surten efecto al momento; el ancho y el escritorio se aplican a las ventanas nuevas. %@ sigue haciendo flotar o poniendo en mosaico una sola ventana." } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Raccourci de « %@ » supprimé." + "value" : "Les règles s’appliquent à l’ouverture des fenêtres. Flottante et mosaïque prennent effet immédiatement ; la largeur et le bureau s’appliquent aux nouvelles fenêtres. %@ permet toujours de mettre une seule fenêtre en flottant ou en mosaïque." } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "「%@」のショートカットを削除しました。" + "value" : "ルールはウインドウを開いたときに適用されます。フローティングとタイル表示はすぐに反映され、幅とワークスペースは新しいウインドウに適用されます。%@で個別のウインドウをフローティングにしたり、タイル表示に戻したりすることもできます。" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "“%@”의 단축키를 제거했습니다." + "value" : "규칙은 윈도우가 열릴 때 적용됩니다. 플로팅과 타일링은 즉시 적용되며, 너비와 워크스페이스는 새 윈도우에 적용됩니다. %@로는 여전히 윈도우 하나를 플로팅하거나 타일링할 수 있습니다." } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "O atalho de “%@” foi removido." + "value" : "As regras são aplicadas quando as janelas abrem. Flutuante e mosaico valem na hora; largura e espaço de trabalho valem para as janelas novas. %@ continua alternando uma única janela entre flutuante e mosaico." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "已移除“%@”的快捷键。" + "value" : "规则会在窗口打开时应用。浮动和平铺会立即生效;宽度和工作区适用于新窗口。%@ 仍可让单个窗口浮动或平铺。" } } } }, - "Report a Problem…" : { + "Scratchpad set" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Problem melden …" + "value" : "Notizfenster festgelegt" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Informar de un problema…" + "value" : "Ventana rápida asignada" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Signaler un problème…" + "value" : "Fenêtre d’appoint définie" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "問題を報告…" + "value" : "スクラッチパッドに設定しました" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "문제 보고…" + "value" : "스크래치패드로 지정됨" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Relatar um problema…" + "value" : "Janela rápida definida" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "报告问题…" + "value" : "已设为草稿窗口" } } } }, - "Restore Defaults" : { + "Scroll with a three-finger swipe" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Standardwerte wiederherstellen" + "value" : "Mit Dreifingergeste scrollen" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Restablecer valores" + "value" : "Desplazar deslizando tres dedos" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Rétablir les valeurs par défaut" + "value" : "Faire défiler par balayage à trois doigts" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "初期設定に戻す" + "value" : "3本指のスワイプでスクロール" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "기본값 복원" + "value" : "세 손가락 쓸어넘기기로 스크롤" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Restaurar padrões" + "value" : "Rolar deslizando três dedos" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "恢复默认设置" + "value" : "用三指轻扫来滚动" } } } }, - "Restore the default (%@)" : { + "Scrolling" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Standardwert wiederherstellen (%@)" + "value" : "Scrollend" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Restablecer el valor predeterminado (%@)" + "value" : "Desplazable" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Rétablir la valeur par défaut (%@)" + "value" : "Défilement" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "初期設定(%@)に戻す" + "value" : "スクロール" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "기본값(%@) 복원" + "value" : "스크롤" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Restaurar o padrão (%@)" + "value" : "Rolagem" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "恢复默认值(%@)" + "value" : "滚动" } } } }, - "Ring color" : { + "Scrolling keeps columns on a strip you scroll along; tiled fits every window on screen, splitting the space in a spiral. New and untouched workspaces use this. %@ switches the current workspace." : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Rahmenfarbe" + "value" : "Scrollend hält die Spalten auf einem Band, auf dem du scrollst; gekachelt bringt alle Fenster auf den Bildschirm und teilt den Platz spiralförmig auf. Neue und unveränderte Arbeitsbereiche verwenden diese Einstellung. Mit %@ wechselst du den aktuellen Arbeitsbereich." } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Color del borde" + "value" : "Desplazable mantiene las columnas en una tira por la que te desplazas; mosaico hace que quepan todas las ventanas en pantalla, repartiendo el espacio en espiral. Lo usan los escritorios nuevos y los que no has cambiado. %@ cambia el escritorio actual." } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Couleur du contour" + "value" : "Le défilement garde les colonnes sur une bande que l’on fait défiler ; la mosaïque fait tenir toutes les fenêtres à l’écran en partageant l’espace en spirale. Les bureaux nouveaux ou jamais modifiés l’utilisent. %@ change celle du bureau actuel." } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "リングの色" + "value" : "スクロールは列をスクロールできるストリップに並べ、タイルはすべてのウィンドウを画面に収めて、スペースをらせん状に分割します。新しいワークスペースと変更していないワークスペースはこの設定を使います。%@ で現在のワークスペースを切り替えます。" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "링 색상" + "value" : "스크롤은 열을 스크롤하는 스트립에 배치하고, 타일은 모든 창을 화면에 맞추며 공간을 나선형으로 나눕니다. 새 워크스페이스와 직접 바꾸지 않은 워크스페이스는 이 설정을 따릅니다. %@(으)로 현재 워크스페이스를 전환합니다." } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Cor do contorno" + "value" : "Rolagem mantém as colunas numa faixa pela qual você rola; mosaico faz caber todas as janelas na tela, dividindo o espaço em espiral. Os espaços de trabalho novos e os que você não alterou usam esta opção. %@ alterna o espaço de trabalho atual." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "焦点环颜色" + "value" : "“滚动”让各列排在可滚动的条带上;“平铺”让所有窗口都显示在屏幕内,并以螺旋方式划分空间。新建的和未手动切换过的工作区使用此设置。%@ 可切换当前工作区。" } } } }, - "Ring thickness" : { + "Select" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Rahmenstärke" + "value" : "Auswählen" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Grosor del borde" + "value" : "Elegir" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Épaisseur du contour" + "value" : "Choisir" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "リングの太さ" + "value" : "選択" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "링 두께" + "value" : "선택" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Espessura do contorno" + "value" : "Selecionar" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "焦点环粗细" + "value" : "选择" } } } }, - "Rules apply as windows open. Float and tile take effect right away; width and workspace apply to new windows. %@ still floats or tiles a single window." : { + "Settings file" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Regeln gelten, sobald Fenster geöffnet werden. Schweben und Kacheln wirken sofort; Breite und Arbeitsbereich gelten für neue Fenster. Mit %@ lässt sich weiterhin ein einzelnes Fenster schweben lassen oder kacheln." + "value" : "Einstellungsdatei" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Las reglas se aplican al abrirse las ventanas. Flotante y mosaico surten efecto al momento; el ancho y el escritorio se aplican a las ventanas nuevas. %@ sigue haciendo flotar o poniendo en mosaico una sola ventana." + "value" : "Archivo de ajustes" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Les règles s’appliquent à l’ouverture des fenêtres. Flottante et mosaïque prennent effet immédiatement ; la largeur et le bureau s’appliquent aux nouvelles fenêtres. %@ permet toujours de mettre une seule fenêtre en flottant ou en mosaïque." + "value" : "Fichier de réglages" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "ルールはウインドウを開いたときに適用されます。フローティングとタイル表示はすぐに反映され、幅とワークスペースは新しいウインドウに適用されます。%@で個別のウインドウをフローティングにしたり、タイル表示に戻したりすることもできます。" + "value" : "設定ファイル" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "규칙은 윈도우가 열릴 때 적용됩니다. 플로팅과 타일링은 즉시 적용되며, 너비와 워크스페이스는 새 윈도우에 적용됩니다. %@로는 여전히 윈도우 하나를 플로팅하거나 타일링할 수 있습니다." + "value" : "설정 파일" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "As regras são aplicadas quando as janelas abrem. Flutuante e mosaico valem na hora; largura e espaço de trabalho valem para as janelas novas. %@ continua alternando uma única janela entre flutuante e mosaico." + "value" : "Arquivo de ajustes" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "规则会在窗口打开时应用。浮动和平铺会立即生效;宽度和工作区适用于新窗口。%@ 仍可让单个窗口浮动或平铺。" + "value" : "设置文件" } } } }, - "Scroll with a three-finger swipe" : { + "Settings…" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Mit Dreifingergeste scrollen" + "value" : "Einstellungen …" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Desplazar deslizando tres dedos" + "value" : "Ajustes…" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Faire défiler par balayage à trois doigts" + "value" : "Réglages…" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "3本指のスワイプでスクロール" + "value" : "設定…" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "세 손가락 쓸어넘기기로 스크롤" + "value" : "설정…" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Rolar deslizando três dedos" + "value" : "Ajustes…" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "用三指轻扫来滚动" + "value" : "设置…" } } } }, - "Scrolling" : { + "Shortcuts" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Scrollend" + "value" : "Tastenkürzel" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Desplazable" + "value" : "Atajos" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Défilement" + "value" : "Raccourcis" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "スクロール" + "value" : "ショートカット" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "스크롤" + "value" : "단축키" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Rolagem" + "value" : "Atalhos" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "滚动" + "value" : "快捷键" } } } }, - "Scrolling keeps columns on a strip you scroll along; tiled fits every window on screen, splitting the space in a spiral. New and untouched workspaces use this. %@ switches the current workspace." : { + "Shortcuts, app rules, layout and appearance as a JSON file, to use on another Mac or keep with your dotfiles." : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Scrollend hält die Spalten auf einem Band, auf dem du scrollst; gekachelt bringt alle Fenster auf den Bildschirm und teilt den Platz spiralförmig auf. Neue und unveränderte Arbeitsbereiche verwenden diese Einstellung. Mit %@ wechselst du den aktuellen Arbeitsbereich." + "value" : "Tastenkürzel, App-Regeln, Layout und Darstellung als JSON-Datei, für einen anderen Mac oder deine Dotfiles." } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Desplazable mantiene las columnas en una tira por la que te desplazas; mosaico hace que quepan todas las ventanas en pantalla, repartiendo el espacio en espiral. Lo usan los escritorios nuevos y los que no has cambiado. %@ cambia el escritorio actual." + "value" : "Atajos, reglas de apps, layout y apariencia en un archivo JSON, para usarlos en otro Mac o guardarlos con tus dotfiles." } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Le défilement garde les colonnes sur une bande que l’on fait défiler ; la mosaïque fait tenir toutes les fenêtres à l’écran en partageant l’espace en spirale. Les bureaux nouveaux ou jamais modifiés l’utilisent. %@ change celle du bureau actuel." + "value" : "Raccourcis, règles d’apps, disposition et apparence dans un fichier JSON, pour un autre Mac ou vos dotfiles." } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "スクロールは列をスクロールできるストリップに並べ、タイルはすべてのウィンドウを画面に収めて、スペースをらせん状に分割します。新しいワークスペースと変更していないワークスペースはこの設定を使います。%@ で現在のワークスペースを切り替えます。" + "value" : "ショートカット、Appルール、レイアウト、外観をJSONファイルにまとめます。別のMacで使ったり、dotfilesと一緒に保存したりできます。" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "스크롤은 열을 스크롤하는 스트립에 배치하고, 타일은 모든 창을 화면에 맞추며 공간을 나선형으로 나눕니다. 새 워크스페이스와 직접 바꾸지 않은 워크스페이스는 이 설정을 따릅니다. %@(으)로 현재 워크스페이스를 전환합니다." + "value" : "단축키, 앱 규칙, 레이아웃, 모양을 JSON 파일로 저장해 다른 Mac에서 쓰거나 dotfiles와 함께 보관할 수 있습니다." } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Rolagem mantém as colunas numa faixa pela qual você rola; mosaico faz caber todas as janelas na tela, dividindo o espaço em espiral. Os espaços de trabalho novos e os que você não alterou usam esta opção. %@ alterna o espaço de trabalho atual." + "value" : "Atalhos, regras de apps, layout e aparência em um arquivo JSON, para usar em outro Mac ou guardar com seus dotfiles." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "“滚动”让各列排在可滚动的条带上;“平铺”让所有窗口都显示在屏幕内,并以螺旋方式划分空间。新建的和未手动切换过的工作区使用此设置。%@ 可切换当前工作区。" + "value" : "将快捷键、App 规则、布局和外观存为 JSON 文件,以便在另一台 Mac 上使用或与 dotfiles 一起保存。" } } } }, - "Select" : { + "Shortcuts, app rules, layout and appearance settings are replaced. Glide restarts to apply them." : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Auswählen" + "value" : "Tastenkürzel, App-Regeln, Layout- und Darstellungseinstellungen werden ersetzt. Glide startet neu, um sie anzuwenden." } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Elegir" + "value" : "Se reemplazan los atajos, las reglas de apps y los ajustes de layout y apariencia. Glide se reinicia para aplicarlos." } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Choisir" + "value" : "Les raccourcis, règles d’apps et réglages de disposition et d’apparence sont remplacés. Glide redémarre pour les appliquer." } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "選択" + "value" : "ショートカット、Appルール、レイアウトと外観の設定が置き換えられます。適用するためにGlideが再起動します。" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "선택" + "value" : "단축키, 앱 규칙, 레이아웃 및 모양 설정이 대체됩니다. 적용하기 위해 Glide가 다시 시작됩니다." } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Selecionar" + "value" : "Os atalhos, as regras de apps e os ajustes de layout e aparência são substituídos. O Glide reinicia para aplicá-los." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "选择" + "value" : "快捷键、App 规则以及布局和外观设置将被替换。Glide 会重新启动以应用它们。" } } } }, - "Settings…" : { + "Show All Shortcuts" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Einstellungen …" + "value" : "Alle Tastenkürzel anzeigen" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Ajustes…" + "value" : "Mostrar todos los atajos" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Réglages…" + "value" : "Afficher tous les raccourcis" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "設定…" + "value" : "すべてのショートカットを表示" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "설정…" + "value" : "모든 단축키 보기" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Ajustes…" + "value" : "Mostrar todos os atalhos" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "设置…" + "value" : "显示所有快捷键" } } } }, - "Shortcuts" : { + "Show workspace number when switching" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Tastenkürzel" + "value" : "Beim Wechseln die Arbeitsbereichsnummer anzeigen" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Atajos" + "value" : "Mostrar el número de escritorio al cambiar" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Raccourcis" + "value" : "Afficher le numéro du bureau lors du changement" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "ショートカット" + "value" : "切り替え時にワークスペース番号を表示" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "단축키" + "value" : "전환할 때 워크스페이스 번호 표시" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Atalhos" + "value" : "Mostrar o número do espaço de trabalho ao alternar" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "快捷键" + "value" : "切换时显示工作区编号" } } } }, - "Show All Shortcuts" : { + "Something wrong?" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Alle Tastenkürzel anzeigen" + "value" : "Stimmt etwas nicht?" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Mostrar todos los atajos" + "value" : "¿Algo no funciona?" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Afficher tous les raccourcis" + "value" : "Un problème ?" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "すべてのショートカットを表示" + "value" : "問題が起きていますか?" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "모든 단축키 보기" + "value" : "문제가 있나요?" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Mostrar todos os atalhos" + "value" : "Algum problema?" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "显示所有快捷键" + "value" : "遇到问题?" } } } }, - "Show workspace number when switching" : { + "Taken by a macOS shortcut" : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Beim Wechseln die Arbeitsbereichsnummer anzeigen" + "value" : "Von einem macOS-Tastenkürzel belegt" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Mostrar el número de escritorio al cambiar" + "value" : "Lo usa un atajo de macOS" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Afficher le numéro du bureau lors du changement" + "value" : "Pris par un raccourci macOS" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "切り替え時にワークスペース番号を表示" + "value" : "macOSのショートカットに使用されています" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "전환할 때 워크스페이스 번호 표시" + "value" : "macOS 단축키에서 사용 중" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Mostrar o número do espaço de trabalho ao alternar" + "value" : "Usado por um atalho do macOS" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "切换时显示工作区编号" + "value" : "已被 macOS 快捷键占用" } } } }, - "Something wrong?" : { + "The widths %@ steps through, as percentages of the screen. New windows open at the one nearest 50." : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Stimmt etwas nicht?" + "value" : "Die Breiten, die %@ durchläuft, in Prozent des Bildschirms. Neue Fenster öffnen mit der Breite, die 50 am nächsten liegt." } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "¿Algo no funciona?" + "value" : "Los anchos que recorre %@, en porcentaje de la pantalla. Las ventanas nuevas se abren con el más cercano a 50." } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Un problème ?" + "value" : "Les largeurs que %@ parcourt, en pourcentage de l’écran. Les nouvelles fenêtres s’ouvrent avec la plus proche de 50." } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "問題が起きていますか?" + "value" : "%@で切り替わる幅(画面に対する割合)です。新しいウインドウは50に最も近い幅で開きます。" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "문제가 있나요?" + "value" : "%@로 순환하는 너비이며, 화면에 대한 백분율입니다. 새 윈도우는 50에 가장 가까운 너비로 열립니다." } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Algum problema?" + "value" : "As larguras que %@ percorre, em porcentagem da tela. Janelas novas abrem com a mais próxima de 50." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "遇到问题?" + "value" : "%@ 循环切换的宽度,以屏幕百分比表示。新窗口以最接近 50 的宽度打开。" } } } }, - "Taken by a macOS shortcut" : { + "This file isn't a Glide settings file." : { "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Von einem macOS-Tastenkürzel belegt" + "value" : "Diese Datei ist keine Glide-Einstellungsdatei." } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Lo usa un atajo de macOS" + "value" : "Este archivo no es un archivo de ajustes de Glide." } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Pris par un raccourci macOS" + "value" : "Ce fichier n’est pas un fichier de réglages de Glide." } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "macOSのショートカットに使用されています" + "value" : "このファイルはGlideの設定ファイルではありません。" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "macOS 단축키에서 사용 중" + "value" : "이 파일은 Glide 설정 파일이 아닙니다." } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "Usado por um atalho do macOS" + "value" : "Este arquivo não é um arquivo de ajustes do Glide." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "已被 macOS 快捷键占用" + "value" : "此文件不是 Glide 设置文件。" } } } @@ -5254,6 +6335,53 @@ } } }, + "Type one to eight widths from 10 to 100, separated by commas." : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Gib ein bis acht Breiten von 10 bis 100 ein, durch Kommas getrennt." + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Escribe de uno a ocho anchos entre 10 y 100, separados por comas." + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Saisissez d’une à huit largeurs entre 10 et 100, séparées par des virgules." + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "10〜100の幅を1〜8個、カンマで区切って入力してください。" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "10에서 100 사이의 너비를 1~8개, 쉼표로 구분해 입력하세요." + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Digite de uma a oito larguras entre 10 e 100, separadas por vírgulas." + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "请输入 1 到 8 个 10 到 100 之间的宽度,用逗号分隔。" + } + } + } + }, "Type to filter windows" : { "extractionState" : "manual", "localizations" : { diff --git a/Sources/Glide/SettingsTransfer.swift b/Sources/Glide/SettingsTransfer.swift new file mode 100644 index 0000000..97ae298 --- /dev/null +++ b/Sources/Glide/SettingsTransfer.swift @@ -0,0 +1,100 @@ +import AppKit +import UniformTypeIdentifiers + +/// Glide's settings as a readable JSON file, to move them to another Mac or keep them with +/// dotfiles: shortcuts, app rules, layout and appearance. Window layouts and update preferences +/// stay on the Mac they belong to. +enum SettingsTransfer { + private static let keys = [ + "shortcuts", "glideModifier", "directionKeys", "appRules", + "defaultLayout", "tiledColumns", "widthPresets", "gap", + "focusRing", "focusRingWidth", "focusRingColor", "dimUnfocused", "dimAmount", "workspaceHUD", + "animateWindows", "rememberApps", "focusFollowsMouse", "horizontalWheel", "trackpadSwipe", + ] + /// Stored as JSON data; written out as JSON itself so the file stays readable. + private static let jsonKeys: Set = ["appRules"] + private static let formatKey = "glideSettings" + + enum Failure: LocalizedError { + case notGlideSettings + + var errorDescription: String? { String(localized: "This file isn't a Glide settings file.") } + } + + static func export(from defaults: UserDefaults = .standard) throws -> Data { + var settings: [String: Any] = [:] + for key in keys { + guard let value = defaults.object(forKey: key) else { continue } + if jsonKeys.contains(key), let data = value as? Data { + settings[key] = try JSONSerialization.jsonObject(with: data) + } else { + settings[key] = value + } + } + return try JSONSerialization.data(withJSONObject: [formatKey: 1, "settings": settings], options: [.prettyPrinted, .sortedKeys]) + } + + /// Replaces the settings with the file's; settings the file leaves out go back to their defaults. + static func importSettings(_ data: Data, into defaults: UserDefaults = .standard) throws { + guard let file = try JSONSerialization.jsonObject(with: data) as? [String: Any], file[formatKey] != nil, + let settings = file["settings"] as? [String: Any] else { throw Failure.notGlideSettings } + for key in keys { + guard let value = settings[key], !(value is NSNull) else { + defaults.removeObject(forKey: key) + continue + } + if jsonKeys.contains(key) { + defaults.set(try JSONSerialization.data(withJSONObject: value), forKey: key) + } else { + defaults.set(value, forKey: key) + } + } + } + + // MARK: Panels + + @MainActor + static func exportWithPanel() { + let panel = NSSavePanel() + panel.allowedContentTypes = [.json] + panel.nameFieldStringValue = "Glide Settings.json" + NSApp.activate(ignoringOtherApps: true) + guard panel.runModal() == .OK, let url = panel.url else { return } + do { + try export().write(to: url, options: .atomic) + } catch { + NSAlert(error: error).runModal() + } + } + + /// Asks first, imports, then relaunches Glide so every part picks the settings up. + @MainActor + static func importWithPanel() { + let panel = NSOpenPanel() + panel.allowedContentTypes = [.json] + panel.allowsMultipleSelection = false + NSApp.activate(ignoringOtherApps: true) + guard panel.runModal() == .OK, let url = panel.url else { return } + let alert = NSAlert() + alert.messageText = String(localized: "Replace your settings with “\(url.lastPathComponent)”?") + alert.informativeText = String(localized: "Shortcuts, app rules, layout and appearance settings are replaced. Glide restarts to apply them.") + alert.addButton(withTitle: String(localized: "Import and Restart")) + alert.addButton(withTitle: String(localized: "Cancel")) + guard alert.runModal() == .alertFirstButtonReturn else { return } + do { + try importSettings(Data(contentsOf: url)) + } catch { + NSAlert(error: error).runModal() + return + } + relaunch() + } + + private static func relaunch() { + let process = Process() + process.executableURL = URL(fileURLWithPath: "/bin/sh") + process.arguments = ["-c", "sleep 1; /usr/bin/open \"$0\"", Bundle.main.bundlePath] + try? process.run() + NSApp.terminate(nil) + } +} diff --git a/Sources/Glide/SettingsWindow.swift b/Sources/Glide/SettingsWindow.swift index c34c43f..c951121 100644 --- a/Sources/Glide/SettingsWindow.swift +++ b/Sources/Glide/SettingsWindow.swift @@ -151,6 +151,12 @@ struct SettingsView: View { .font(.callout) .foregroundStyle(.secondary) .fixedSize(horizontal: false, vertical: true) + WidthPresetsField(controller: controller) + Toggle("Focus follows the mouse", isOn: Binding( + get: { WindowManager.focusFollowsMouse }, + set: { WindowManager.focusFollowsMouse = $0; controller.windowManager.updateMouseMonitor() } + )) + .help("Resting the pointer on a tiled window that's fully on screen focuses it. Floating windows and the strip's edges are left alone.") Toggle("Animate window movement", isOn: Binding( get: { WindowManager.animatesWindows }, set: { WindowManager.animatesWindows = $0 } @@ -186,6 +192,23 @@ struct SettingsView: View { LabeledContent("Remembered places") { Button("Forget") { controller.windowManager.forgetRememberedApps() } } + LabeledContent("Command line tool") { + Button("Copy Install Command") { + NSPasteboard.general.clearContents() + NSPasteboard.general.setString(CommandLineTool.installCommand, forType: .string) + } + } + Text("Paste the command in Terminal to add “glide”. Then “glide focus-workspace 3” or a glide://focus-workspace-3 link runs any action, from scripts, Raycast, Alfred or Shortcuts. “glide list” shows them all.") + .font(.callout) + .foregroundStyle(.secondary) + .fixedSize(horizontal: false, vertical: true) + LabeledContent("Settings file") { + HStack { + Button("Export…") { SettingsTransfer.exportWithPanel() } + Button("Import…") { SettingsTransfer.importWithPanel() } + } + } + .help("Shortcuts, app rules, layout and appearance as a JSON file, to use on another Mac or keep with your dotfiles.") LabeledContent("Something wrong?") { Button("Report a Problem…") { controller.reportProblem() } } @@ -219,15 +242,25 @@ struct SettingsView: View { Text("⌃⌥ Control-Option").tag(GlideModifier.controlOption) Text("⌥ Option").tag(GlideModifier.option) } + Picker("Direction keys", selection: Binding( + get: { controller.shortcuts.directions }, + set: { recorder.stop(); controller.shortcuts.directions = $0 } + )) { + Text("Arrows").tag(DirectionKeys.arrows) + Text(verbatim: "H J K L").tag(DirectionKeys.letters) + } } header: { Text("Shortcuts") } footer: { - Group { + VStack(alignment: .leading, spacing: 4) { if controller.shortcuts.modifier == .option { Text("Every default shortcut uses ⌥, and ⇧ to move windows. ⌥ + arrows no longer jump by word in text, and ⌥ + letters and digits no longer type special characters like é or ©. Shortcuts you changed stay as they are.") } else { Text("Every default shortcut uses ⌃⌥, and ⇧ to move windows. Shortcuts you changed stay as they are.") } + if controller.shortcuts.directions == .letters { + Text("H, J, K and L go left, down, up and right, as in vim. Display shortcuts keep the arrows.") + } } .font(.callout) .foregroundStyle(.secondary) @@ -261,6 +294,48 @@ struct SettingsView: View { } } +/// The column widths, typed as percentages of the screen. +private struct WidthPresetsField: View { + let controller: AppController + @State private var text = LayoutSettings.describe(widthPresets: Appearance.widthPresets) + @State private var isInvalid = false + + var body: some View { + LabeledContent("Column widths") { + HStack { + TextField("Column widths", text: $text) + .labelsHidden() + .frame(width: 160) + .onSubmit(apply) + .onDisappear(perform: apply) + Text(verbatim: "%") + Button("Reset") { + text = LayoutSettings.describe(widthPresets: LayoutSettings.standard.widthPresets) + apply() + } + .disabled(Appearance.widthPresets == LayoutSettings.standard.widthPresets && !isInvalid) + } + } + Text(isInvalid + ? String(localized: "Type one to eight widths from 10 to 100, separated by commas.") + : String(localized: "The widths \(controller.shortcuts.keymap.combo(for: .cycleColumnWidth)?.description ?? String(localized: "A shortcut")) steps through, as percentages of the screen. New windows open at the one nearest 50.")) + .font(.callout) + .foregroundStyle(isInvalid ? .red : .secondary) + .fixedSize(horizontal: false, vertical: true) + } + + private func apply() { + guard let presets = LayoutSettings.widthPresets(from: text) else { + isInvalid = true + return + } + isInvalid = false + Appearance.widthPresets = presets + text = LayoutSettings.describe(widthPresets: presets) + controller.appearanceChanged() + } +} + private struct AppRulesSection: View { let store: RuleStore let floatCombo: String @@ -329,9 +404,16 @@ private struct AppRuleRow: View { } Picker("Width", selection: binding(\.widthIndex)) { Text("Default width").tag(Int?.none) - let names: [LocalizedStringResource] = ["⅓ width", "½ width", "⅔ width", "Full width"] - ForEach(Array(names.enumerated()), id: \.offset) { index, name in - Text(name).tag(Int?.some(index)) + let presets = Appearance.widthPresets + if presets == LayoutSettings.standard.widthPresets { + let names: [LocalizedStringResource] = ["⅓ width", "½ width", "⅔ width", "Full width"] + ForEach(Array(names.enumerated()), id: \.offset) { index, name in + Text(name).tag(Int?.some(index)) + } + } else { + ForEach(Array(presets.enumerated()), id: \.offset) { index, preset in + Text("\(LayoutSettings.describe(widthPresets: [preset]) + "%") width").tag(Int?.some(index)) + } } } .disabled(rule.mode == .float) diff --git a/Sources/Glide/ShortcutStore.swift b/Sources/Glide/ShortcutStore.swift index 808778d..8b8f11d 100644 --- a/Sources/Glide/ShortcutStore.swift +++ b/Sources/Glide/ShortcutStore.swift @@ -7,12 +7,14 @@ import Observation final class ShortcutStore { private static let key = "shortcuts" private static let modifierKey = "glideModifier" + private static let directionsKey = "directionKeys" private let defaults: UserDefaults private(set) var keymap: Keymap { didSet { defaults.set(keymap.storage, forKey: Self.key) defaults.set(keymap.modifier.rawValue, forKey: Self.modifierKey) + defaults.set(keymap.directions.rawValue, forKey: Self.directionsKey) onChange?() } } @@ -22,7 +24,8 @@ final class ShortcutStore { init(defaults: UserDefaults = .standard) { self.defaults = defaults let modifier = defaults.string(forKey: Self.modifierKey).flatMap(GlideModifier.init(rawValue:)) ?? .controlOption - keymap = Keymap(modifier: modifier, storage: defaults.dictionary(forKey: Self.key) as? [String: String] ?? [:]) + let directions = defaults.string(forKey: Self.directionsKey).flatMap(DirectionKeys.init(rawValue:)) ?? .arrows + keymap = Keymap(modifier: modifier, directions: directions, storage: defaults.dictionary(forKey: Self.key) as? [String: String] ?? [:]) } var modifier: GlideModifier { @@ -30,6 +33,11 @@ final class ShortcutStore { set { keymap.setModifier(newValue) } } + var directions: DirectionKeys { + get { keymap.directions } + set { keymap.setDirections(newValue) } + } + @discardableResult func set(_ combo: KeyCombo?, for action: Action) -> [Action] { keymap.set(combo, for: action) diff --git a/Sources/Glide/WindowManager.swift b/Sources/Glide/WindowManager.swift index 0e963db..d0bf2de 100644 --- a/Sources/Glide/WindowManager.swift +++ b/Sources/Glide/WindowManager.swift @@ -68,6 +68,9 @@ final class WindowManager { private var workspaceObservers: [NSObjectProtocol] = [] /// The layout to rebuild when tiling starts, saved when it stops or after changes. private var snapshot: StripSnapshot? + /// The layout from before the Mac restarted, waiting for its windows to open again. + private var restartPlan: RestartPlan? + private var restartPlanExpiry: Date? private var saveWork: DispatchWorkItem? static let snapshotKey = "stripSnapshot" private let decorations = FocusDecorations() @@ -96,6 +99,14 @@ final class WindowManager { /// The displays showing a full-screen window, as of `at`. private var fullScreenDisplays: (at: CFTimeInterval, displays: Set) = (0, []) + /// Managed windows in the order they last had focus, the most recent last. + private var focusHistory: [WindowID] = [] + private var mouseMonitor: Any? + /// The window that shows and hides with one shortcut, floating over everything, and whether it shows. + private var scratchpad: WindowID? + private var scratchpadShown = false + private var hoverWork: DispatchWorkItem? + /// Per-app float/tile, width and workspace rules, applied as windows appear. var rules = AppRules() @@ -141,7 +152,7 @@ final class WindowManager { let frames = screens.map(\.frame) var next = screens.enumerated().map { index, screen in var display = previous.first { $0.id == screen.id } - ?? Display(id: screen.id, frame: screen.frame, spaces: WorkspaceSet(viewport: screen.viewport, settings: LayoutSettings(gap: Appearance.gap, defaultLayout: Appearance.defaultLayout, defaultTiledColumns: Appearance.tiledColumns))) + ?? Display(id: screen.id, frame: screen.frame, spaces: WorkspaceSet(viewport: screen.viewport, settings: Appearance.layoutSettings)) display.frame = screen.frame display.spaces.viewport = screen.viewport display.spaces.hiddenCorner = DisplayGeometry.hiddenCorner(of: index, in: frames) @@ -176,6 +187,7 @@ final class WindowManager { let apps = NSWorkspace.shared.runningApplications.filter(isManageable) for app in apps { observe(app) } reconcile(Set(apps.map(\.processIdentifier)), adopting: true) + updateMouseMonitor() } /// Stops tiling and moves every window somewhere fully on screen. @@ -192,6 +204,10 @@ final class WindowManager { if let frame = restored[window.id] { window.element.setFrame(frame) } } + if let id = scratchpad, !scratchpadShown, let window = windows[id] { + window.element.setFrame(floatingFrame(for: window.element, on: focusedDisplay)) + } + scratchpad = nil saveSnapshot() dropHighlightTimer?.invalidate() dropHighlightTimer = nil @@ -202,7 +218,10 @@ final class WindowManager { fullScreenWindows = [] foregroundFullScreenDisplay = nil departures = [:] + restartPlan = nil + focusHistory = [] isEnabled = false + updateMouseMonitor() reassertWork?.cancel() for observer in observers.values { CFRunLoopRemoveSource(CFRunLoopGetMain(), AXObserverGetRunLoopSource(observer), .commonModes) @@ -240,7 +259,11 @@ final class WindowManager { private func saveSnapshot() { saveWork?.cancel() guard isEnabled, let bootTime = Self.bootTime else { return } - let snapshot = StripSnapshot(displays: displays.map { ($0.id, $0.spaces) }, userFloating: userFloating, userTiled: userTiled, bootTime: bootTime) + var snapshot = StripSnapshot(displays: displays.map { ($0.id, $0.spaces) }, userFloating: userFloating, userTiled: userTiled, bootTime: bootTime) + snapshot.identities = snapshot.allWindows.compactMap { id in + guard let bundleID = bundleID(of: id) else { return nil } + return WindowIdentity(window: id, bundleID: bundleID, title: windows[id]?.element.value(kAXTitleAttribute) ?? "") + } self.snapshot = snapshot if let data = try? JSONEncoder().encode(snapshot) { UserDefaults.standard.set(data, forKey: Self.snapshotKey) @@ -253,6 +276,17 @@ final class WindowManager { snapshot = try? JSONDecoder().decode(StripSnapshot.self, from: data) } guard let saved = snapshot, let bootTime = Self.bootTime, abs(saved.bootTime.timeIntervalSince(bootTime)) < 1 else { + // Saved before the Mac restarted: its windows have new IDs, so find them by app and title as they open. + if let saved = snapshot, let plan = RestartPlan(snapshot: saved, mainDisplay: displays[0].id) { + restartPlan = plan + restartPlanExpiry = Date().addingTimeInterval(Self.restartPlanLifetime) + for index in displays.indices { + if let layouts = plan.layouts[displays[index].id] { + displays[index].spaces.restore(strips: [], activeIndex: 0, layouts: layouts.layouts, tiledColumns: layouts.tiledColumns) + } + } + log.debug("restoring the layout from before the restart as windows open") + } snapshot = nil return } @@ -260,6 +294,22 @@ final class WindowManager { userTiled = Set(saved.userTiled) } + /// How long after Glide starts windows from before a restart are still put back where they were. + private static let restartPlanLifetime: TimeInterval = 600 + + /// Where a window that just opened was before the Mac restarted, if the restart plan knows it. + private func restartPlace(for id: WindowID) -> (display: Int, departure: WorkspaceSet.Departure)? { + guard restartPlan != nil else { return nil } + if let expiry = restartPlanExpiry, Date() > expiry { + restartPlan = nil + return nil + } + guard let bundleID = bundleID(of: id), + let place = restartPlan?.claim(id, bundleID: bundleID, title: windows[id]?.element.value(kAXTitleAttribute) ?? "") else { return nil } + if restartPlan?.isEmpty == true { restartPlan = nil } + return (displays.firstIndex { $0.id == place.display } ?? 0, place.departure) + } + private static let bootTime: Date? = { var time = timeval() var size = MemoryLayout.size @@ -270,12 +320,11 @@ final class WindowManager { /// Applies changed gap, default layout and tiled columns, focus ring and dimming settings. func appearanceChanged() { guard isEnabled else { return } - let gapChanged = spaces.settings.gap != Appearance.gap - if gapChanged || spaces.settings.defaultLayout != Appearance.defaultLayout || spaces.settings.defaultTiledColumns != Appearance.tiledColumns { + let settings = Appearance.layoutSettings + let gapChanged = spaces.settings.gap != settings.gap + if spaces.settings != settings { for index in displays.indices { - displays[index].spaces.settings.gap = Appearance.gap - displays[index].spaces.settings.defaultLayout = Appearance.defaultLayout - displays[index].spaces.settings.defaultTiledColumns = Appearance.tiledColumns + displays[index].spaces.settings = settings if gapChanged { displays[index].spaces.active.minimumWidths = [:] } displays[index].spaces.settleScroll() } @@ -302,6 +351,18 @@ final class WindowManager { toggleFloating() return } + if action == .focusPreviousWindow { + focusPreviousWindow() + return + } + if action == .toggleScratchpad { + toggleScratchpad() + return + } + if action == .moveToScratchpad { + moveToScratchpad() + return + } if action == .toggleLayout { workspace.toggleLayout() log.debug("workspace \(self.spaces.activeIndex + 1) is now \(self.workspace.layout.rawValue, privacy: .public): \(self.stripDescription, privacy: .public)") @@ -346,6 +407,10 @@ final class WindowManager { track(id, pid: pid, element: element) } guard let window = windows[id] else { return NSSound.beep() } + if id == scratchpad { + scratchpad = nil + scratchpadShown = false + } if let display = displayIndex(of: id) { displays[display].spaces.remove(id) @@ -368,6 +433,67 @@ final class WindowManager { didChange() } + // MARK: Scratchpad + + /// Makes the focused window the scratchpad and hides it. Pressed on the scratchpad itself, it + /// tiles the window again. A previous scratchpad stays where it is, as a floating window. + private func moveToScratchpad() { + guard let id = focusedWindowID() else { return NSSound.beep() } + if windows[id] == nil, let element = focusedWindowElement(), let pid = element.pid, + WindowClassifier.classify(element) != .ignored { + track(id, pid: pid, element: element) + } + guard windows[id] != nil else { return NSSound.beep() } + if id == scratchpad { + // Tiling it again clears the scratchpad. + toggleFloating() + onWorkspaceEvent?(String(localized: "No scratchpad")) + return + } + if let display = displayIndex(of: id) { + displays[display].spaces.remove(id) + userTiled.remove(id) + lastApplied[id] = nil + applyLayout() + } + userFloating.insert(id) + if let previous = scratchpad, previous != id, !scratchpadShown, let window = windows[previous] { + window.element.setFrame(floatingFrame(for: window.element, on: focusedDisplay)) + } + scratchpad = id + hideScratchpad() + didChange() + onWorkspaceEvent?(String(localized: "Scratchpad set")) + } + + /// Shows the scratchpad over the focused display, or hides it if it has focus. + private func toggleScratchpad() { + guard let id = scratchpad, windows[id] != nil else { return NSSound.beep() } + if scratchpadShown && focusedWindowID() == id { + hideScratchpad() + } else { + showScratchpad() + } + } + + private func showScratchpad() { + guard let id = scratchpad, let window = windows[id] else { return } + if !scratchpadShown { + window.element.setFrame(floatingFrame(for: window.element, on: focusedDisplay)) + scratchpadShown = true + } + focus(id) + } + + /// Moves the scratchpad to its display's hidden corner and focuses what was there before it. + private func hideScratchpad() { + guard let id = scratchpad, let window = windows[id] else { return } + let size = window.element.size ?? .zero + window.element.setPosition(displays[focusedDisplay].spaces.active.hiddenFrame(size: size).origin) + scratchpadShown = false + if let next = workspace.strip.focusedWindow { focus(next) } else { refreshOverlays() } + } + /// A floated window keeps its size (up to 70% of the screen) and moves to the center of its display. private func floatingFrame(for element: AXUIElement, on display: Int) -> CGRect { let viewport = displays[display].spaces.viewport @@ -598,7 +724,12 @@ final class WindowManager { hide(inactiveWindows) } else { for tile in ordered { - let landed = addTile(tile.id, on: tile.display, focus: false, atEnd: true) + let landed: (display: Int, workspace: Int) + if let place = restartPlace(for: tile.id) { + landed = (place.display, displays[place.display].spaces.rejoin(tile.id, from: place.departure, focus: false)) + } else { + landed = addTile(tile.id, on: tile.display, focus: false, atEnd: true) + } if !isActive(landed) { hide([tile.id]) } } } @@ -608,6 +739,9 @@ final class WindowManager { let display = displays.firstIndex { $0.id == left.display } ?? tile.display let workspace = displays[display].spaces.rejoin(tile.id, from: left.departure, focus: tile.id == focusedID) if !isActive((display, workspace)) { hide([tile.id]) } + } else if let place = restartPlace(for: tile.id) { + let workspace = displays[place.display].spaces.rejoin(tile.id, from: place.departure, focus: tile.id == focusedID) + if !isActive((place.display, workspace)) { hide([tile.id]) } } else { let landed = addTile(tile.id, on: tile.display, focus: tile.id == focusedID, atEnd: false) if !isActive(landed) { hide([tile.id]) } @@ -776,6 +910,8 @@ final class WindowManager { lastObserved[id] = nil motions[id] = nil hiddenWindows.remove(id) + focusHistory.removeAll { $0 == id } + if scratchpad == id { scratchpad = nil } } private func onScreenWindowIDs() -> Set { @@ -897,6 +1033,14 @@ final class WindowManager { if windows[id] != nil { checkFullScreen(id) } updateForegroundFullScreen() if let lock = focusLock, Date() < lock.until, lock.window != id { return } + // ⌘-Tab or a click in the Dock reached the hidden scratchpad: bring it out. (Hidden while + // focused, it still has focus until something else takes it.) + let focusMoved = focusHistory.last != id + if windows[id] != nil { noteFocus(id) } + if id == scratchpad, !scratchpadShown, focusMoved { + showScratchpad() + return + } guard let display = displayIndex(of: id), let index = displays[display].spaces.index(of: id) else { if windows[id] == nil, let pid = focusedWindowElement()?.pid { scheduleReconcile(pid) } return @@ -928,6 +1072,28 @@ final class WindowManager { DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) { [weak self] in self?.refreshOverlays() } } + private func noteFocus(_ id: WindowID) { + guard focusHistory.last != id else { return } + focusHistory.removeAll { $0 == id } + focusHistory.append(id) + if focusHistory.count > 20 { focusHistory.removeFirst() } + } + + /// Goes back to the window that had focus before this one, on whichever workspace or display + /// it is. Pressed again, it comes back. + private func focusPreviousWindow() { + let current = focusedWindowID() + let target = focusHistory.reversed().first { id in + id != current && windows[id].map { !$0.element.isMinimized } == true + } + guard let target else { return NSSound.beep() } + if displayIndex(of: target) != nil { + focusFromOverview(target) + } else { + focus(target) + } + } + // MARK: Workspaces var activeWorkspaceNumber: Int { spaces.activeIndex + 1 } @@ -1171,6 +1337,63 @@ final class WindowManager { // MARK: Applying frames /// Whether layout changes slide into place. Read each time so the setting applies at once. + // MARK: Focus follows mouse + + static var focusFollowsMouse: Bool { + get { UserDefaults.standard.bool(forKey: "focusFollowsMouse") } + set { UserDefaults.standard.set(newValue, forKey: "focusFollowsMouse") } + } + + /// Watches the pointer while focus follows the mouse and tiling is on. + func updateMouseMonitor() { + let wanted = isEnabled && Self.focusFollowsMouse + if wanted, mouseMonitor == nil { + mouseMonitor = NSEvent.addGlobalMonitorForEvents(matching: .mouseMoved) { [weak self] _ in + MainActor.assumeIsolated { self?.pointerMoved() } + } + } else if !wanted, let monitor = mouseMonitor { + NSEvent.removeMonitor(monitor) + mouseMonitor = nil + hoverWork?.cancel() + } + } + + /// Focuses the tiled window under the pointer once it rests there briefly. + private func pointerMoved() { + hoverWork?.cancel() + let work = DispatchWorkItem { [weak self] in self?.focusWindowUnderPointer() } + hoverWork = work + DispatchQueue.main.asyncAfter(deadline: .now() + 0.15, execute: work) + } + + /// Only a tiled window fully on screen, and the frontmost window there, takes focus: the + /// strip never scrolls under the pointer, and floating windows, menus and other apps' panels + /// in front keep the pointer to themselves. + private func focusWindowUnderPointer() { + // Glide's own windows (overview, Settings) keep it active while they're up. + guard isEnabled, !NSApp.isActive, NSEvent.pressedMouseButtons == 0, !isSwiping, motions.isEmpty, draggedWindow == nil else { return } + let point = ScreenGeometry.axPoint(fromCocoa: NSEvent.mouseLocation) + guard let display = DisplayGeometry.display(at: point, in: displayFrames), + let target = frontmostWindow(at: point), target != focusedWindowID(), + displays[display].spaces.active.placements().contains(where: { $0.window == target && $0.visibility == .visible }) else { return } + focusFromOverview(target) + } + + /// The window in front at a point, leaving out Glide's own overlays. + private func frontmostWindow(at point: CGPoint) -> WindowID? { + guard let info = CGWindowListCopyWindowInfo([.optionOnScreenOnly, .excludeDesktopElements], kCGNullWindowID) as? [[String: Any]] else { return nil } + let ownPID = ProcessInfo.processInfo.processIdentifier + for entry in info { + guard let pid = entry[kCGWindowOwnerPID as String] as? pid_t, pid != ownPID, + let bounds = (entry[kCGWindowBounds as String] as? NSDictionary).flatMap({ CGRect(dictionaryRepresentation: $0 as CFDictionary) }), + bounds.contains(point) else { continue } + let layer = entry[kCGWindowLayer as String] as? Int ?? 0 + // Menus, the Dock and other system panels sit above the normal layer. + return layer == 0 ? entry[kCGWindowNumber as String] as? WindowID : nil + } + return nil + } + static var animatesWindows: Bool { get { UserDefaults.standard.object(forKey: "animateWindows") as? Bool ?? true } set { UserDefaults.standard.set(newValue, forKey: "animateWindows") } diff --git a/Sources/GlideCore/Action.swift b/Sources/GlideCore/Action.swift index 4fa66a5..7747ac8 100644 --- a/Sources/GlideCore/Action.swift +++ b/Sources/GlideCore/Action.swift @@ -8,6 +8,7 @@ public enum Action: String, CaseIterable, Codable, Sendable { case focusWindowDown case focusFirstColumn case focusLastColumn + case focusPreviousWindow case moveColumnLeft case moveColumnRight case moveWindowUp @@ -19,10 +20,12 @@ public enum Action: String, CaseIterable, Codable, Sendable { case toggleFullWidth case toggleTabbed case centerColumn + case evenOutColumns case focusPreviousWorkspace case focusNextWorkspace case moveColumnToPreviousWorkspace case moveColumnToNextWorkspace + case focusLastWorkspace case focusWorkspace1 case focusWorkspace2 case focusWorkspace3 @@ -48,6 +51,8 @@ public enum Action: String, CaseIterable, Codable, Sendable { case toggleOverview case showShortcuts case toggleFloating + case toggleScratchpad + case moveToScratchpad case toggleTiling case toggleLayout case cycleTiledColumns @@ -87,6 +92,7 @@ public enum Action: String, CaseIterable, Codable, Sendable { case .focusWindowDown: String(localized: "Focus Window Down", bundle: #bundle) case .focusFirstColumn: String(localized: "Focus First Column", bundle: #bundle) case .focusLastColumn: String(localized: "Focus Last Column", bundle: #bundle) + case .focusPreviousWindow: String(localized: "Focus Previously Focused Window", bundle: #bundle) case .moveColumnLeft: String(localized: "Move Column Left", bundle: #bundle) case .moveColumnRight: String(localized: "Move Column Right", bundle: #bundle) case .moveWindowUp: String(localized: "Move Window Up", bundle: #bundle) @@ -98,10 +104,12 @@ public enum Action: String, CaseIterable, Codable, Sendable { case .toggleFullWidth: String(localized: "Toggle Full Width", bundle: #bundle) case .toggleTabbed: String(localized: "Toggle Tabbed Column", bundle: #bundle) case .centerColumn: String(localized: "Center Column", bundle: #bundle) + case .evenOutColumns: String(localized: "Even Out Columns on Screen", bundle: #bundle) case .focusPreviousWorkspace: String(localized: "Focus Previous Workspace", bundle: #bundle) case .focusNextWorkspace: String(localized: "Focus Next Workspace", bundle: #bundle) case .moveColumnToPreviousWorkspace: String(localized: "Move Window to Previous Workspace", bundle: #bundle) case .moveColumnToNextWorkspace: String(localized: "Move Window to Next Workspace", bundle: #bundle) + case .focusLastWorkspace: String(localized: "Back to Last Workspace", bundle: #bundle) case .focusDisplayLeft: String(localized: "Focus Display Left", bundle: #bundle) case .focusDisplayRight: String(localized: "Focus Display Right", bundle: #bundle) case .moveColumnToDisplayLeft: String(localized: "Move Column to Display Left", bundle: #bundle) @@ -109,6 +117,8 @@ public enum Action: String, CaseIterable, Codable, Sendable { case .toggleOverview: String(localized: "Show or Hide Overview", bundle: #bundle) case .showShortcuts: String(localized: "Show Shortcuts", bundle: #bundle) case .toggleFloating: String(localized: "Toggle Floating", bundle: #bundle) + case .toggleScratchpad: String(localized: "Show or Hide Scratchpad", bundle: #bundle) + case .moveToScratchpad: String(localized: "Make Window the Scratchpad", bundle: #bundle) case .toggleTiling: String(localized: "Enable or Disable Tiling", bundle: #bundle) case .toggleLayout: String(localized: "Switch Between Scrolling and Tiled", bundle: #bundle) case .cycleTiledColumns: String(localized: "Switch Between 2 and 3 Columns", bundle: #bundle) @@ -123,15 +133,16 @@ public enum Action: String, CaseIterable, Codable, Sendable { public var group: Group { switch self { - case .focusColumnLeft, .focusColumnRight, .focusWindowUp, .focusWindowDown, .focusFirstColumn, .focusLastColumn: + case .focusColumnLeft, .focusColumnRight, .focusWindowUp, .focusWindowDown, .focusFirstColumn, .focusLastColumn, + .focusPreviousWindow: .focus case .moveColumnLeft, .moveColumnRight, .moveWindowUp, .moveWindowDown, .consumeOrExpelLeft, .consumeOrExpelRight: .move - case .cycleColumnWidth, .cycleColumnWidthBackward, .toggleFullWidth, .toggleTabbed, .centerColumn: + case .cycleColumnWidth, .cycleColumnWidthBackward, .toggleFullWidth, .toggleTabbed, .centerColumn, .evenOutColumns: .column case .focusDisplayLeft, .focusDisplayRight, .moveColumnToDisplayLeft, .moveColumnToDisplayRight: .displays - case .toggleOverview, .showShortcuts, .toggleFloating, .toggleTiling: + case .toggleOverview, .showShortcuts, .toggleFloating, .toggleTiling, .toggleScratchpad, .moveToScratchpad: .general default: .workspaces @@ -145,6 +156,7 @@ public enum Action: String, CaseIterable, Codable, Sendable { case .focusNextWorkspace: (.next, false) case .moveColumnToPreviousWorkspace: (.previous, true) case .moveColumnToNextWorkspace: (.next, true) + case .focusLastWorkspace: (.last, false) case .focusWorkspace1: (.index(0), false) case .focusWorkspace2: (.index(1), false) case .focusWorkspace3: (.index(2), false) @@ -169,6 +181,27 @@ public enum Action: String, CaseIterable, Codable, Sendable { } extension Action { + /// The name the command line and `glide://` URLs use: the raw value in kebab case, e.g. + /// "focus-column-left" or "focus-workspace-3". + public var commandName: String { + var name = "" + var previous: Character? + for character in rawValue { + if let previous, character.isUppercase || (character.isNumber && !previous.isNumber) { name.append("-") } + name.append(contentsOf: character.lowercased()) + previous = character + } + return name + } + + /// Reads a command name, case and separators ignored: "focus-column-left", "focus_column_left" + /// and "focusColumnLeft" all work. + public init?(commandName: String) { + let key = commandName.lowercased().filter { $0.isLetter || $0.isNumber } + guard let action = Action.allCases.first(where: { $0.rawValue.lowercased() == key }) else { return nil } + self = action + } + /// For display actions: which way (-1 left, +1 right), and whether the focused column goes along. public var displayCommand: (direction: Int, movesColumn: Bool)? { switch self { @@ -186,4 +219,6 @@ public enum WorkspaceTarget: Equatable, Sendable { case index(Int) case previous case next + /// The workspace that was active before this one, for going back and forth. + case last } diff --git a/Sources/GlideCore/KeyCombo.swift b/Sources/GlideCore/KeyCombo.swift index b92129b..32bce80 100644 --- a/Sources/GlideCore/KeyCombo.swift +++ b/Sources/GlideCore/KeyCombo.swift @@ -67,11 +67,18 @@ public enum KeyCode { public static let leftBracket: UInt32 = 33 public static let rightBracket: UInt32 = 30 public static let slash: UInt32 = 44 + public static let grave: UInt32 = 50 public static let c: UInt32 = 8 + public static let e: UInt32 = 14 public static let f: UInt32 = 3 public static let g: UInt32 = 5 + public static let h: UInt32 = 4 + public static let j: UInt32 = 38 + public static let k: UInt32 = 40 + public static let l: UInt32 = 37 public static let o: UInt32 = 31 public static let r: UInt32 = 15 + public static let s: UInt32 = 1 public static let t: UInt32 = 17 public static let v: UInt32 = 9 public static let w: UInt32 = 13 diff --git a/Sources/GlideCore/Keymap.swift b/Sources/GlideCore/Keymap.swift index a2976ef..d11d484 100644 --- a/Sources/GlideCore/Keymap.swift +++ b/Sources/GlideCore/Keymap.swift @@ -15,27 +15,45 @@ public enum GlideModifier: String, CaseIterable, Sendable { } } +/// The keys the default focus and move shortcuts use for directions. +public enum DirectionKeys: String, CaseIterable, Sendable { + case arrows + /// H J K L for left, down, up and right, as in vim. + case letters + + /// Left, right, up and down. + var keys: (left: UInt32, right: UInt32, up: UInt32, down: UInt32) { + switch self { + case .arrows: (KeyCode.leftArrow, KeyCode.rightArrow, KeyCode.upArrow, KeyCode.downArrow) + case .letters: (KeyCode.h, KeyCode.l, KeyCode.k, KeyCode.j) + } + } +} + /// Which shortcut triggers which action: the defaults plus any user overrides. public struct Keymap: Equatable, Sendable { /// The defaults for the standard ⌃⌥ chord. public static let defaults = defaults(for: .controlOption) /// Defaults are the Glide modifier for focus/commands and the modifier plus ⇧ for "move", plus ⌘ - /// for displays. See the README for the reasoning. - public static func defaults(for modifier: GlideModifier) -> [Action: KeyCombo] { + /// for displays. See the README for the reasoning. Display shortcuts keep the arrows whatever + /// the direction keys are. + public static func defaults(for modifier: GlideModifier, directions: DirectionKeys = .arrows) -> [Action: KeyCombo] { let hyper = modifier.modifiers let move = hyper.union(.shift) + let keys = directions.keys var map: [Action: KeyCombo] = [ - .focusColumnLeft: KeyCombo(KeyCode.leftArrow, hyper), - .focusColumnRight: KeyCombo(KeyCode.rightArrow, hyper), - .focusWindowUp: KeyCombo(KeyCode.upArrow, hyper), - .focusWindowDown: KeyCombo(KeyCode.downArrow, hyper), + .focusColumnLeft: KeyCombo(keys.left, hyper), + .focusColumnRight: KeyCombo(keys.right, hyper), + .focusWindowUp: KeyCombo(keys.up, hyper), + .focusWindowDown: KeyCombo(keys.down, hyper), .focusFirstColumn: KeyCombo(KeyCode.home, hyper), .focusLastColumn: KeyCombo(KeyCode.end, hyper), - .moveColumnLeft: KeyCombo(KeyCode.leftArrow, move), - .moveColumnRight: KeyCombo(KeyCode.rightArrow, move), - .moveWindowUp: KeyCombo(KeyCode.upArrow, move), - .moveWindowDown: KeyCombo(KeyCode.downArrow, move), + .focusPreviousWindow: KeyCombo(KeyCode.grave, hyper), + .moveColumnLeft: KeyCombo(keys.left, move), + .moveColumnRight: KeyCombo(keys.right, move), + .moveWindowUp: KeyCombo(keys.up, move), + .moveWindowDown: KeyCombo(keys.down, move), .consumeOrExpelLeft: KeyCombo(KeyCode.leftBracket, hyper), .consumeOrExpelRight: KeyCombo(KeyCode.rightBracket, hyper), .cycleColumnWidth: KeyCombo(KeyCode.r, hyper), @@ -43,9 +61,12 @@ public struct Keymap: Equatable, Sendable { .toggleFullWidth: KeyCombo(KeyCode.f, hyper), .toggleTabbed: KeyCombo(KeyCode.w, hyper), .centerColumn: KeyCombo(KeyCode.c, hyper), + .evenOutColumns: KeyCombo(KeyCode.e, hyper), .toggleOverview: KeyCombo(KeyCode.o, hyper), .showShortcuts: KeyCombo(KeyCode.slash, hyper), .toggleFloating: KeyCombo(KeyCode.v, hyper), + .toggleScratchpad: KeyCombo(KeyCode.s, hyper), + .moveToScratchpad: KeyCombo(KeyCode.s, move), .toggleTiling: KeyCombo(KeyCode.t, move), .toggleLayout: KeyCombo(KeyCode.t, hyper), .cycleTiledColumns: KeyCombo(KeyCode.g, hyper), @@ -53,6 +74,7 @@ public struct Keymap: Equatable, Sendable { .focusNextWorkspace: KeyCombo(KeyCode.pageDown, hyper), .moveColumnToPreviousWorkspace: KeyCombo(KeyCode.pageUp, move), .moveColumnToNextWorkspace: KeyCombo(KeyCode.pageDown, move), + .focusLastWorkspace: KeyCombo(KeyCode.tab, hyper), .focusDisplayLeft: KeyCombo(KeyCode.leftArrow, hyper.union(.command)), .focusDisplayRight: KeyCombo(KeyCode.rightArrow, hyper.union(.command)), .moveColumnToDisplayLeft: KeyCombo(KeyCode.leftArrow, move.union(.command)), @@ -69,16 +91,19 @@ public struct Keymap: Equatable, Sendable { /// The modifier the defaults are built on. public private(set) var modifier: GlideModifier + /// The keys the default focus and move shortcuts use. + public private(set) var directions: DirectionKeys /// Overrides of the defaults. A nil value means the user removed the shortcut. public private(set) var overrides: [Action: KeyCombo?] - public init(modifier: GlideModifier = .controlOption, overrides: [Action: KeyCombo?] = [:]) { + public init(modifier: GlideModifier = .controlOption, directions: DirectionKeys = .arrows, overrides: [Action: KeyCombo?] = [:]) { self.modifier = modifier + self.directions = directions self.overrides = overrides } public func defaultCombo(for action: Action) -> KeyCombo? { - Self.defaults(for: modifier)[action] + Self.defaults(for: modifier, directions: directions)[action] } public func combo(for action: Action) -> KeyCombo? { @@ -123,8 +148,18 @@ public struct Keymap: Equatable, Sendable { /// Rebuilds the defaults on another modifier. Shortcuts the user set keep working, and win /// over a new default that lands on the same keys. public mutating func setModifier(_ modifier: GlideModifier) { + rebuildDefaults(modifier: modifier, directions: directions) + } + + /// Rebuilds the defaults on other direction keys, like `setModifier`. + public mutating func setDirections(_ directions: DirectionKeys) { + rebuildDefaults(modifier: modifier, directions: directions) + } + + private mutating func rebuildDefaults(modifier: GlideModifier, directions: DirectionKeys) { let custom = overrides self.modifier = modifier + self.directions = directions overrides = [:] for (action, combo) in custom { if let combo { @@ -156,7 +191,7 @@ public struct Keymap: Equatable, Sendable { return result } - public init(modifier: GlideModifier = .controlOption, storage: [String: String]) { + public init(modifier: GlideModifier = .controlOption, directions: DirectionKeys = .arrows, storage: [String: String]) { var overrides: [Action: KeyCombo?] = [:] for (key, value) in storage { guard let action = Action(rawValue: key) else { continue } @@ -166,7 +201,7 @@ public struct Keymap: Equatable, Sendable { overrides[action] = .some(combo) } } - self.init(modifier: modifier, overrides: overrides) + self.init(modifier: modifier, directions: directions, overrides: overrides) } } diff --git a/Sources/GlideCore/Localizable.xcstrings b/Sources/GlideCore/Localizable.xcstrings index 920701f..8a100fb 100644 --- a/Sources/GlideCore/Localizable.xcstrings +++ b/Sources/GlideCore/Localizable.xcstrings @@ -142,6 +142,53 @@ } } }, + "Back to Last Workspace" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Zurück zum letzten Arbeitsbereich" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Volver al último escritorio" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Revenir au dernier bureau" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "直前のワークスペースに戻る" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "마지막 워크스페이스로 돌아가기" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Voltar ao último espaço de trabalho" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "返回上一个工作区" + } + } + } + }, "Center Column" : { "extractionState" : "manual", "localizations" : { @@ -518,6 +565,53 @@ } } }, + "Even Out Columns on Screen" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Spalten auf dem Bildschirm angleichen" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Igualar las columnas en pantalla" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Égaliser les colonnes à l’écran" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "画面上の列を均等にする" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "화면의 열 너비 균등하게" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Igualar as colunas na tela" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "均分屏幕上的列" + } + } + } + }, "Focus" : { "extractionState" : "manual", "localizations" : { @@ -941,6 +1035,53 @@ } } }, + "Focus Previously Focused Window" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Zuvor fokussiertes Fenster fokussieren" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Enfocar la ventana anterior" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Revenir à la fenêtre précédente" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "直前のウインドウにフォーカス" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "이전에 포커스한 윈도우로" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Focar a janela anterior" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "聚焦上一个窗口" + } + } + } + }, "Focus Window Down" : { "extractionState" : "manual", "localizations" : { @@ -1129,6 +1270,53 @@ } } }, + "Make Window the Scratchpad" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Fenster zum Notizfenster machen" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Convertir la ventana en ventana rápida" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Faire de la fenêtre la fenêtre d’appoint" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "ウインドウをスクラッチパッドにする" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "윈도우를 스크래치패드로 지정" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Tornar a janela a janela rápida" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "将窗口设为草稿窗口" + } + } + } + }, "Move" : { "extractionState" : "manual", "localizations" : { @@ -1599,6 +1787,53 @@ } } }, + "Show or Hide Scratchpad" : { + "extractionState" : "manual", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Notizfenster ein- oder ausblenden" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Mostrar u ocultar la ventana rápida" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Afficher ou masquer la fenêtre d’appoint" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "スクラッチパッドを表示/非表示" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "스크래치패드 보기/가리기" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Mostrar ou ocultar a janela rápida" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "显示或隐藏草稿窗口" + } + } + } + }, "Show Shortcuts" : { "extractionState" : "manual", "localizations" : { diff --git a/Sources/GlideCore/RestartPlan.swift b/Sources/GlideCore/RestartPlan.swift new file mode 100644 index 0000000..75e062e --- /dev/null +++ b/Sources/GlideCore/RestartPlan.swift @@ -0,0 +1,86 @@ +import CoreGraphics + +/// What a window is, beyond its ID: its app and its title. Window IDs start over when the Mac +/// restarts, so this is how a saved layout finds its windows again. +public struct WindowIdentity: Codable, Equatable, Sendable { + public var window: WindowID + public var bundleID: String + public var title: String + + public init(window: WindowID, bundleID: String, title: String) { + self.window = window + self.bundleID = bundleID + self.title = title + } +} + +/// Puts windows back where they were before the Mac restarted, as they open again. Each window +/// that opens is matched to a saved one of the same app, by title first, then in the saved order, +/// and goes back next to whichever of its old neighbours are already back. +public struct RestartPlan: Sendable { + struct Entry: Sendable { + var identity: WindowIdentity + var display: String + var workspace: Int + /// Saved IDs of the other windows in its column. + var columnMates: [WindowID] + /// Saved IDs of the windows in the columns to its left, the nearest column first. + var leftWindows: [WindowID] + var widthIndex: Int + var isFullWidth: Bool + var customWidth: CGFloat? + } + + private var entries: [Entry] + /// Saved IDs to the IDs the windows have now. + private var found: [WindowID: WindowID] = [:] + /// Each display's workspace layouts and tiled column counts, to set before windows return. + public let layouts: [String: (layouts: [LayoutMode?], tiledColumns: [Int?])] + + /// nil if the snapshot has no identities, or no windows. + public init?(snapshot: StripSnapshot, mainDisplay: String) { + guard let identities = snapshot.identities else { return nil } + let byWindow = Dictionary(identities.map { ($0.window, $0) }, uniquingKeysWith: { first, _ in first }) + let displays = snapshot.displays ?? [StripSnapshot.DisplayState( + display: mainDisplay, workspaces: snapshot.workspaces ?? [.init(columns: snapshot.columns, focusedWindow: snapshot.focusedWindow)], + activeWorkspace: snapshot.activeWorkspace ?? 0)] + var entries: [Entry] = [] + var layouts: [String: (layouts: [LayoutMode?], tiledColumns: [Int?])] = [:] + for display in displays { + layouts[display.display] = (display.workspaces.map(\.layout), display.workspaces.map(\.tiledColumns)) + for (workspace, state) in display.workspaces.enumerated() { + for (index, column) in state.columns.enumerated() { + let left = state.columns[.. (display: String, departure: WorkspaceSet.Departure)? { + let sameApp = entries.indices.filter { entries[$0].identity.bundleID == bundleID } + guard let index = sameApp.first(where: { entries[$0].identity.title == title }) ?? sameApp.first else { return nil } + let entry = entries.remove(at: index) + found[entry.identity.window] = window + let found = found + let departure = WorkspaceSet.Departure( + workspace: entry.workspace, + sibling: entry.columnMates.first { found[$0] != nil }.flatMap { found[$0] }, + leftNeighbour: entry.leftWindows.first { found[$0] != nil }.flatMap { found[$0] }, + widthIndex: entry.widthIndex, isFullWidth: entry.isFullWidth, customWidth: entry.customWidth) + return (entry.display, departure) + } +} diff --git a/Sources/GlideCore/StripSnapshot.swift b/Sources/GlideCore/StripSnapshot.swift index 5636c87..804e6e0 100644 --- a/Sources/GlideCore/StripSnapshot.swift +++ b/Sources/GlideCore/StripSnapshot.swift @@ -66,8 +66,10 @@ public struct StripSnapshot: Codable, Equatable, Sendable { /// Windows the user floated, and floating-by-default windows the user tiled. public var userFloating: [WindowID] public var userTiled: [WindowID] - /// Window IDs are only unique until the Mac restarts, so a snapshot from an earlier boot is ignored. + /// Window IDs are only unique until the Mac restarts, so a snapshot from an earlier boot is + /// only found again through each window's app and title. nil in snapshots saved before that. public var bootTime: Date + public var identities: [WindowIdentity]? public init(strip: Strip, userFloating: Set, userTiled: Set, bootTime: Date) { columns = strip.columns.map(ColumnState.init) diff --git a/Sources/GlideCore/Workspace.swift b/Sources/GlideCore/Workspace.swift index c5d9fa9..ea25b27 100644 --- a/Sources/GlideCore/Workspace.swift +++ b/Sources/GlideCore/Workspace.swift @@ -39,6 +39,33 @@ public struct LayoutSettings: Equatable, Sendable { } public static let standard = LayoutSettings() + + /// The preset nearest half the screen, which new columns get. + public static func defaultWidthIndex(for presets: [CGFloat]) -> Int { + presets.indices.min { abs(presets[$0] - 0.5) < abs(presets[$1] - 0.5) } ?? 0 + } + + /// Width presets typed as percentages, e.g. "33, 50, 67, 100": sorted, without repeats. nil if + /// any is not a number from 10 to 100, or there are none or more than eight. + public static func widthPresets(from text: String) -> [CGFloat]? { + let parts = text.split { $0 == "," || $0 == " " || $0 == "%" || $0 == ";" } + var percents: [Double] = [] + for part in parts { + guard let value = Double(part), (10...100).contains(value) else { return nil } + percents.append(value) + } + let unique = Array(Set(percents.map { ($0 * 100).rounded() / 100 })).sorted() + guard (1...8).contains(unique.count) else { return nil } + return unique.map { CGFloat($0 / 100) } + } + + /// Presets as percentages for showing and editing, e.g. "33, 50, 67, 100". + public static func describe(widthPresets: [CGFloat]) -> String { + widthPresets.map { fraction in + let tenths = Int((fraction * 1000).rounded()) + return tenths % 10 == 0 ? "\(tenths / 10)" : "\(tenths / 10).\(tenths % 10)" + }.joined(separator: ", ") + } } /// Where a column sits relative to the viewport. @@ -303,6 +330,25 @@ public struct Workspace: Equatable, Sendable { return true } + /// Gives the columns on screen, even partly, equal widths that fill the screen together, and + /// scrolls them into view. Returns false with fewer than two on screen. + private mutating func evenOutColumnsOnScreen() -> Bool { + let before = widths() + let offsets = offsets(for: before) + let onScreen = strip.columns.indices.filter { + offsets[$0] + before[$0] > scrollOffset + 0.5 && offsets[$0] < scrollOffset + usableWidth - 0.5 + } + guard onScreen.count > 1, let first = onScreen.first else { return false } + let gaps = settings.gap * CGFloat(onScreen.count - 1) + let width = ((usableWidth - gaps) / CGFloat(onScreen.count)).rounded(.down) + for index in onScreen { + strip.setCustomWidth(width, forColumnOf: strip.columns[index].focusedWindow) + } + scrollOffset = self.offsets(for: widths())[first] + settleScroll() + return true + } + // MARK: Actions /// Applies a layout action. Returns false if it changed nothing or is not a layout action. @@ -336,6 +382,8 @@ public struct Workspace: Equatable, Sendable { let before = scrollOffset centerFocusedColumn() return scrollOffset != before + case .evenOutColumns: + return evenOutColumnsOnScreen() case .toggleLayout: toggleLayout() return true @@ -533,6 +581,10 @@ public struct Workspace: Equatable, Sendable { case .toggleFullWidth: isZoomed.toggle() return true + case .evenOutColumns: + guard tiledRatios != nil else { return false } + tiledRatios = nil + return true default: return nil } } diff --git a/Sources/GlideCore/WorkspaceSet.swift b/Sources/GlideCore/WorkspaceSet.swift index 8eb348f..7965094 100644 --- a/Sources/GlideCore/WorkspaceSet.swift +++ b/Sources/GlideCore/WorkspaceSet.swift @@ -7,6 +7,8 @@ public struct WorkspaceSet: Equatable, Sendable { public private(set) var workspaces: [Workspace] public private(set) var activeIndex = 0 + /// The workspace that was active before the current one. + public private(set) var lastIndex: Int? public init(viewport: CGRect, settings: LayoutSettings = .standard) { workspaces = Array(repeating: Workspace(viewport: viewport, settings: settings), count: Self.count) @@ -62,6 +64,7 @@ public struct WorkspaceSet: Equatable, Sendable { case .index(let index): index case .previous: activeIndex - 1 case .next: activeIndex + 1 + case .last: lastIndex ?? -1 } return workspaces.indices.contains(index) ? index : nil } @@ -70,6 +73,7 @@ public struct WorkspaceSet: Equatable, Sendable { @discardableResult public mutating func activate(_ index: Int) -> Bool { guard workspaces.indices.contains(index), index != activeIndex else { return false } + lastIndex = activeIndex activeIndex = index workspaces[index].settleScroll() return true @@ -124,6 +128,15 @@ public struct WorkspaceSet: Equatable, Sendable { public var widthIndex: Int public var isFullWidth: Bool public var customWidth: CGFloat? + + public init(workspace: Int, sibling: WindowID?, leftNeighbour: WindowID?, widthIndex: Int, isFullWidth: Bool, customWidth: CGFloat?) { + self.workspace = workspace + self.sibling = sibling + self.leftNeighbour = leftNeighbour + self.widthIndex = widthIndex + self.isFullWidth = isFullWidth + self.customWidth = customWidth + } } public func departure(of window: WindowID) -> Departure? { @@ -173,5 +186,6 @@ public struct WorkspaceSet: Equatable, Sendable { workspaces[index].settleScroll() } self.activeIndex = workspaces.indices.contains(activeIndex) ? activeIndex : 0 + lastIndex = nil } } diff --git a/Tests/GlideCoreTests/CommandNameTests.swift b/Tests/GlideCoreTests/CommandNameTests.swift new file mode 100644 index 0000000..7141d49 --- /dev/null +++ b/Tests/GlideCoreTests/CommandNameTests.swift @@ -0,0 +1,26 @@ +import XCTest +@testable import GlideCore + +final class CommandNameTests: XCTestCase { + func testCommandNames() { + XCTAssertEqual(Action.focusColumnLeft.commandName, "focus-column-left") + XCTAssertEqual(Action.focusWorkspace3.commandName, "focus-workspace-3") + XCTAssertEqual(Action.moveColumnToWorkspace9.commandName, "move-column-to-workspace-9") + XCTAssertEqual(Action.toggleOverview.commandName, "toggle-overview") + } + + func testEveryCommandNameReadsBack() { + let names = Action.allCases.map(\.commandName) + XCTAssertEqual(Set(names).count, names.count) + for action in Action.allCases { + XCTAssertEqual(Action(commandName: action.commandName), action) + } + } + + func testCommandNamesIgnoreCaseAndSeparators() { + XCTAssertEqual(Action(commandName: "Focus_Column_Left"), .focusColumnLeft) + XCTAssertEqual(Action(commandName: "focusWorkspace3"), .focusWorkspace3) + XCTAssertNil(Action(commandName: "focus-column")) + XCTAssertNil(Action(commandName: "")) + } +} diff --git a/Tests/GlideCoreTests/KeymapTests.swift b/Tests/GlideCoreTests/KeymapTests.swift index a1005fb..4f07dc0 100644 --- a/Tests/GlideCoreTests/KeymapTests.swift +++ b/Tests/GlideCoreTests/KeymapTests.swift @@ -118,6 +118,24 @@ final class KeymapTests: XCTestCase { XCTAssertEqual(Keymap(modifier: .option, storage: keymap.storage), keymap) } + func testLetterDirections() { + let defaults = Keymap.defaults(for: .controlOption, directions: .letters) + XCTAssertEqual(Set(defaults.values).count, defaults.count) + XCTAssertEqual(defaults[.focusColumnLeft]?.description, "⌃⌥H") + XCTAssertEqual(defaults[.focusWindowDown]?.description, "⌃⌥J") + XCTAssertEqual(defaults[.moveWindowUp]?.description, "⌃⌥⇧K") + XCTAssertEqual(defaults[.moveColumnRight]?.description, "⌃⌥⇧L") + XCTAssertEqual(defaults[.focusDisplayLeft]?.description, "⌃⌥⌘←", "Displays keep the arrows") + for (action, combo) in defaults { + XCTAssertEqual(ShortcutPolicy.evaluate(combo), .ok, "\(action) default \(combo) is flagged") + } + + var keymap = Keymap(modifier: .option) + keymap.setDirections(.letters) + XCTAssertEqual(keymap.combo(for: .focusColumnLeft), KeyCombo(KeyCode.h, .option)) + XCTAssertEqual(Keymap(modifier: .option, directions: .letters, storage: keymap.storage), keymap) + } + func testCarbonFlags() { XCTAssertEqual(KeyModifiers([.control, .option]).carbonFlags, 0x1800) XCTAssertEqual(KeyModifiers([.command, .shift]).carbonFlags, 0x0300) diff --git a/Tests/GlideCoreTests/RestartPlanTests.swift b/Tests/GlideCoreTests/RestartPlanTests.swift new file mode 100644 index 0000000..5d82b74 --- /dev/null +++ b/Tests/GlideCoreTests/RestartPlanTests.swift @@ -0,0 +1,79 @@ +import XCTest +@testable import GlideCore + +final class RestartPlanTests: XCTestCase { + private let viewport = CGRect(x: 0, y: 40, width: 1212, height: 800) + + /// Before the restart: workspace 1 holds [1] [2 over 3] [4], workspace 2 holds [5]. Windows 1 + /// and 4 are Safari, 2 and 3 Terminal, 5 Notes. + private func plan() -> RestartPlan { + var set = WorkspaceSet(viewport: viewport) + set.active.strip = Strip(columns: [Column(windows: [1], widthIndex: 0), Column(windows: [2, 3], widthIndex: 2), + Column(windows: [4], widthIndex: 1, isFullWidth: true)]) + set.activate(1) + set.active.strip = Strip(columns: [Column(windows: [5], widthIndex: 1)]) + set.activate(0) + set.active.layoutOverride = .tiled + var snapshot = StripSnapshot(displays: [("main", set)], userFloating: [], userTiled: [], bootTime: Date(timeIntervalSince1970: 0)) + snapshot.identities = [ + WindowIdentity(window: 1, bundleID: "safari", title: "News"), + WindowIdentity(window: 2, bundleID: "terminal", title: "zsh"), + WindowIdentity(window: 3, bundleID: "terminal", title: "vim"), + WindowIdentity(window: 4, bundleID: "safari", title: "Docs"), + WindowIdentity(window: 5, bundleID: "notes", title: "Notes"), + ] + return RestartPlan(snapshot: snapshot, mainDisplay: "main")! + } + + func testMatchesByTitleThenOrderAndFindsNeighbours() { + var plan = plan() + XCTAssertEqual(plan.layouts["main"]?.layouts.first, .tiled) + + // Docs opens first: its old left neighbours aren't back yet, so it goes first. + let docs = plan.claim(104, bundleID: "safari", title: "Docs") + XCTAssertEqual(docs?.display, "main") + XCTAssertEqual(docs?.departure.workspace, 0) + XCTAssertNil(docs?.departure.leftNeighbour) + XCTAssertEqual(docs?.departure.isFullWidth, true) + + // A Terminal window whose title changed takes the first Terminal place. + let shell = plan.claim(102, bundleID: "terminal", title: "ssh") + XCTAssertNil(shell?.departure.sibling) + XCTAssertEqual(shell?.departure.widthIndex, 2) + + let editor = plan.claim(103, bundleID: "terminal", title: "vim") + XCTAssertEqual(editor?.departure.sibling, 102, "Back in its stack") + + let news = plan.claim(101, bundleID: "safari", title: "Anything") + XCTAssertNil(news?.departure.leftNeighbour, "It was the first column") + + let notes = plan.claim(105, bundleID: "notes", title: "Notes") + XCTAssertEqual(notes?.departure.workspace, 1) + XCTAssertTrue(plan.isEmpty) + XCTAssertNil(plan.claim(106, bundleID: "notes", title: "Notes"), "Each place is handed out once") + } + + func testLeftNeighbourIsTheNearestOneBack() { + var plan = plan() + _ = plan.claim(101, bundleID: "safari", title: "News") + XCTAssertEqual(plan.claim(104, bundleID: "safari", title: "Docs")?.departure.leftNeighbour, 101, + "The Terminal column between them isn't back") + _ = plan.claim(102, bundleID: "terminal", title: "zsh") + XCTAssertNil(plan.claim(200, bundleID: "mail", title: "Inbox"), "Unknown apps aren't placed") + } + + func testRebuildsTheLayoutWithRejoin() { + var plan = plan() + var set = WorkspaceSet(viewport: viewport) + for (window, bundle, title) in [(104 as WindowID, "safari", "Docs"), (102, "terminal", "zsh"), (101, "safari", "News"), (103, "terminal", "vim")] { + let place = plan.claim(window, bundleID: bundle, title: title)! + set.rejoin(window, from: place.departure, focus: false) + } + XCTAssertEqual(set.active.strip.columns.map(\.windows), [[101], [102, 103], [104]]) + } + + func testNeedsIdentities() { + let snapshot = StripSnapshot(strip: Strip(columns: [Column(windows: [1], widthIndex: 1)]), userFloating: [], userTiled: [], bootTime: Date()) + XCTAssertNil(RestartPlan(snapshot: snapshot, mainDisplay: "main")) + } +} diff --git a/Tests/GlideCoreTests/WorkspaceSetTests.swift b/Tests/GlideCoreTests/WorkspaceSetTests.swift index fcc17d3..c41cc0e 100644 --- a/Tests/GlideCoreTests/WorkspaceSetTests.swift +++ b/Tests/GlideCoreTests/WorkspaceSetTests.swift @@ -29,6 +29,17 @@ final class WorkspaceSetTests: XCTestCase { XCTAssertEqual(set.workspaces[0].strip.windows, [1, 2, 3], "Other workspaces keep their windows") } + func testLastGoesBackAndForth() { + var set = set() + XCTAssertNil(set.resolve(.last), "Nothing to go back to yet") + set.activate(4) + XCTAssertEqual(set.resolve(.last), 0) + set.activate(0) + XCTAssertEqual(set.resolve(.last), 4) + set.restore(strips: [], activeIndex: 2) + XCTAssertNil(set.resolve(.last)) + } + func testResolvePreviousAndNextStopAtTheEnds() { var set = set() XCTAssertNil(set.resolve(.previous)) @@ -156,7 +167,8 @@ final class WorkspaceSetTests: XCTestCase { XCTAssertEqual(Action.moveColumnToWorkspace9.workspaceCommand?.movesWindow, true) XCTAssertEqual(Action.focusNextWorkspace.workspaceCommand?.target, .next) XCTAssertNil(Action.focusColumnLeft.workspaceCommand) - XCTAssertEqual(Action.allCases.filter { $0.group == .workspaces }.count, 24) + XCTAssertEqual(Action.allCases.filter { $0.group == .workspaces }.count, 25) + XCTAssertEqual(Action.focusLastWorkspace.workspaceCommand?.target, .last) XCTAssertEqual(Keymap.defaults[.focusWorkspace1], KeyCombo(18, [.control, .option])) XCTAssertEqual(Keymap.defaults[.moveColumnToWorkspace9], KeyCombo(25, [.control, .option, .shift])) XCTAssertEqual(Set(Keymap.defaults.values).count, Keymap.defaults.count, "No two actions share a default") diff --git a/Tests/GlideCoreTests/WorkspaceTests.swift b/Tests/GlideCoreTests/WorkspaceTests.swift index 38e2bbb..91eec19 100644 --- a/Tests/GlideCoreTests/WorkspaceTests.swift +++ b/Tests/GlideCoreTests/WorkspaceTests.swift @@ -120,6 +120,34 @@ final class WorkspaceTests: XCTestCase { XCTAssertEqual(frames(ws)[1]?.minX, 12 + 0 - 400) } + func testEvenOutColumnsOnScreen() { + var ws = workspace([[1], [2], [3], [4]], widths: [0, 1, 0, 1]) + // ⅓, ½ and part of the third ⅓ are on screen. + XCTAssertTrue(ws.perform(.evenOutColumns)) + XCTAssertEqual(ws.width(ofColumn: 0), 388) + XCTAssertEqual(ws.width(ofColumn: 1), 388) + XCTAssertEqual(ws.width(ofColumn: 2), 388) + XCTAssertEqual(ws.width(ofColumn: 3), 588, "Off screen, so untouched") + XCTAssertEqual(ws.scrollOffset, 0) + XCTAssertEqual(visibility(ws)[3], .visible) + + var single = workspace([[1]], widths: [1]) + XCTAssertFalse(single.perform(.evenOutColumns), "Nothing to even out") + } + + func testWidthPresetsFromText() { + XCTAssertEqual(LayoutSettings.widthPresets(from: "50, 25 100"), [0.25, 0.5, 1]) + XCTAssertEqual(LayoutSettings.widthPresets(from: "40%, 60%, 40"), [0.4, 0.6]) + XCTAssertNil(LayoutSettings.widthPresets(from: "")) + XCTAssertNil(LayoutSettings.widthPresets(from: "5, 50"), "Too narrow") + XCTAssertNil(LayoutSettings.widthPresets(from: "50, wide")) + XCTAssertNil(LayoutSettings.widthPresets(from: "10 20 30 40 50 60 70 80 90"), "Too many") + XCTAssertEqual(LayoutSettings.describe(widthPresets: LayoutSettings.standard.widthPresets), "33.3, 50, 66.7, 100") + XCTAssertEqual(LayoutSettings.widthPresets(from: LayoutSettings.describe(widthPresets: [0.25, 0.4])), [0.25, 0.4]) + XCTAssertEqual(LayoutSettings.defaultWidthIndex(for: [0.25, 0.4, 0.75, 1]), 1) + XCTAssertEqual(LayoutSettings.defaultWidthIndex(for: LayoutSettings.standard.widthPresets), 1) + } + func testCenterColumn() { var ws = workspace([[1], [2], [3]], widths: [0, 0, 0], focused: 0) XCTAssertTrue(ws.perform(.centerColumn)) diff --git a/changelog/CHANGELOG.de.md b/changelog/CHANGELOG.de.md index 4aeec20..3f64c7e 100644 --- a/changelog/CHANGELOG.de.md +++ b/changelog/CHANGELOG.de.md @@ -2,6 +2,20 @@ Neuigkeiten in jeder Version von Glide für Mac. Glide zeigt die neuen Einträge einmal nach einem Update an, und die Hinweise zu jedem Release auf GitHub stammen von hier. Dies ist eine Übersetzung von CHANGELOG.md, das Original ist die englische Datei. +## 0.12.0 — 2026-10-30 + +### Neu + +- **Hin und zurück.** ⌃⌥\` springt zurück zum Fenster, in dem du vorher warst, auf jedem Arbeitsbereich und Bildschirm, und ⌃⌥⇥ zum letzten Arbeitsbereich. Nochmal drücken, und du bist wieder da. +- **H J K L für Richtungen.** Einstellungen › Tastenkürzel › Richtungstasten ersetzt die Pfeiltasten der Fokus- und Verschiebe-Tastenkürzel durch H, J, K und L, wie in vim. Die Tastenkürzel für Bildschirme behalten die Pfeiltasten. +- **Eigene Spaltenbreiten.** Einstellungen › Allgemein › Spaltenbreiten nimmt die Breiten, die ⌃⌥R durchläuft, in Prozent des Bildschirms. Neue Fenster öffnen mit der Breite, die 50 am nächsten liegt. +- **Spalten auf dem Bildschirm angleichen.** ⌃⌥E gibt den Spalten auf dem Bildschirm, auch teilweise sichtbaren, gleiche Breiten, die ihn zusammen füllen. Gekachelt setzt es die Teilungen zurück. +- **Fokus folgt der Maus,** wenn du es unter Einstellungen › Allgemein einschaltest. Ruht der Zeiger auf einem gekachelten Fenster, das ganz zu sehen ist, wird es fokussiert; schwebende Fenster, Menüs und das Dock bleiben unberührt. +- **Notizfenster.** ⌃⌥⇧S macht das fokussierte Fenster (ein Terminal, Notizen, einen Chat) zum Notizfenster und blendet es aus. ⌃⌥S holt es hervor, schwebend in der Mitte des Bildschirms, und blendet es wieder aus. +- **Befehlszeile und Links.** `glide focus-workspace 3` oder ein Link wie glide://focus-workspace-3 führt jede Aktion aus, aus Skripten, Raycast, Alfred, Stream Deck oder Kurzbefehlen. Einstellungen › Allgemein › Befehlszeilenprogramm kopiert den Befehl, der `glide` installiert. +- **Dein Layout kommt nach einem Neustart zurück.** Glide erkennt Fenster nach einem Neustart des Mac jetzt an App und Titel wieder und setzt jedes beim Öffnen zurück auf seinen Arbeitsbereich, mit seiner Breite und in seinen Stapel. +- **Einstellungen exportieren und importieren.** Einstellungen › Allgemein › Einstellungsdatei speichert Tastenkürzel, App-Regeln, Layout und Darstellung als lesbare JSON-Datei und lädt sie auf einem anderen Mac. + ## 0.11.2 — 2026-10-30 ### Neu diff --git a/changelog/CHANGELOG.es.md b/changelog/CHANGELOG.es.md index 12fdf69..96e4b21 100644 --- a/changelog/CHANGELOG.es.md +++ b/changelog/CHANGELOG.es.md @@ -2,6 +2,20 @@ Novedades de cada versión de Glide para Mac. Glide muestra las entradas nuevas una sola vez tras actualizarse, y las notas de cada versión en GitHub salen de aquí. Esta es una traducción de CHANGELOG.md, que es el original. +## 0.12.0 — 2026-10-30 + +### Novedades + +- **Ir y volver.** ⌃⌥\` vuelve a la ventana en la que estabas antes, en cualquier escritorio o pantalla, y ⌃⌥⇥ al último escritorio. Pulsa cualquiera otra vez para regresar. +- **H J K L para las direcciones.** Ajustes › Atajos › Teclas de dirección cambia las flechas de los atajos de enfocar y mover por H, J, K y L, como en vim. Los atajos de pantallas siguen con las flechas. +- **Tus propios anchos de columna.** Ajustes › General › Anchos de columna acepta los anchos que recorre ⌃⌥R, en porcentaje de la pantalla. Las ventanas nuevas se abren con el más cercano a 50. +- **Iguala las columnas en pantalla.** ⌃⌥E da a las columnas que se ven, aunque sea en parte, el mismo ancho para que llenen juntas la pantalla. En el layout en mosaico, restablece las divisiones. +- **El foco sigue al ratón,** si lo activas en Ajustes › General. Al dejar el puntero sobre una ventana en mosaico que se ve entera, se enfoca; las ventanas flotantes, los menús y el Dock no se tocan. +- **Ventana rápida.** ⌃⌥⇧S convierte la ventana enfocada (un terminal, notas, un chat) en la ventana rápida y la oculta. ⌃⌥S la muestra, flotando en el centro de la pantalla, y la vuelve a ocultar. +- **Línea de comandos y enlaces.** `glide focus-workspace 3`, o un enlace glide://focus-workspace-3, ejecuta cualquier acción desde scripts, Raycast, Alfred, Stream Deck o Atajos. Ajustes › General › Herramienta de línea de comandos copia el comando que instala `glide`. +- **Tu layout vuelve tras reiniciar.** Glide ahora reconoce las ventanas por su app y su título después de reiniciar el Mac, y devuelve cada una a su escritorio, con su ancho y en su pila, a medida que se abre. +- **Exporta e importa los ajustes.** Ajustes › General › Archivo de ajustes guarda los atajos, las reglas de apps, el layout y la apariencia en un archivo JSON legible, y lo carga en otro Mac. + ## 0.11.2 — 2026-10-30 ### Novedades diff --git a/changelog/CHANGELOG.fr.md b/changelog/CHANGELOG.fr.md index 308ab21..998da61 100644 --- a/changelog/CHANGELOG.fr.md +++ b/changelog/CHANGELOG.fr.md @@ -2,6 +2,20 @@ Ce fichier est la traduction française de CHANGELOG.md, qui reste l’original. Il présente les nouveautés de chaque version de Glide pour Mac. Glide affiche les nouvelles entrées une seule fois après une mise à jour, et les notes de chaque version sur GitHub en sont issues. +## 0.12.0 — 2026-10-30 + +### Nouveautés + +- **Aller-retour.** ⌃⌥\` revient à la fenêtre où vous étiez avant, sur n’importe quel bureau ou écran, et ⌃⌥⇥ au dernier bureau. Appuyez de nouveau pour revenir. +- **H J K L pour les directions.** Réglages › Raccourcis › Touches de direction remplace les flèches des raccourcis d’activation et de déplacement par H, J, K et L, comme dans vim. Les raccourcis des écrans gardent les flèches. +- **Vos propres largeurs de colonne.** Réglages › Général › Largeurs de colonne accepte les largeurs que ⌃⌥R parcourt, en pourcentage de l’écran. Les nouvelles fenêtres s’ouvrent avec la plus proche de 50. +- **Égalisez les colonnes à l’écran.** ⌃⌥E donne aux colonnes visibles, même en partie, la même largeur pour qu’elles remplissent l’écran ensemble. En disposition en mosaïque, il réinitialise les séparations. +- **Le focus suit la souris,** si vous l’activez dans Réglages › Général. Laisser le pointeur sur une fenêtre en mosaïque entièrement visible l’active ; les fenêtres flottantes, les menus et le Dock ne sont pas concernés. +- **Fenêtre d’appoint.** ⌃⌥⇧S fait de la fenêtre active (un terminal, des notes, une messagerie) la fenêtre d’appoint et la masque. ⌃⌥S l’affiche, flottante au milieu de l’écran, et la masque de nouveau. +- **Ligne de commande et liens.** `glide focus-workspace 3`, ou un lien glide://focus-workspace-3, lance n’importe quelle action depuis des scripts, Raycast, Alfred, Stream Deck ou Raccourcis. Réglages › Général › Outil en ligne de commande copie la commande qui installe `glide`. +- **Votre disposition revient après un redémarrage.** Glide retrouve désormais les fenêtres par leur app et leur titre après le redémarrage du Mac, et remet chacune sur son bureau, à sa largeur et dans sa pile à mesure qu’elle s’ouvre. +- **Exportez et importez vos réglages.** Réglages › Général › Fichier de réglages enregistre raccourcis, règles d’apps, disposition et apparence dans un fichier JSON lisible, et le charge sur un autre Mac. + ## 0.11.2 — 2026-10-30 ### Nouveautés diff --git a/changelog/CHANGELOG.ja.md b/changelog/CHANGELOG.ja.md index b1add80..8af71be 100644 --- a/changelog/CHANGELOG.ja.md +++ b/changelog/CHANGELOG.ja.md @@ -2,6 +2,20 @@ Glide for Macの各バージョンの新機能です。このファイルは、原文であるCHANGELOG.mdの日本語訳です。 +## 0.12.0 — 2026-10-30 + +### 新機能 + +- **行ったり来たり。** ⌃⌥\` で直前にいたウインドウに、どのワークスペースやディスプレイでも戻れます。⌃⌥⇥ で直前のワークスペースに戻ります。もう一度押すと元に戻ります。 +- **方向にH J K L。** 設定 › ショートカット › 方向キー で、フォーカスと移動のショートカットの矢印キーをvimと同じH、J、K、Lに替えられます。ディスプレイのショートカットは矢印キーのままです。 +- **列の幅を自由に。** 設定 › 一般 › 列の幅 で、⌃⌥R で切り替わる幅を画面に対する割合で指定できます。新しいウインドウは50に最も近い幅で開きます。 +- **画面上の列を均等に。** ⌃⌥E で、一部でも画面に見えている列を同じ幅にして、画面いっぱいに並べます。タイル表示では分割をリセットします。 +- **マウスの位置にフォーカス。** 設定 › 一般 でオンにすると、画面に全体が表示されているタイルウインドウにポインタを置くだけでフォーカスします。フローティングウインドウ、メニュー、Dockは対象外です。 +- **スクラッチパッド。** ⌃⌥⇧S でフォーカス中のウインドウ(ターミナル、メモ、チャットなど)をスクラッチパッドにして隠します。⌃⌥S で画面中央にフローティング表示し、もう一度押すと隠れます。 +- **コマンドラインとリンク。** `glide focus-workspace 3` や glide://focus-workspace-3 のリンクで、スクリプト、Raycast、Alfred、Stream Deck、ショートカットからどのアクションでも実行できます。設定 › 一般 › コマンドラインツール で `glide` をインストールするコマンドをコピーできます。 +- **再起動後もレイアウトが戻ります。** Macを再起動したあと、Glideはウインドウをアプリとタイトルで見つけ直し、開いた順にそれぞれ元のワークスペース、幅、スタックに戻します。 +- **設定の書き出しと読み込み。** 設定 › 一般 › 設定ファイル で、ショートカット、Appルール、レイアウト、外観を読みやすいJSONファイルに保存し、別のMacで読み込めます。 + ## 0.11.2 — 2026-10-30 ### 新機能 diff --git a/changelog/CHANGELOG.ko.md b/changelog/CHANGELOG.ko.md index 646140c..7a558fe 100644 --- a/changelog/CHANGELOG.ko.md +++ b/changelog/CHANGELOG.ko.md @@ -2,6 +2,20 @@ Mac용 Glide의 버전별 새로운 기능입니다. 이 파일은 CHANGELOG.md의 한국어 번역이며, 원본은 CHANGELOG.md입니다. Glide는 업데이트 후 새 항목을 한 번 보여 줍니다. +## 0.12.0 — 2026-10-30 + +### 새 기능 + +- **앞뒤로 오가기.** ⌃⌥\`는 어느 워크스페이스나 디스플레이에 있든 직전에 있던 윈도우로, ⌃⌥⇥는 마지막 워크스페이스로 돌아갑니다. 다시 누르면 원래대로 돌아옵니다. +- **방향에 H J K L.** 설정 › 단축키 › 방향 키에서 포커스와 이동 단축키의 화살표를 vim처럼 H, J, K, L로 바꿀 수 있습니다. 디스플레이 단축키는 화살표를 그대로 씁니다. +- **원하는 열 너비.** 설정 › 일반 › 열 너비에서 ⌃⌥R로 순환하는 너비를 화면에 대한 백분율로 정할 수 있습니다. 새 윈도우는 50에 가장 가까운 너비로 열립니다. +- **화면의 열 너비 균등하게.** ⌃⌥E는 일부라도 화면에 보이는 열들을 같은 너비로 맞춰 함께 화면을 채웁니다. 타일 레이아웃에서는 분할을 초기화합니다. +- **마우스를 따라 포커스.** 설정 › 일반에서 켜면, 화면에 전부 보이는 타일 윈도우 위에 포인터를 두기만 해도 포커스됩니다. 플로팅 윈도우, 메뉴, Dock은 그대로 둡니다. +- **스크래치패드.** ⌃⌥⇧S는 포커스된 윈도우(터미널, 메모, 채팅 등)를 스크래치패드로 지정하고 가립니다. ⌃⌥S는 화면 가운데에 플로팅으로 보여 주고, 다시 누르면 가립니다. +- **명령줄과 링크.** `glide focus-workspace 3`이나 glide://focus-workspace-3 링크로 스크립트, Raycast, Alfred, Stream Deck, 단축어에서 어떤 동작이든 실행할 수 있습니다. 설정 › 일반 › 명령줄 도구에서 `glide`를 설치하는 명령을 복사할 수 있습니다. +- **재시동 후에도 레이아웃이 돌아옵니다.** Mac을 재시동한 뒤 Glide가 앱과 제목으로 윈도우를 다시 찾아, 열리는 대로 각각 원래 워크스페이스, 너비, 스택으로 되돌립니다. +- **설정 내보내기와 가져오기.** 설정 › 일반 › 설정 파일에서 단축키, 앱 규칙, 레이아웃, 모양을 읽기 쉬운 JSON 파일로 저장하고 다른 Mac에서 불러올 수 있습니다. + ## 0.11.2 — 2026-10-30 ### 새 기능 diff --git a/changelog/CHANGELOG.pt-BR.md b/changelog/CHANGELOG.pt-BR.md index 25ae037..9e5d116 100644 --- a/changelog/CHANGELOG.pt-BR.md +++ b/changelog/CHANGELOG.pt-BR.md @@ -2,6 +2,20 @@ Novidades de cada versão do Glide para Mac. O Glide mostra as novas entradas uma vez após se atualizar, e as notas de cada versão no GitHub vêm daqui, então escreva para quem usa o Glide. Adicione uma entrada para cada mudança que vale a pena conhecer na próxima versão antes de criar a tag. Esta é uma tradução de CHANGELOG.md, que é o original. +## 0.12.0 — 2026-10-30 + +### Novidades + +- **Ir e voltar.** ⌃⌥\` volta para a janela em que você estava antes, em qualquer espaço de trabalho ou tela, e ⌃⌥⇥ para o último espaço de trabalho. Aperte de novo para retornar. +- **H J K L para as direções.** Ajustes › Atalhos › Teclas de direção troca as setas dos atalhos de focar e mover por H, J, K e L, como no vim. Os atalhos de telas continuam com as setas. +- **Suas próprias larguras de coluna.** Ajustes › Geral › Larguras de coluna aceita as larguras que ⌃⌥R percorre, em porcentagem da tela. Janelas novas abrem com a mais próxima de 50. +- **Iguale as colunas na tela.** ⌃⌥E dá às colunas que aparecem na tela, mesmo em parte, a mesma largura para que juntas preencham a tela. No layout em blocos, redefine as divisões. +- **O foco segue o mouse,** se você ativar em Ajustes › Geral. Deixar o ponteiro sobre uma janela em mosaico que aparece inteira a foca; janelas flutuantes, menus e o Dock ficam de fora. +- **Janela rápida.** ⌃⌥⇧S transforma a janela focada (um terminal, notas, um chat) na janela rápida e a oculta. ⌃⌥S a mostra, flutuando no meio da tela, e a oculta de novo. +- **Linha de comando e links.** `glide focus-workspace 3`, ou um link glide://focus-workspace-3, executa qualquer ação a partir de scripts, Raycast, Alfred, Stream Deck ou Atalhos. Ajustes › Geral › Ferramenta de linha de comando copia o comando que instala o `glide`. +- **Seu layout volta depois de reiniciar.** O Glide agora reconhece as janelas pelo app e pelo título depois que o Mac reinicia, e devolve cada uma ao seu espaço de trabalho, com sua largura e na sua pilha, conforme abre. +- **Exporte e importe os ajustes.** Ajustes › Geral › Arquivo de ajustes salva atalhos, regras de apps, layout e aparência em um arquivo JSON legível, e o carrega em outro Mac. + ## 0.11.2 — 2026-10-30 ### Novidades diff --git a/changelog/CHANGELOG.zh-Hans.md b/changelog/CHANGELOG.zh-Hans.md index 3c89f19..316e523 100644 --- a/changelog/CHANGELOG.zh-Hans.md +++ b/changelog/CHANGELOG.zh-Hans.md @@ -2,6 +2,20 @@ 这里记录了 Glide for Mac 每个版本的新变化。Glide 会在更新后显示一次新增的条目,GitHub 上每个版本的说明也来自这里,所以请以 Glide 用户的角度来写。本文件是 CHANGELOG.md 的译文,CHANGELOG.md 才是原文。每次发布前,请在下一个版本下为每项值得了解的改动添加一条记录。 +## 0.12.0 — 2026-10-30 + +### 新增 + +- **来回切换。** ⌃⌥\` 返回你之前所在的窗口,无论它在哪个工作区或显示器上;⌃⌥⇥ 返回上一个工作区。再按一次即可回来。 +- **用 H J K L 表示方向。** 设置 › 快捷键 › 方向键 可将聚焦和移动快捷键中的箭头键换成 H、J、K、L,与 vim 相同。显示器快捷键仍使用箭头键。 +- **自定列宽。** 设置 › 通用 › 列宽 可设定 ⌃⌥R 循环切换的宽度,以屏幕百分比表示。新窗口以最接近 50 的宽度打开。 +- **均分屏幕上的列。** ⌃⌥E 让屏幕上可见(哪怕只露出一部分)的列宽度相同,并一起填满屏幕。在平铺布局中,它会重置分割比例。 +- **焦点跟随鼠标,** 可在 设置 › 通用 中打开。指针停在完整显示在屏幕上的平铺窗口上时就会聚焦它;浮动窗口、菜单和程序坞不受影响。 +- **草稿窗口。** ⌃⌥⇧S 将当前聚焦的窗口(终端、笔记、聊天等)设为草稿窗口并隐藏。⌃⌥S 让它浮动显示在屏幕中央,再按一次则隐藏。 +- **命令行和链接。** `glide focus-workspace 3` 或 glide://focus-workspace-3 链接可以从脚本、Raycast、Alfred、Stream Deck 或“快捷指令”运行任何操作。设置 › 通用 › 命令行工具 会拷贝安装 `glide` 的命令。 +- **重新启动后布局会恢复。** Mac 重新启动后,Glide 现在会按 App 和标题重新找到窗口,并在窗口打开时将其放回原来的工作区、宽度和堆叠中。 +- **导出和导入设置。** 设置 › 通用 › 设置文件 可将快捷键、App 规则、布局和外观存为易读的 JSON 文件,并在另一台 Mac 上载入。 + ## 0.11.2 — 2026-10-30 ### 新增 diff --git a/project.yml b/project.yml index 7441c6a..560979b 100644 --- a/project.yml +++ b/project.yml @@ -12,8 +12,8 @@ settings: SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY: YES CODE_SIGN_STYLE: Automatic DEVELOPMENT_TEAM: 435MC3786D - MARKETING_VERSION: "0.11.2" - CURRENT_PROJECT_VERSION: "17" + MARKETING_VERSION: "0.12.0" + CURRENT_PROJECT_VERSION: "18" ENABLE_HARDENED_RUNTIME: YES SWIFT_EMIT_LOC_STRINGS: YES LOCALIZATION_PREFERS_STRING_CATALOGS: YES