Closed monntecc closed 2 weeks ago
[!WARNING]
Review failed
The pull request is closed.
The changes enhance the CodeSpaceComponent
by introducing properties to track selected characters and columns, updating the status bar in CodeStatusbarComponent
to display this information, and adding these fields to the ICodeData
interface. This provides better feedback to users when selecting text within the code editor.
File | Summary |
---|---|
src/components/editor/CodeSpaceComponent.vue |
Added selectedChars and selectedColumns to the codeData object and updated onUpdate to calculate these values from selected text. |
src/components/editor/CodeStatusbarComponent.vue |
Updated template to show selected text information (characters and columns) or current line/column numbers, adjusted status bar width. |
src/components/editor/models/ICodeData.ts |
Added optional selectedChars and selectedColumns fields to the ICodeData interface. |
sequenceDiagram
participant User
participant CodeEditor as CodeSpaceComponent
participant Statusbar as CodeStatusbarComponent
participant DataModel as ICodeData
User-->>CodeEditor: Selects text
CodeEditor->>CodeEditor: onUpdate event triggered
CodeEditor->>DataModel: Calculate selectedChars and selectedColumns
CodeEditor->>Statusbar: Display selectedChars and selectedColumns
Statusbar-->>User: Shows updated selection info
Amidst the lines of code so bright,
Selected chars come into sight,
Columns count with metrics keen,
A coder's dream, a status seen.
In vim and vigor, editors gleam,
Code flows smoothly, like a stream.
🐰✨ with joy, we celebrate this scene!
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Improvements