Skip to content
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

Add hanging indent for lists in the note editor #402

Closed
wants to merge 1 commit into from

Commits on Aug 21, 2024

  1. Add hanging indent for lists in the note editor

    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).
    colebemis committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    9b9fe05 View commit details
    Browse the repository at this point in the history