[pull] main from gi-dellav:main#77
Merged
Merged
Conversation
Make a multi-line input box that overflows its height fully usable: - Vertical viewport follows the cursor, so Up/Down reveal lines that do not fit on screen at once instead of the viewport staying pinned to the bottom. - Mouse wheel scrolls the input viewport first, then keeps going back through the chat history once the input is at its top; scrolling down brings the chat back before the input. - Clicking inside the input box moves the cursor to that position. - Cap the input height to roughly 30% of the available area so the chat history stays visible and scrollable above a tall input. - Clamp the rendered caret to the visible input rows so it never spills onto the separator or status bar while scrolled away from the cursor. - Reconcile the input height before drawing the chat viewport so a height change does not leave a stale separator when it shrinks, or chat text hidden under it when it grows, until the next redraw.
to build run: $ nix-build ./release.nix -A zerostack
flakes are no longer required
With code all stable, flakes are no longer needed
feat(input): scroll, click-to-position, and a height cap for tall input boxes
Nix code stable
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )
Note
Add vertical scrolling and click-to-place cursor to the multi-line input area
Renderer.input_cursor_for_click, moving the cursor to the clicked position while respecting multi-byte character boundaries viaInputEditor.set_cursor.renderer.sync_input_heightis called before drawing the chat viewport to reconcile input height changes and prevent stale separators.release.nix/shell.nix/default.nixfiles, removingflake.nix.Macroscope summarized df21b8d.