feat: add pi-coding-agent-input-previous-message command#165
Open
eengad wants to merge 1 commit intodnouri:masterfrom
Open
feat: add pi-coding-agent-input-previous-message command#165eengad wants to merge 1 commit intodnouri:masterfrom
eengad wants to merge 1 commit intodnouri:masterfrom
Conversation
Navigate to the previous user message in the chat buffer while keeping focus in the input buffer. Uses other-window-scroll-buffer (set at session setup) to find the chat window, which also enables built-in C-M-v / C-M-S-v scrolling for free. No default keybinding — users can bind it in their config.
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Navigate to the previous user message in the chat buffer while keeping focus in the input buffer.
Changes
pi-coding-agent.el: Setother-window-scroll-bufferto the chat buffer at session setup. This also gives users built-inC-M-v/C-M-S-vchat scrolling from the input buffer for free.pi-coding-agent-ui.el: Newpi-coding-agent-input-previous-messagecommand that usesother-window-scroll-bufferto find the chat window, callspi-coding-agent-previous-messagethere, and keeps focus in input.test/pi-coding-agent-ui-test.el: 3 ERT tests (behavior, error case, scroll-buffer setup).No keybinding included
Left unbound intentionally to avoid conflicts with frameworks like Doom. Do you have a preferred keybinding for this, or should it stay unbound and let users configure it themselves?