comint-mime integration for shell buffer images (#5)
sportmacher opened 2 months ago

Reported by: shipmints (Reddit)

Integrate with comint-mime (https://elpa.gnu.org/packages/comint-mime.html) to display images produced by programs in shell/comint buffers via Kitty graphics. The canonical use case is matplotlib charts rendering inline in a Python shell buffer.

Approach:

  • comint-mime uses shr or create-image to display inline — our existing shr-put-image advice may partially cover this
  • Test whether the existing shr integration already works with comint-mime
  • If not, add explicit advice for comint-mime's display functions
  • Use with-eval-after-load 'comint-mime pattern

Reference: https://elpa.gnu.org/packages/comint-mime.html

  • sportmacher commented 2 months ago

    comint-mime is not currently installed on the system. The existing shr-put-image advice may already cover comint-mime's image display since it uses shr internally. This needs testing once comint-mime is available.

    To install: (package-install 'comint-mime) or add to nix packages.

issue 1/1
Type
New Feature
Priority
Minor
Assignees
Not assigned
Issue Votes (0)
Watchers (1)
Reference
cashmere/kitty-graphics#5
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover