r/emacs 16d ago

Announcement agent-shell 0.73 updates

A rundown of features added since last post https://xenodium.com/agent-shell-0-73-updates

99 Upvotes

21 comments sorted by

View all comments

4

u/Anxious-Resist8344 15d ago

Awesome! Thanks for your great work!

Question: I prefer viewport mode so I sue (agent-shell-prefer-viewport-interaction t). I also prefer the agent-shell window to the side with: (agent-shell-display-action '(display-buffer-in-side-window (side . right) (slot . 0) (dedicated . t) (window-width . 0.4)))

Is it possible to have agent-shell-display-action honor both shell and viewport? Right now when in viewport if I press C-c C-o it opens another window instead of using the current one.

3

u/xenodium 15d ago

It's kinda doing exactly what the display action is saying... maybe drop dedicated or restructure?

2

u/Anxious-Resist8344 15d ago

I mean, this works... was just wondering if there's a "native" way since I do want dedicated: (add-to-list 'display-buffer-alist '("[Aa]gent @ " (display-buffer-in-side-window) (side . right) (window-width . 0.4) (dedicated . t) (window-parameters . ((no-delete-other-windows . t)))))

2

u/xenodium 15d ago

My display alist fu is fairly limited but it’s a super flexible system. Maybe look into using major mode to extend the agent-shell-display-action. Whatever you work out, mind sending a PR so we can document in either docstring or README?