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

Auto Close Brackets #815

Open
hariiprasath opened this issue Nov 29, 2023 · 0 comments
Open

Auto Close Brackets #815

hariiprasath opened this issue Nov 29, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@hariiprasath
Copy link

hariiprasath commented Nov 29, 2023

What makes the feature necessary?
It is a couple of features that can be bundled into one extension.

Coding-oriented writing tools and IDEs like Sublime Text Editor, VS Code, etc. have this automation that adds a closing bracket when the user types any opening brackets.
They also allow selecting text and typing opening brackets to enclose the selected text with both opening and closing brackets.

This comes in handy not only for writing code but arguably for general writing as well. I can't really imagine a situation where you won't close opened brackets unless they are part of emojis.

How would the feature work?

  • When any opening bracket ( { [ < is typed, Notion should automatically add the appropriate closing bracket after the cursor.
  • When an opening bracket is typed while any text is selected, Notion should enclose the selected text with opening and closing brackets. If the user types a closing bracket, it simply moves the cursor to after the auto inserted closing bracket.
  • The enclosing selected text with brackets feature should also allow easy page creation (selecting text and typing [[ should make it a page). This would help a lot because, during focused writing, we decide what word/phrase becomes a page mostly after we type it.
@hariiprasath hariiprasath added the enhancement New feature or request label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant