diff --git a/CHANGELOG.md b/CHANGELOG.md index 79ad7de..49de299 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.1.0] - 2026-07-01 + +### Added +- Settings now has an **Enabled** checkbox for the global hotkey. Clearing it + turns the hotkey off immediately and disables the shortcut-capture box; the + choice persists across restarts, and the stored chord is kept so re-enabling + restores it. The Reset button turns the hotkey back on and restores the + Ctrl+Alt+S default. + ## [1.0.4] - 2026-06-10 ### Changed diff --git a/Directory.Build.props b/Directory.Build.props index a8a6205..d422903 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -22,4 +22,15 @@ + + + + + diff --git a/README.md b/README.md index 4bd1c95..d7b13b3 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ The v1 feature set: colours, spinners, progress bars and interactive prompts all work — watch it live, and keep a clean, searchable plain-text run history you can replay. Per-CLI shell, executable path and working directory configure how runs launch. -- Global hotkey (default **Ctrl+Alt+S**, rebindable), system tray with +- Global hotkey (default **Ctrl+Alt+S**, rebindable, and switchable off), system tray with configurable close-to-tray, Light/Dark/System theme, and per-write plus pre-update store backups. - Migrate from SnipCommand with the [`snipdeck-importer`](tools/Snipdeck.Importer) diff --git a/src/Snipdeck.App/App.xaml.cs b/src/Snipdeck.App/App.xaml.cs index bdffb2e..9696c8e 100644 --- a/src/Snipdeck.App/App.xaml.cs +++ b/src/Snipdeck.App/App.xaml.cs @@ -94,7 +94,10 @@ private void InitialiseHotkey(AppConfig config) { _hotkey = Services.GetRequiredService(); _hotkey.Pressed += OnHotkeyPressed; - _ = _hotkey.TryRegister(config.Hotkey); + if (config.HotkeyEnabled) + { + _ = _hotkey.TryRegister(config.Hotkey); + } } private void OnTrayShowRequested(object? sender, EventArgs e) => BringToFront(); diff --git a/src/Snipdeck.App/Views/ShellPage.xaml b/src/Snipdeck.App/Views/ShellPage.xaml index 32b4544..15ed934 100644 --- a/src/Snipdeck.App/Views/ShellPage.xaml +++ b/src/Snipdeck.App/Views/ShellPage.xaml @@ -310,12 +310,17 @@ TextWrapping="Wrap" MaxWidth="200" Visibility="{x:Bind HotkeyError, Mode=OneWay, Converter={StaticResource EmptyStringToVisibility}}" /> + + Command="{x:Bind RebindHotkeyCommand}" + IsEnabled="{x:Bind HotkeyEnabled, Mode=OneWay}" />