fix(paste): respect paste_collapse_threshold from config, default 25#8491
Open
iRonin wants to merge 1 commit into
Open
fix(paste): respect paste_collapse_threshold from config, default 25#8491iRonin wants to merge 1 commit into
iRonin wants to merge 1 commit into
Conversation
Both paste handlers (bracketed paste and fallback text-change) hardcoded the collapse threshold to 5 lines, ignoring the paste_collapse_threshold config value entirely. Now reads self._paste_collapse_threshold from config (default 25) so pastes under the threshold stay inline as text.
Contributor
|
I closed #24990 in favor of this one. I have the TUI frontend plumbing ready (config.get full → applyDisplay → patchUiState → uiStore → composer) — same approach used for other display configs like Happy to either:
Also fine adjusting the default to whatever number the maintainers prefer — the key thing is it being configurable at all. TUI changes needed (4 files + type plumbing):
|
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.
Makes paste collapse threshold configurable via
display.paste_collapse_threshold(default 25) instead of hardcoded value.Closes #5626