Repository navigation
feat(switch): add [switch.picker] preview setting to open the picker list-only - #4428
Merged
Merged
Conversation
…list-only `preview = false` appends skim's `hidden` modifier to the preview-window spec. `alt-p:toggle-preview` flips the same flag, so the toggle still reveals the pane at its computed size. Default stays `true`. Closes #4072 Co-Authored-By: Claude <[email protected]>
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.
Adds
[switch.picker] preview = false, which openswt switch's picker with the preview hidden.Alt-pstill shows it. The default staystrue.The change appends skim's
hiddenmodifier to the preview-window spec (right:N:hidden/down:N:hidden). skim'stoggle-previewflips that samepreview_window.hiddenflag, so the existingalt-pbinding reveals the pane at the size the picker already computed. Background preview pre-rendering is unchanged, so the first reveal is just as warm as an always-visible preview, and the setting costs no more work than today's open-then-Alt-p.Verification:
test_switch_picker_preview_hidden_by_config, checks that the picker opens without the preview controls line and thatAlt-pbrings it back. The test fails when the:hiddenappend is removed.wt switch --help,wt config create, and the generated docs mention the key. Help snapshots were refreshed.Closes #4072