adds Clean Copy Support
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
The Claude Code pane is the top half of the right-hand column. It is a live terminal that runs the Claude agent in your project folder.
|
||||
|
||||
[Guide index](index.md) · Related: [Command line](command-line.md), [Pass on to Agent](pass-on-to-agent.md), [Layout](layout.md), [Right-click menu](right-click-menu.md)
|
||||
[Guide index](index.md) · Related: [Command line](command-line.md), [Pass on to Agent](pass-on-to-agent.md), [Clean copy](clean-copy.md), [Layout](layout.md), [Right-click menu](right-click-menu.md)
|
||||
|
||||
## At a glance
|
||||
|
||||
@@ -45,6 +45,10 @@ The Claude Code pane is the top half of the right-hand column. It is a live term
|
||||
- After a pass, the keyboard moves to the Claude pane and a short [notification](notifications.md) confirms it ("Passed to agent").
|
||||
- Nothing is sent when the agent process is not running.
|
||||
|
||||
### Text from Claude to copy
|
||||
- Claude can hand you text to copy by writing it to `.clean-copy` in the project root. Helder then opens a card with that text and a **Copy** button. See [Clean copy](clean-copy.md).
|
||||
- Both terminals run with `TERM_PROGRAM=Helder`, so Claude can tell it runs inside Helder.
|
||||
|
||||
### Restart after the process exits
|
||||
- When the agent exits (for example after `/exit`), the pane shows a grey line: `[process exited] · press any key to restart`.
|
||||
- Press any key in the pane. Helder starts the agent again with the current settings.
|
||||
@@ -107,6 +111,7 @@ All settings live in `.helder/config.json`. See [Configuration](configuration.md
|
||||
- [Command line](command-line.md): the shell pane below, with the same look and copy behaviour.
|
||||
- [Pass on to Agent](pass-on-to-agent.md): send code references into Claude's composer.
|
||||
- [Notes](notes.md): send the project note to Claude with `Cmd+P`.
|
||||
- [Clean copy](clean-copy.md): copy text that Claude writes to `.clean-copy`.
|
||||
- [Right-click menu](right-click-menu.md): Copy and Paste in the terminal.
|
||||
- [Layout](layout.md): the splitter, the Claude toggle and column widths.
|
||||
- [Configuration](configuration.md): where `ai` and `terminal` settings live.
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
# Clean copy
|
||||
|
||||
Clean copy lets Claude hand you text to copy: a command, a commit message, a draft. Claude writes it to a file, and Helder shows it in a card at the top of the window, ready to edit and copy. You never have to select text out of the terminal.
|
||||
|
||||
[Guide index](index.md) · Related: [Claude Code](claude-code.md), [Notes](notes.md), [Notifications](notifications.md)
|
||||
|
||||
## At a glance
|
||||
|
||||
```text
|
||||
+----------------------------------------------------------------+
|
||||
| (1) From Claude .clean-copy (2) [ Copy Cmd+Enter ] |
|
||||
+----------------------------------------------------------------+
|
||||
| (3) |
|
||||
| feat: show the refund state on the order page |
|
||||
| |
|
||||
| The order page now shows when a refund is pending._ |
|
||||
| |
|
||||
+----------------------------------------------------------------+
|
||||
| (4) copied as plain text . 74 characters |
|
||||
+----------------------------------------------------------------+
|
||||
```
|
||||
|
||||
1. **Header**: the title and the file name, `.clean-copy`.
|
||||
2. **Copy**: copies the text and closes the card.
|
||||
3. **Text area**: the text Claude wrote, in a monospaced font. You can edit it before you copy.
|
||||
4. **Footer**: how the text is copied, and how many characters it holds.
|
||||
|
||||
## Features
|
||||
|
||||
### The file
|
||||
- The channel is one file: `.clean-copy` in the root of the project.
|
||||
- Claude overwrites the whole file each time it has text for you. Helder only reads it; it never clears or deletes it.
|
||||
- Both terminals get `TERM_PROGRAM=Helder` in their environment, so Claude can tell it runs inside Helder.
|
||||
- Like any file, `.clean-copy` shows up in [Git](git.md) and the [Explorer](explorer.md) unless you ignore it.
|
||||
|
||||
### When the card opens
|
||||
- The card opens when the contents of `.clean-copy` change while the project is open.
|
||||
- Helder waits a moment after the last write, so it reads the whole text, not half of it.
|
||||
- The text that is in the file when you open the project never opens the card.
|
||||
- An empty file, or one with only spaces and blank lines, does not open the card.
|
||||
- Writing the same text again does not open the card a second time.
|
||||
- The card opens in the window of that project, even when the window is in the background. Helder does not come to the front.
|
||||
|
||||
### While something else is open
|
||||
- When another card or dialog is open, such as the [note](notes.md) or [search](search.md), the text waits. The card opens once you close the other one.
|
||||
- If Claude writes several times while you wait, only the newest text shows.
|
||||
- When the clean-copy card is already open and new text arrives, the card shows the new text, unless you already edited the text. Then your edits stay and the new text is dropped.
|
||||
|
||||
### Copying
|
||||
- Click **Copy** or press `Cmd+Enter`.
|
||||
- The text in the card, with your edits, goes to the clipboard as plain text.
|
||||
- The card closes, and a [notification](notifications.md) says "Copied".
|
||||
- `Esc`, or a click outside the card, closes it without copying.
|
||||
|
||||
## Keyboard
|
||||
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| `Cmd+Enter` | Copy the text and close |
|
||||
| `Esc` | Close without copying |
|
||||
|
||||
## Related
|
||||
|
||||
- [Claude Code](claude-code.md): the agent that writes `.clean-copy`.
|
||||
- [Notes](notes.md): the card the clean-copy card looks like.
|
||||
- [Notifications](notifications.md): the "Copied" confirmation.
|
||||
- [Keyboard shortcuts](keyboard-shortcuts.md): every key in one list.
|
||||
@@ -59,6 +59,7 @@ This guide explains Helder from the user's side: what each part of the window sh
|
||||
|
||||
- [Claude Code](claude-code.md): the agent pane.
|
||||
- [Command line](command-line.md): the shell pane.
|
||||
- [Clean copy](clean-copy.md): text Claude hands you to copy, through `.clean-copy`.
|
||||
|
||||
### Finding things
|
||||
|
||||
|
||||
@@ -173,6 +173,14 @@ See [Notes](notes.md).
|
||||
| `Cmd+P` | Pass the whole note to the agent (while the note is open) |
|
||||
| `Esc` | Close the note (it saves) |
|
||||
|
||||
### Clean copy
|
||||
See [Clean copy](clean-copy.md).
|
||||
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| `Cmd+Enter` | Copy the text and close the card |
|
||||
| `Esc` | Close the card without copying |
|
||||
|
||||
### Right-click menus and dialogs
|
||||
See [Right-click menu](right-click-menu.md) and [Dialogs](dialogs.md).
|
||||
|
||||
|
||||
@@ -83,6 +83,7 @@ The agent and the note:
|
||||
| Passed to agent | the reference | Text was inserted into the Claude pane |
|
||||
| Note passed to agent | `.notes.txt` | You passed the whole note with `Cmd+P` |
|
||||
| Save failed | `.notes.txt` | The project note could not be saved |
|
||||
| Copied | character count | You copied the text of the [clean-copy](clean-copy.md) card |
|
||||
|
||||
### Other short messages
|
||||
Two other messages appear for a moment, but they are not toasts:
|
||||
|
||||
Reference in New Issue
Block a user