Skip to content

Enable Paragraphs with Enter Key#117

Open
oupadhyay wants to merge 1 commit into
UdaraJay:mainfrom
oupadhyay:add-paragraphs
Open

Enable Paragraphs with Enter Key#117
oupadhyay wants to merge 1 commit into
UdaraJay:mainfrom
oupadhyay:add-paragraphs

Conversation

@oupadhyay

@oupadhyay oupadhyay commented Jun 8, 2025

Copy link
Copy Markdown

Hey @UdaraJay,

This PR addresses the need for more natural paragraph creation within the editor, improves paragraph styling, and updates the editor's submit shortcut for better usability.

  • Paragraph Creation: The Enter key now creates new paragraphs in the editor, aligning with standard text editing behavior. Shift+Enter still creates a soft break (line break within a paragraph).
  • Editor Enter Shortcut: The submit shortcut has been changed from Enter to Meta+Enter (Cmd+Enter on macOS, Ctrl+Enter on Windows/Linux). This prevents accidental submissions when users intend to create new paragraphs.
  • Paragraph Styling: Improved paragraph styling in the editor while editing to match final formatting.
blur.mp4

Copilot AI left a comment

Copy link
Copy Markdown

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 enhances the editor experience by enabling natural paragraph creation using the Enter key, adjusts paragraph styling, and updates the submit shortcut to prevent accidental submissions.

  • Updated submit keyboard shortcut from Enter to Meta+Enter
  • Improved paragraph styling in the editor's SCSS
  • Adjusted package configuration and dependency versions for improved testing and module resolution

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

File Description
src/renderer/pages/Pile/Editor/index.jsx Updated keyboard shortcut mapping for submitting the editor content
src/renderer/pages/Pile/Editor/ProseMirror.scss Improved styling for paragraphs, preformatting and horizontal rules
package.json Updated dependency versions and added module aliases
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants