refactor(settings): regroup acceptance toggles under Writing, split General behavior#696
Merged
Merged
Conversation
…eral behavior Move 'Accept Punctuation With Word' and 'Add Space After Accepting' out of General into a new Writing > Acceptance section, next to the other controls that shape inserted text. Split General's catch-all Behavior section into Context (clipboard/app) and Suggestions (multi-line/macros). Update the search index category mapping so both toggles resolve to Writing.
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
The two acceptance toggles lived in General > Behavior, mixed in with context
sources and macros where they read as out of place. They govern what an accept
inserts, so they now sit in a new Writing > Acceptance section next to the
other controls that shape inserted text. General's catch-all Behavior section is
split into Context (clipboard/app) and Suggestions (multi-line/macros)
so each group reads cleanly.
Validation
Pure presentation move: the same bindings drive the same
SuggestionSettingsModelsetters, so stored preferences and behavior are unchanged. Existing SettingsIndex
tests (title/symbol/keywords presence, id uniqueness, search) are category-agnostic
and unaffected.
Linked issues
None.
Risk / rollout notes
acceptance behavior are identical.
them (now pointing at the Writing pane).
Greptile Summary
This PR reorganizes the Settings UI by splitting the old General > Behavior catch-all into two focused sections (Context and Suggestions) and relocating the two acceptance toggles to a new Writing > Acceptance section where they fit more naturally alongside other output-shaping controls.
SuggestionSettingsModelsetters as before.acceptPunctuationandaddSpaceAfterAcceptcases moved to the Writing declaration block and theircategoryswitch arms updated to return.writing, keeping search routing accurate.Confidence Score: 5/5
Pure UI reorganization — no settings schema, storage, or behavioral change; safe to merge.
All three files touch only presentation layer code: section labels, toggle placement, and the search index routing. The underlying SuggestionSettingsModel bindings are identical to the originals, and the category switch in SettingsIndex is updated to match, so search still routes to the correct pane. No logic paths, data mutations, or persistence are involved.
No files require special attention; the only note is a minor docstring gap in WritingPaneView.swift.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD subgraph BEFORE["Before (General > Behavior)"] B_Behavior["Behavior"] B_Behavior --> B_Clipboard["Include Clipboard Context"] B_Behavior --> B_App["Include App Context"] B_Behavior --> B_MultiLine["Allow Multi-line Suggestions"] B_Behavior --> B_Punct["Accept Punctuation With Word ❌"] B_Behavior --> B_Space["Add Space After Accepting ❌"] B_Behavior --> B_Macros["Inline Macros"] end subgraph AFTER_G["After (General)"] A_Context["Context"] A_Context --> A_Clipboard["Include Clipboard Context"] A_Context --> A_App["Include App Context"] A_Suggestions["Suggestions"] A_Suggestions --> A_MultiLine["Allow Multi-line Suggestions"] A_Suggestions --> A_Macros["Inline Macros"] end subgraph AFTER_W["After (Writing)"] A_Acceptance["Acceptance ✅"] A_Acceptance --> A_Punct["Accept Punctuation With Word"] A_Acceptance --> A_Space["Add Space After Accepting"] end B_Punct -->|moved| A_Punct B_Space -->|moved| A_SpaceComments Outside Diff (1)
Cotabby/UI/Settings/Panes/WritingPaneView.swift, line 3-6 (link)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!
Reviews (1): Last reviewed commit: "refactor(settings): group acceptance tog..." | Re-trigger Greptile