From 2f22c3950a39eb517c68660f3316f9d1c99999a1 Mon Sep 17 00:00:00 2001 From: richardkeep Date: Sat, 31 Oct 2026 23:56:29 +0300 Subject: [PATCH 1/3] feat: collapse the sidebar with cmd/ctrl+b --- KNOWLEDGE_BASE.md | 1 + resources/js/components/app-nav.tsx | 11 ++++++--- .../components/keyboard-shortcuts-dialog.tsx | 4 ++++ resources/js/hooks/use-keyboard-shortcuts.ts | 24 +++++++++++++++++++ 4 files changed, 37 insertions(+), 3 deletions(-) diff --git a/KNOWLEDGE_BASE.md b/KNOWLEDGE_BASE.md index 60159b584..e8bd9e11e 100644 --- a/KNOWLEDGE_BASE.md +++ b/KNOWLEDGE_BASE.md @@ -503,6 +503,7 @@ Press **?** to open the shortcut reference. Navigation shortcuts work outside te | `s` | Star or unstar the focused commit. | | `c` | Write a commit. | | `⌘/Ctrl+K` or `/` | Search developers and commits. | +| `⌘/Ctrl+B` | Collapse or expand the sidebar on wide screens. | | `⌘/Ctrl+Enter` | Submit from the composer. | | `⌘/Ctrl+Shift+P` | Toggle composer preview. | | `g` then `l` / `e` / `p` / `s` / `n` / `m` / `*` | Go to your log / Trending / profile / settings / Notifications / Remotes / Starred. `g m` works only while Remotes is on. | diff --git a/resources/js/components/app-nav.tsx b/resources/js/components/app-nav.tsx index 37d44786b..2ca38f32c 100644 --- a/resources/js/components/app-nav.tsx +++ b/resources/js/components/app-nav.tsx @@ -377,7 +377,11 @@ export function AppNav({