Remove Display and Allow Multi-line Suggestions from menu bar popup#456
Merged
Conversation
Comment on lines
106
to
+107
| // Context-shaping toggles that change what the model is fed. | ||
| Group { | ||
| Toggle("Include Clipboard Context", isOn: clipboardContextEnabledBinding) | ||
| .toggleStyle(.switch) | ||
| .controlSize(.small) | ||
|
|
||
| Toggle("Allow Multi-line Suggestions", isOn: multiLineEnabledBinding) | ||
| .toggleStyle(.switch) | ||
| .controlSize(.small) | ||
| } | ||
| Toggle("Include Clipboard Context", isOn: clipboardContextEnabledBinding) |
Contributor
There was a problem hiding this comment.
The comment says "toggles" (plural), but after removing "Allow Multi-line Suggestions", only a single toggle remains in this section. The comment should be updated to reflect the singular form.
Suggested change
| // Context-shaping toggles that change what the model is fed. | |
| Group { | |
| Toggle("Include Clipboard Context", isOn: clipboardContextEnabledBinding) | |
| .toggleStyle(.switch) | |
| .controlSize(.small) | |
| Toggle("Allow Multi-line Suggestions", isOn: multiLineEnabledBinding) | |
| .toggleStyle(.switch) | |
| .controlSize(.small) | |
| } | |
| Toggle("Include Clipboard Context", isOn: clipboardContextEnabledBinding) | |
| // Context-shaping toggle that changes what the model is fed. | |
| Toggle("Include Clipboard Context", isOn: clipboardContextEnabledBinding) |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
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.
Summary
Two controls removed from the menu bar popup because they are set-it-and-forget-it preferences that don't change mid-session:
Both remain fully accessible in Settings. The popup now stays focused on controls users actually reach for mid-work: Fast Mode, Enable Globally / per-app, Clipboard Context, Engine, Model, and Length.
Validation
Linked issues
Risk / rollout notes
Both settings remain in Settings > Writing / Advanced. No data migration needed.
Greptile Summary
This PR removes two "set-and-forget" controls — Allow Multi-line Suggestions (toggle) and Display (picker) — from the menu bar popup, leaving them accessible only through the Settings window. The corresponding
multiLineEnabledBindingandmirrorPreferenceBindingcomputed properties are also deleted.Groupwrapping both clipboard and multi-line toggles is replaced by the single remainingToggle("Include Clipboard Context"), which is structurally correct and stays under SwiftUI's 10-childViewBuilderlimit.mirrorPreferenceBindingandmultiLineEnabledBindingBindings are cleanly removed with no dangling references, and theGroupenclosing the remaining picker rows is properly preserved.Confidence Score: 5/5
Safe to merge — changes are purely subtractive UI removals with no functional side effects.
The two removed controls and their backing Binding properties are cleanly excised with no remaining references. The underlying settings remain writable through the Settings window, so no user data or behavior is lost. The only issue found is a stale plural comment.
No files require special attention.
Important Files Changed
Sequence Diagram
sequenceDiagram participant User participant MenuBarView participant SuggestionSettingsModel participant SettingsWindow Note over MenuBarView: Controls removed from popup User->>MenuBarView: Opens menu bar popup MenuBarView-->>User: "Shows: Fast Mode, Enable Globally,<br/>Include Clipboard Context, Engine, Model, Length" Note over MenuBarView,SettingsWindow: Removed controls now Settings-only User->>SettingsWindow: Opens Settings SettingsWindow-->>SuggestionSettingsModel: Read/write Allow Multi-line Suggestions SettingsWindow-->>SuggestionSettingsModel: Read/write Display (MirrorPreference)Reviews (1): Last reviewed commit: "Remove Display and Allow Multi-line Sugg..." | Re-trigger Greptile