Migrate to the PreviewVisibility API#4
Open
TrueCrimeDev wants to merge 1 commit into
Open
Conversation
Flow.Launcher replaced PreviewContentType.Hidden with a PreviewVisibility enum on Result (Default/Never/Always), decoupling pane visibility from the content type. - Ask / Loading placeholder rows: PreviewVisibility.Never (was ContentType.Hidden) - Answer / Copy / Error markdown rows: PreviewVisibility.Always, so they keep auto-opening the preview now that markdown content no longer forces the pane open Requires Flow.Launcher PR #4529 (the core API change) to build. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011TcJGQVjhYU3tEMi8FF4TM
There was a problem hiding this comment.
Pull request overview
Migrates Shorty’s result rows to Flow.Launcher’s new Result.PreviewVisibility API, decoupling preview-pane visibility from PreviewContentType so the plugin preserves the previous auto-open / hidden preview behavior.
Changes:
- Replaced
PreviewContentType.Hiddenusage withPreviewVisibility.Neverfor “Ask” and “Loading” rows. - Set
PreviewVisibility.Alwaysfor markdown-backed “Answer”, “Copy”, and “Error” rows so the preview pane still auto-opens.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
239
to
243
| RoundedIcon = false, | ||
| CopyText = entry.Text, | ||
| Preview = preview, | ||
| PreviewVisibility = PreviewVisibility.Always, | ||
| ContextData = entry, |
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.
Migrates Shorty to Flow.Launcher's new preview-visibility API.
Flow.Launcher PR Flow-Launcher/Flow.Launcher#4529 replaces
PreviewContentType.Hiddenwith aPreviewVisibilityenum onResult(Default/Never/Always), decoupling pane visibility from the content type.Ask/Loadingplaceholder rows →PreviewVisibility.Never(wasContentType.Hidden)Answer/Copy/Errormarkdown rows →PreviewVisibility.Always, so they keep auto-opening the preview now that the content type no longer forces the pane open