You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#347
Implement hanging indent for lists in the note editor to improve readability.
* **Add `indentedLineWrap` plugin:**
- Import `indentedLineWrap` in `src/components/note-editor.tsx`.
- Add `indentedLineWrap` to the `extensions` array in `NoteEditor`.
* **Add CSS styles for indented wrapped lines:**
- Add styles for `.indented-wrapped-line` in `src/styles/codemirror.css`.
- Include margin-left and text-indent properties.
- Add styles for active line and indent markers.
* **Create `indentedLineWrap` plugin:**
- Add new file `src/utils/codemirror/indentedLineWrap.ts`.
- Implement `indentedLineWrap` plugin to handle list indentation.
- Define `getStartTabs` and `getDecorations` functions.
- Use `StateField` to define the plugin.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace-dev.githubnext.com/lumen-notes/lumen/issues/347?shareId=XXXX-XXXX-XXXX-XXXX).
To improve readability in edit mode, the note editor should respect list indentation.
Bad
Good
References
The text was updated successfully, but these errors were encountered: