-
Notifications
You must be signed in to change notification settings - Fork 250
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
[BUG] - Exception when deleting composing action tag, then starting new one #2240
Comments
@matthew-carroll Fixed it by directly using the Could of course be more optimized, in case there can actually only be one range, even if inserting a space, etc. Needs further testing, but so far this implementation appears to fix all three issues. |
@matthew-carroll I'm seeing a behavior that I'm not sure is expected. Pressing "/" at the beginning of a word causes the word to be converted to a composing tag: Screen.Recording.2024-10-14.at.20.38.48.movI wouldn't expect that. Could you confirm if this is desired? This might influence the fix for this bug. |
@angelosilvestre I don't remember. Is there a test that does that? |
@matthew-carroll I didn't find any tests for that. |
@angelosilvestre then let's assume that behavior isn't expected |
@angelosilvestre @matthew-carroll the behaviour in most apps with action tags is this:
This is how it works in Obsidian and Craft. In Superlist, they don't wait till the " ", they just hide the popover when there are no actions matching with the text between / and the caret. But the behaviour of matching till the caret is same. This is the updated code for
This alongside the fix added by @KevinBrendel completely fixes this issue. |
I think there was a small index error in my original fix, though I am not sure if it can make a difference in practice: |
@alterhuman It seems that updating |
@angelosilvestre the issue of caret getting stuck in the middle is not getting fixed for me by just update Also need to implement this: coneno@e95e848. This minor fix of index calculation didn't do anything but not bad to fix it: c0a6a3b |
Package Version
super_editor, GitHub, main branch
User Info
coneno, QuikFlow
To Reproduce
Steps to reproduce the behavior:
Actual behavior
Expected behavior
A new action tag is being composed.
Platform
macOS
Flutter version
Flutter 3.22.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b0850beeb2 (4 weeks ago) • 2024-07-16 21:43:41 -0700
Engine • revision 235db911ba
Tools • Dart 3.4.4 • DevTools 2.34.3
Screenshots
The text was updated successfully, but these errors were encountered: