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

Fix text expander not working correctly in lists #1003

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

kizu
Copy link
Contributor

@kizu kizu commented Dec 26, 2024

I decided to fix an issue that I had for a while: when trying to autocomplete a mention when inside a list, pressing enter closed the text-expander and created a new list, leaving the mention unfinished.

before after
Screen.Recording.2024-12-26.at.11.51.40.mov
Screen.Recording.2024-12-26.at.11.54.29.mov

Did it by introducing a ref that is toggled on when the text-expander activates and off when it deactivates, and then checking this ref when doing the action on enter.

@kizu kizu force-pushed the fix-text-expander branch from 1dc8638 to 1d37484 Compare December 26, 2024 10:58
@kizu kizu force-pushed the fix-text-expander branch from 1d37484 to b4ecff6 Compare December 26, 2024 10:58
@cheeaun cheeaun added the bug Something isn't working label Dec 26, 2024
@cheeaun cheeaun merged commit de2df7a into cheeaun:main Dec 27, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants