Skip to content

Feature request: Copy raw markdown (not rendered text) from agent buffers #641

@liaowang11

Description

@liaowang11

I know this can be hard for agent-shell-markdown-replace-markup but couldn't resist to ask.
When I select a region in an agent buffer and copy it, I'd
like to get the raw markdown (# Title, _italic_, `code`) rather than
the rendered text.

Today, with the default in-place renderer (agent-shell-markdown-replace-markup),
inline markup is deleted from the buffer at render time, so copying can only
ever yield the stripped/rendered text — the original markdown isn't recoverable.
Tables already preserve their source via the agent-shell-markdown-table-source
text property and round-trip through copy/save, so there's a precedent.

Use case: pasting an agent's reply back into a markdown doc, issue, or another
chat, where I want the formatting markers preserved.

Checklist

  • I agree to communicate with the author myself (not AI-generated).
  • I've read the README's Filing issues section.
  • I'm running the latest versions (fill in below).
    • agent-shell version: 0.55.1
    • acp.el version: 0.12.2
    • ACP package version: pi-agent-acp
    • Agent CLI version: n/a — feature request about rendering, agent-agnostic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions