pi-anycopy 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/README.md +8 -3
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # anycopy for Pi (`pi-anycopy`)
2
2
 
3
- This extension mirrors all the behaviors of Pi's native `/tree` while adding a live, syntax-highlighting preview of each node's content, the ability to copy any node(s) to the clipboard, and optional display of the timestamps of labeled nodes' last labelings.
3
+ This extension mirrors all the behaviors of Pi's native `/tree` while adding a live, syntax-highlighting preview of each node's content, the ability to copy any node(s) to the clipboard, and optional node creation timestamps.
4
4
 
5
5
  <p align="center">
6
6
  <img width="450" alt="anycopy demo" src="https://raw.githubusercontent.com/w-winter/dot314/main/assets/anycopy-demo.gif" />
@@ -52,6 +52,7 @@ Defaults (customizable in `config.json`):
52
52
  | `Shift+X` | Clear selection |
53
53
  | `Shift+L` | Label node (native tree behavior) |
54
54
  | `Shift+T` | Toggle label timestamps for labeled nodes |
55
+ | `Shift+Ctrl+T` | Toggle node creation timestamps |
55
56
  | `Shift+Up` / `Shift+Down` | Scroll node preview by line |
56
57
  | `Shift+PageUp` / `Shift+PageDown` | Page through node preview |
57
58
  | `Esc` | Close |
@@ -68,7 +69,10 @@ Notes:
68
69
  - `Shift+A`/`Shift+C` multi-select copy behavior is unchanged by navigation support, while plain space remains available for search queries
69
70
  - `Shift+T` is configurable via `keys.toggleLabelTimestamps` in `config.json`
70
71
  - `Shift+T` shows timestamps for labeled nodes only, using the latest label-change time for each label
71
- - Same-day labels show `HH:MM`; older labels show `M/D HH:MM`; cross-year labels show `YY/M/D HH:MM`
72
+ - `Shift+Ctrl+T` is configurable via `keys.toggleEntryTimestamps` in `config.json`
73
+ - `Shift+Ctrl+T` shows each node's creation time right-aligned at the far right of each visible tree row
74
+ - Nodes without a creation time show no timestamp
75
+ - Timestamps use a compact format: same-day `HH:MM`, same-year `M/D HH:MM`, cross-year `YY/M/D HH:MM`
72
76
  - Label edits are persisted via `pi.setLabel(...)`
73
77
  - [Folded](https://github.com/badlogic/pi-mono/blob/09e9de5749193beab234f30ed220a77f3d91cfad/packages/coding-agent/docs/tree.md#controls) branches are persisted by default in hidden `/anycopy` session entries, so closing/reopening `/anycopy`, switching to a sibling branch, or revisiting the session later restores the same folded view until you explicitly unfold it again
74
78
  - Search and filter changes still reset the live overlay's fold state temporarily; reopening `/anycopy` restores the persisted folded branches
@@ -80,7 +84,7 @@ Edit `~/.pi/agent/extensions/anycopy/config.json`:
80
84
  - `treeFilterMode`: initial tree filter mode when opening `/anycopy`; defaults to `default` to match `/tree`
81
85
  - one of: `default` | `no-tools` | `user-only` | `labeled-only` | `all`
82
86
  - `persistFoldState`: whether `/anycopy` persists folded branches across reopenings and later sessions; defaults to `true`; when disabled, `/anycopy` does not read or write hidden fold-state session entries
83
- - `keys`: keybindings used inside the `/anycopy` overlay for copy/preview actions, including the label timestamp toggle
87
+ - `keys`: keybindings used inside the `/anycopy` overlay for copy/preview actions and the creation timestamp toggle
84
88
 
85
89
  ```json
86
90
  {
@@ -91,6 +95,7 @@ Edit `~/.pi/agent/extensions/anycopy/config.json`:
91
95
  "copy": "shift+c",
92
96
  "clear": "shift+x",
93
97
  "toggleLabelTimestamps": "shift+t",
98
+ "toggleEntryTimestamps": "shift+ctrl+t",
94
99
  "scrollUp": "shift+up",
95
100
  "scrollDown": "shift+down",
96
101
  "pageUp": "shift+pageup",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-anycopy",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Pi's /tree with a live syntax-highlighted preview, ability to copy any node(s) to the clipboard, and persistence of folded branches",
5
5
  "keywords": ["pi-package", "pi", "pi-coding-agent"],
6
6
  "license": "MIT",
@@ -30,6 +30,7 @@
30
30
  { "from": "../../extensions/anycopy/index.ts", "to": "extensions/anycopy/index.ts" },
31
31
  { "from": "../../extensions/anycopy/enter-navigation.ts", "to": "extensions/anycopy/enter-navigation.ts" },
32
32
  { "from": "../../extensions/anycopy/fold-state.ts", "to": "extensions/anycopy/fold-state.ts" },
33
+ { "from": "../../extensions/anycopy/timestamps.ts", "to": "extensions/anycopy/timestamps.ts" },
33
34
  { "from": "../../extensions/anycopy/config.json", "to": "extensions/anycopy/config.json" },
34
35
  { "from": "../../LICENSE", "to": "LICENSE" }
35
36
  ],