Skip to content

Add typing shortcuts #994

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

Merged
merged 1 commit into from
Nov 2, 2022
Merged

Conversation

Blquinn
Copy link
Contributor

@Blquinn Blquinn commented Nov 2, 2022

This adds typing shortcuts that are similar to quill-js and apple's notes application.

Start lists with "1." or "-". When you press space after either of these strings, it will automatically format them as actual lists.

Indent / Dedent lists with and <Shift+Tab>.

Start lists with "1." or "-".
Indent / Dedent lists with <Tab> and <Shift+Tab>.
@@ -102,6 +102,26 @@ class QuillController extends ChangeNotifier {
.mergeAll(toggledStyle);
}

// Increases or decreases the indent of the current selection by 1.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decided to move this method into the controller, instead of copying it into a third place.

@singerdmx singerdmx merged commit 6c9698e into singerdmx:master Nov 2, 2022
@Blquinn Blquinn deleted the typing-shortcuts branch November 2, 2022 02:19
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