peekme 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.2 (2026-09-28)
4
+
5
+ - Option+P works on a Mac as it is. Mac terminals send Option+P as `π`, and peekme now takes
6
+ that as the shortcut, like Claude Code does. Before, you had to set Option to act as Meta in
7
+ the terminal. Also over SSH from Terminal or iTerm2.
8
+ - On macOS peekme finds the running Claude Code session exactly. Before, it took the newest
9
+ session in the directory, which is wrong when two run there.
10
+
3
11
  ## 0.2.1 (2026-09-28)
4
12
 
5
13
  - You don't need Rust any more. peekme can be installed with npm (`npm i -g peekme`), with
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # peekme
2
2
 
3
3
  Peek me. Pick me. Select text in [Codex CLI](https://github.com/openai/codex) or
4
- [Claude Code](https://github.com/anthropics/claude-code) output, press **Alt+P**, and a short
4
+ [Claude Code](https://github.com/anthropics/claude-code) output, press **Alt+P** (**Option+P** on a Mac), and a short
5
5
  explanation opens right next to that text, inside the terminal. The other lines move to make
6
6
  room, like Peek in VS Code. Esc closes it and the screen is exactly as before.
7
7
 
@@ -10,7 +10,7 @@ room, like Peek in VS Code. Esc closes it and the screen is exactly as before.
10
10
  The explanation comes from a small, fast model and it knows the conversation. If you select
11
11
  "its split panes" in an answer that recommends Kitty, it tells you it is about Kitty.
12
12
 
13
- Status: 0.2.1. Tested on Linux with X11 and bash, with Codex 0.157 and Claude Code 2.1.283.
13
+ Status: 0.2.2. Tested on Linux with X11 and bash, with Codex 0.157 and Claude Code 2.1.283.
14
14
 
15
15
  ## Install
16
16
 
@@ -24,6 +24,9 @@ cargo install peekme # builds it with Rust
24
24
  peekme install
25
25
  ```
26
26
 
27
+ npm 12 may say that it skipped an install script of peekme. That is fine: peekme then downloads
28
+ its binary the first time it runs.
29
+
27
30
  Without npm, Homebrew or Rust, the script from the
28
31
  [latest release](https://github.com/GregoryBolshakov/peekme/releases/latest) puts peekme in
29
32
  `~/.local/bin`:
@@ -58,13 +61,24 @@ Alt+P. When the agent draws full screen (Codex since 0.157, Claude Code with
58
61
 
59
62
  | Key | When | What it does |
60
63
  |---|---|---|
61
- | Alt+P | any time | explain the selected text |
64
+ | Alt+P (Mac: Option+P) | any time | explain the selected text |
62
65
  | Alt+P again | box is open, same selection | explain again using the whole conversation |
63
66
  | PgUp / PgDn, mouse wheel | box is open | scroll a long explanation |
64
67
  | Esc | box is open | close the box |
65
68
  | typing | box is open | goes to the agent's input line, the box stays open |
66
69
  | Enter | box is open | sends your message and closes the box |
67
70
 
71
+ ### On a Mac
72
+
73
+ Option+P works as it is, with no terminal setting. A Mac terminal sends Option+P as the
74
+ character `π`, and peekme takes that as the shortcut, the same way Claude Code does. So while
75
+ peekme runs, Option+P does not type `π`. Pasting `π` still works. If your terminal is set to use
76
+ Option as Meta, Option+P works too.
77
+
78
+ When the agent draws full screen, peekme gets the selection from the agent. Otherwise (Claude
79
+ Code's classic screen) it reads the clipboard: iTerm2 copies a selection there by itself, in
80
+ Terminal press Cmd+C after you select.
81
+
68
82
  In Claude Code, Alt+P opens the model picker. With peekme it explains the selection instead.
69
83
  `/model` still opens the model picker.
70
84
 
@@ -163,7 +177,7 @@ To use peekme with another program, run `peekme -- COMMAND`.
163
177
  - In full screen mode selection works anywhere, also over SSH, because peekme reads the
164
178
  selection from the agent. Otherwise peekme needs the terminal's selection, which it reads on
165
179
  Linux with X11 only. On Wayland it works through XWayland, and on macOS it reads the
166
- clipboard, not tested.
180
+ clipboard (see [On a Mac](#on-a-mac)).
167
181
  - Claude Code full screen: if `copyOnSelect` is off, Claude does not report the selection. Then
168
182
  only a Shift+drag selection works (read from X11 PRIMARY).
169
183
  - An explanation takes about 1 to 2 seconds to start arriving.
@@ -19,7 +19,7 @@
19
19
  "hasInstallScript": true,
20
20
  "license": "MIT OR Apache-2.0",
21
21
  "name": "peekme",
22
- "version": "0.2.1"
22
+ "version": "0.2.2"
23
23
  },
24
24
  "node_modules/detect-libc": {
25
25
  "engines": {
@@ -48,5 +48,5 @@
48
48
  }
49
49
  },
50
50
  "requires": true,
51
- "version": "0.2.1"
51
+ "version": "0.2.2"
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/GregoryBolshakov/peekme/releases/download/v0.2.1"
3
+ "https://github.com/GregoryBolshakov/peekme/releases/download/v0.2.2"
4
4
  ],
5
5
  "author": "Gregory Bolshakov",
6
6
  "bin": {
@@ -69,7 +69,7 @@
69
69
  "zipExt": ".tar.xz"
70
70
  }
71
71
  },
72
- "version": "0.2.1",
72
+ "version": "0.2.2",
73
73
  "volta": {
74
74
  "node": "18.14.1",
75
75
  "npm": "9.5.0"