Skip to content

Conversation

@perber
Copy link
Owner

@perber perber commented Jun 19, 2025

No description provided.

Copilot AI review requested due to automatic review settings June 19, 2025 17:23
@perber perber linked an issue Jun 19, 2025 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces new editor commands to support text wrapping and heading insertion, enhancing the editor's keyboard shortcuts and toolbar functionality.

  • Added functions insertWrappedText and insertHeadingAtStart in editorCommands.ts
  • Updated MarkdownToolbar.tsx and MarkdownEditor.tsx to use the new editor command functions
  • Integrated custom keyboard shortcuts in MarkdownCodeEditor.tsx for bold, italic, and heading formatting

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
ui/leafwiki-ui/src/features/editor/editorCommands.ts New functions for inserting wrapped text and headings
ui/leafwiki-ui/src/features/editor/MarkdownToolbar.tsx Updated tooltips and onClick handlers to use the centralized editor commands
ui/leafwiki-ui/src/features/editor/MarkdownEditor.tsx Integrated new text insertion functions for real-time document updates
ui/leafwiki-ui/src/features/editor/MarkdownCodeEditor.tsx Added custom keyboard shortcuts and updated keymap ordering
@perber perber force-pushed the feature/add-markdown-editor-toolbar-shortcuts branch from 02bb950 to 1cf9c38 Compare June 19, 2025 17:25
@perber perber merged commit d04acec into main Jun 19, 2025
4 checks passed
@perber perber deleted the feature/add-markdown-editor-toolbar-shortcuts branch June 19, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants