Skip to content

Commit c81a91a

Browse files
codekilnclaude
andcommitted
refactor: move tmux prefix to tmux/Prefix, add window pages
Replace [[tmux/Keyshort/Prefix]] with [[tmux/Prefix]] across Q pages and keyshorts; add tmux/Prefix, tmux/Command/last-window, tmux/Keyshort/Window/Last Window, and oh-my-tmux navigate pages. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 16d5a83 commit c81a91a

15 files changed

Lines changed: 89 additions & 32 deletions
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# [[Keyshort]]s related to Window Navigation in oh-my-tmux
2+
- ## [[oh-my-tmux/Keyshort]] Navigate to [[tmux/Window]] to the Left [[card]]
3+
card-last-score:: 5
4+
card-repeats:: 4
5+
card-next-schedule:: 2026-05-25T23:41:46.072Z
6+
card-last-interval:: 33.64
7+
card-ease-factor:: 2.9
8+
card-last-reviewed:: 2026-04-22T08:41:46.073Z
9+
- Shortcut: `<prefix> Ctrl-h`
10+
- Description: Focuses the window to the left of the current window in the session. This is an [[oh-my-tmux]] binding that replaces the default `<prefix> p`.
11+
- Note: Easily confused with `<prefix> h` which navigates **panes** (not windows) — see [[tmux/Keyshort/Pane/Navigate Panes Vim-style]]
12+
- ## [[oh-my-tmux/Keyshort]] Navigate to [[tmux/Window]] just to the Right [[card]]
13+
card-last-score:: 1
14+
card-repeats:: 1
15+
card-next-schedule:: 2026-06-19T04:00:00.000Z
16+
card-last-interval:: -1
17+
card-ease-factor:: 2.66
18+
card-last-reviewed:: 2026-06-18T07:28:16.111Z
19+
- Shortcut: `<prefix> Ctrl-l`
20+
- Description: Focuses the window to the right of the current window in the session. This is an [[oh-my-tmux]] binding that replaces the default `<prefix> n`.
21+
- Note: Easily confused with `<prefix> l` which navigates **panes** (not windows) — see [[tmux/Keyshort/Pane/Navigate Panes Vim-style]]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Select the last (previously active) window in the current session.
2+
- Switches back to whichever window was active before the current one, toggling between two windows.
3+
- Default binding: `<prefix> l` (may be overridden by [[oh-my-tmux]])
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- [[Keyshort]] [[tmux]] [[tmux/Keyshort]] [[tmux/Keyshort/Window]]
2+
- What is the [[tmux/Command]] and `<tmux-prefix>` [[tmux/Keyshort]]? [[card]]
3+
- [[My Answer]]
4+
- [[tmux/Command/last-window]]
5+
- `<tmux-prefix> l`
6+
- it toggles back and forth between two tmux windows.
Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
- [[Keyshort]] [[tmux]] [[tmux/Keyshort]] [[tmux/Keyshort/Window]]
2-
- **Navigate to Window to the Left** #card
3-
card-last-interval:: 33.64
4-
card-repeats:: 4
5-
card-ease-factor:: 2.9
6-
card-next-schedule:: 2026-05-25T23:41:46.072Z
7-
card-last-reviewed:: 2026-04-22T08:41:46.073Z
8-
card-last-score:: 5
9-
- Shortcut: `<prefix> Ctrl-h`
10-
- Description: Focuses the window to the left of the current window in the session. This is an [[oh-my-tmux]] binding that replaces the default `<prefix> p`.
11-
- Note: Easily confused with `<prefix> h` which navigates **panes** (not windows) — see [[tmux/Keyshort/Pane/Navigate Panes Vim-style]]
12-
- **Navigate to the Window just to the Right in [[oh-my-tmux]]** #card
13-
card-last-score:: 3
14-
card-repeats:: 4
15-
card-next-schedule:: 2026-05-13T14:29:09.266Z
16-
card-last-interval:: 28.3
17-
card-ease-factor:: 2.66
18-
card-last-reviewed:: 2026-04-15T07:29:09.267Z
19-
- Shortcut: `<prefix> Ctrl-l`
20-
- Description: Focuses the window to the right of the current window in the session. This is an [[oh-my-tmux]] binding that replaces the default `<prefix> n`.
21-
- Note: Easily confused with `<prefix> l` which navigates **panes** (not windows) — see [[tmux/Keyshort/Pane/Navigate Panes Vim-style]]
1+
## [[tmux]] [[Keyshort]] navigate to window to the left [[card]]
2+
- [[tmux/Prefix]] `p`
3+
- # [[tmux]] [[Keyshort]] navigate to [[tmux/Window]] to the right [[card]]
4+
- [[tmux/Prefix]] `n`
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
logseq-entity:: [[Logseq/Entity/Question]], [[Logseq/Entity/Card]]
22

33
- # How do I display each pane number? [[card]]
4-
- [[tmux/Keyshort/Prefix]] `q`
4+
- [[tmux/Prefix]] `q`

pages/tmux___Prefix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alias:: [[tmux/Keyshort/Prefix]]

pages/tmux___Q___How can I find all keyshorts including custom keybindings%3F.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ logseq-entity:: [[Logseq/Entity/Question]]
88
- My favorite way - at the CLI, pipe list-keys into [[bat]]
99
- `tmux list-keys | bat`
1010
- inside of tmux
11-
- open the [[tmux/Command/Prompt]] with [[tmux/Keyshort/Prefix]] `:`
11+
- open the [[tmux/Command/Prompt]] with [[tmux/Prefix]] `:`
1212
- enter `list-keys`
1313
- hit `Enter` to get out
1414
- [[My Notes]]
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
logseq-entity:: [[Logseq/Entity/Question]]
2+
see-also:: [[tmux/Option/mode-keys]], [[tmux/Option/status-keys]]
3+
4+
- # How can I query the current value of a [[tmux]] option?
5+
- ## [[AI Answer]]
6+
- **Short answer:** Use `tmux show-options` for session options and `tmux show-window-options` for window options; add `-g` to query the global (default) value.
7+
- ### Option types and their query commands
8+
- [[tmux]] options fall into two main scopes:
9+
- | Scope | Command | Example option |
10+
|-------|---------|----------------|
11+
| Session | `show-options` (alias `show`) | `status-keys` |
12+
| Window | `show-window-options` (alias `showw`) | `mode-keys` |
13+
- ### Query a specific option
14+
- ~~~sh
15+
# Session option — controls status-bar / command-prompt key mode
16+
tmux show-options -g status-keys
17+
# → status-keys vi
18+
19+
# Window option — controls copy-mode key bindings
20+
tmux show-window-options -g mode-keys
21+
# → mode-keys vi
22+
~~~
23+
- The `-g` flag reads the **global** (config-level) default. Omit `-g` inside a tmux session to read the current session or window value, which may differ if overridden at runtime.
24+
- ### Show only the value (no key name)
25+
- ~~~sh
26+
tmux show-options -gv status-keys
27+
# → vi
28+
~~~
29+
- ### Query from the tmux command prompt
30+
- Press `Prefix + :` to open the tmux command prompt and enter:
31+
- ~~~
32+
show-options -g status-keys
33+
show-window-options -g mode-keys
34+
~~~
35+
- ### Show all options at once
36+
- ~~~sh
37+
tmux show-options -g # all global session options
38+
tmux show-window-options -g # all global window options
39+
~~~
40+
- ### Sources
41+
- [tmux(1) man page — show-options](https://man.openbsd.org/tmux.1)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
logseq-entity:: [[Logseq/Entity/Question]], [[Logseq/Entity/Card]]
22

33
- # What is the [[tmux/Keyshort]] to display the current time in the active [[tmux/Pane]]? [[card]]
4-
- [[tmux/Keyshort/Prefix]] + `t`
4+
- [[tmux/Prefix]] + `t`

pages/tmux___Q___How do I activate M-1 through M-7 to select a tmux pane layout%3F.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
logseq-entity:: [[Logseq/Entity/Question]]
22

3-
- # How do I activate [[Key/Meta]] 1 through [[Key/Meta]] 7 to select a [[tmux/Pane]] layout?
3+
- # How do I activate to select a [[tmux/Pane]] layout?
4+
- ## [[My Answer]]
5+
- use [[Key/Meta]] 1 through [[Key/Meta]] 7
46
- ## [[AI Answer]]
5-
- **Short answer:** `M-` means **Meta** = `Alt`/`Option` (not `Cmd`). After pressing your prefix, press `Option+1` through `Option+7`.
7+
- **Short answer:** `M-` means [[Key/Meta]] = `Alt`/`Option` (not `Cmd`). After pressing your prefix, press `Option+1` through `Option+7`.
68
- ### Why `Cmd` doesn't work
79
- In [[tmux]] binding notation, `M-` is the **Meta** modifier, which maps to `Alt` (or `Option` on macOS) — not `Command`. `Prefix Cmd+1` sends a key tmux does not recognize for these bindings.
810
- ### Default layout bindings (`-T prefix`)

0 commit comments

Comments
 (0)