Skip to content

replace copy buttons with copy command#261

Merged
zikajk merged 3 commits into
masterfrom
add-eca-chat-copy-at-point-command
Jun 22, 2026
Merged

replace copy buttons with copy command#261
zikajk merged 3 commits into
masterfrom
add-eca-chat-copy-at-point-command

Conversation

@zikajk

@zikajk zikajk commented Jun 22, 2026

Copy link
Copy Markdown
Member

Remove visible copy controls from chat output and add eca-chat-copy-at-point on C-c C-w, backed by hidden response/code-block copy scopes.

@zikajk zikajk force-pushed the add-eca-chat-copy-at-point-command branch from e4a23ea to e556182 Compare June 22, 2026 12:19
Remove visible copy controls from chat output and add `eca-chat-copy-at-point`
on `C-c C-w`, backed by hidden response/code-block copy scopes.
@zikajk zikajk force-pushed the add-eca-chat-copy-at-point-command branch from e556182 to e7f71df Compare June 22, 2026 12:28
`string-pixel-width' and `buffer-text-pixel-size' are both Emacs 29+
symbols.  package-lint errors on the latter since we declare
`(emacs "28.1")', failing CI; and at runtime on Emacs 28.x the code
would signal a void-function error.  Wrap each in an `fboundp' guard
and fall back to `string-width' when neither is available.
@zikajk zikajk force-pushed the add-eca-chat-copy-at-point-command branch from 4a979dc to 17d47d9 Compare June 22, 2026 14:19
`string-pixel-width' and `buffer-text-pixel-size' are both Emacs 29+.
Remove dead `buffer-text-pixel-size' branch and skip pixel
right-alignment on 28.x, where `string-width' fallback would push
right segments past the window edge.  Guard pixel-specific tests.
@zikajk zikajk force-pushed the add-eca-chat-copy-at-point-command branch from 17d47d9 to 4cd74f7 Compare June 22, 2026 14:29
@zikajk zikajk merged commit f91296c into master Jun 22, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant