-
Notifications
You must be signed in to change notification settings - Fork 7
Add indentation configuration from modes #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughAdds per-mode indentation fields to TextForgeMode and EditorAPI, new EditorAPI signals and functions for managing per-mode/global indentation, UI/menu entries and bottom-bar control to view/change indentation (including lock/reset), action scripts for lock/reset, and theme adjustments for the bottom bar. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI as BottomBar / Menu
participant Editor as EditorAPI
participant Mode as TextForgeMode
Note over Mode,Editor: Modes expose indent_type & indent_size
Mode->>Editor: provide indent_type & indent_size on load
Editor->>UI: emit indentation_settings_updated(use_space, indent_size)
UI->>User: display label ("Spaces (N)" / "Tabs (N)")
User->>UI: choose option (spaces/tabs/edit size/lock/reset)
UI->>Editor: call change_indentation_type / change_indent_size / reset_to_mode_indentation_settings
Editor->>Editor: update custom_mode_indentations or global setting and persist
Editor-->>UI: emit indentation_settings_updated(updated values)
UI-->>User: reflect updated label/state
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary of Changes
Added ability to modes to change indentation settings (not yet) with feature of custom or locked settings.
Related Items
Technical Details & Testing
Checklist
Summary by CodeRabbit
Bug Fixes
New Features
UI/UX Improvements
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.