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

Write Unicode Arrows → by shortcuts #4625

Open
reox opened this issue Aug 3, 2023 · 1 comment
Open

Write Unicode Arrows → by shortcuts #4625

reox opened this issue Aug 3, 2023 · 1 comment
Labels
1. to develop enhancement New feature or request good first issue Good for newcomers

Comments

@reox
Copy link

reox commented Aug 3, 2023

Is your feature request related to a problem? Please describe.

Some texteditors create unicode arrows when certain characters are written. For example -> creates .
Especially for deck, which uses the text editor, it would be a great enhancement, as I often use arrows to quickly describe things.

Describe the solution you'd like
Some combinations of characters should automatically be converted into unicode arrows, for example:

ASCII Unicode
->
<-
<->
=>
<=
<=>
-->
<--
<-->

Of course, there are many more, see https://en.wikipedia.org/wiki/Arrows_(Unicode_block) and https://en.wikipedia.org/wiki/Supplemental_Arrows-A - but not all of them are useful and/or can easily be detected in ASCII.

Describe alternatives you've considered
Some soft-keyboards allow to insert unicode symbols.

The Emoji picker has several arrows (:arrow_* ), however these are the Emoji styles, where I would like the base variants.

Additional context
The Emoji insertion could be used, for example when a colon is typed, the emoji picker pops up. It could be used as well, either by providing names for these arrows or by adding the ascii sequences.

@reox reox added the enhancement New feature or request label Aug 3, 2023
@juliusknorr
Copy link
Member

I think this is a nice suggestion.

https://tiptap.dev/api/extensions/typography could be used for that. Maybe there is a way to extend this with more options, otherwise this may need upstream contributions as not all your suggestions are there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants