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

Hashtags and mentions #48

Open
PaddiM8 opened this issue Jul 5, 2023 · 9 comments
Open

Hashtags and mentions #48

PaddiM8 opened this issue Jul 5, 2023 · 9 comments

Comments

@PaddiM8
Copy link
Contributor

PaddiM8 commented Jul 5, 2023

Is it possible to detect hashtags and mentions? If so, how?

@umaranis
Copy link
Owner

umaranis commented Jul 6, 2023

Hi @PaddiM8 ,

Hashtags and mentions are not ported to svelte-lexical yet. Would you be interested in working on it? I can help you get started. Otherwise, I can bump up the priority of this feature on my list of tasks.

@PaddiM8
Copy link
Contributor Author

PaddiM8 commented Jul 6, 2023

@umaranis I see! You made me curious, so I tried to implement a quick hashtag plugin, and did actually manage to get it to work. However, it's fairly similar to the keyword plugin, so I don't know if you have any particular plans for that?

@umaranis
Copy link
Owner

umaranis commented Jul 6, 2023

@PaddiM8 That's awesome. Could you submit the pull request for hashtag plugin?

KeywordPlugin is already implemented. You can find it here.

@PaddiM8
Copy link
Contributor Author

PaddiM8 commented Jul 7, 2023

Made a PR! Not sure about mentions though, might leave that to someone else.

@umaranis
Copy link
Owner

umaranis commented Jul 8, 2023

Thanks a lot @PaddiM8 . PR is merged

@PaddiM8
Copy link
Contributor Author

PaddiM8 commented Jul 8, 2023

Great! Neat

@ysk3a
Copy link

ysk3a commented Oct 15, 2023

Any chance you have a demo of having mentions feature? I followed the steps to run the playground locally
https://github.com/umaranis/svelte-lexical#development-notes
and it appears that there is no mentions feature.
it seems that hashtag is working but typing @ and some letter does not show any suggestion dropdown.

@umaranis
Copy link
Owner

Hi @ysk3a ,

Mentions plugin is not implemented yet. Could you help with it?

I will try to prioritise it if you can't take it up.

@ysk3a
Copy link

ysk3a commented Oct 17, 2023

First I like to say thank you for the library.
but i'm sorry, I am not too familiar with svelte or react. I'm still learning svelte. I came across the lexical library since it looked like it had hashtag and mentions feature and then came across this.
I had initially wondered if i could use
https://github.com/sodenn/lexical-beautiful-mentions
as 'just plug and use' but seemed like it only works in react.

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

No branches or pull requests

3 participants