opencode-cut 0.1.0 → 0.1.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/dist/tui.js CHANGED
@@ -13,7 +13,9 @@ const mod = {
13
13
  render: () => {
14
14
  context.keymap.layer(() => ({
15
15
  mode: "global",
16
- target: () => context.renderer.currentFocusedEditor,
16
+ // The renderer's focus getter is not reactive. A target accessor would
17
+ // pin this layer to the editor (or null) present when the app mounts.
18
+ // Resolve the focused editor in enabled/run instead.
17
19
  priority: 100,
18
20
  commands: [
19
21
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-cut",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "OpenCode V2 TUI plugin that adds real clipboard-aware cut support to text inputs",
5
5
  "type": "module",
6
6
  "engines": {
package/src/tui.ts CHANGED
@@ -18,7 +18,9 @@ const mod: Plugin.Definition = {
18
18
  render: () => {
19
19
  context.keymap.layer(() => ({
20
20
  mode: "global",
21
- target: () => context.renderer.currentFocusedEditor,
21
+ // The renderer's focus getter is not reactive. A target accessor would
22
+ // pin this layer to the editor (or null) present when the app mounts.
23
+ // Resolve the focused editor in enabled/run instead.
22
24
  priority: 100,
23
25
  commands: [
24
26
  {