-
Notifications
You must be signed in to change notification settings - Fork 83
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
Hit space to insert highlighted autocompletion #256
Comments
@andrewtavis could you please assign me to this? :) |
Most definitely, @cameronslee23! Can’t think of a better person to work on this 😊 |
Hi @andrewtavis, The condition in #250 checks if currentPrefix == completionWords[0]. This assumes that the entire word is already typed in the proxy by the user. Does this issue look to insert another instance of that same word? Or should we be considering other words that are candidates of autocompletion? |
@cameronslee23, I'd say that for now we can just do |
Hey @andrewtavis, one instance that I can think of is for case correction. For instance, when the user types |
Ah yes, you're right @SaurabhJamadagni! So we'd have to lower case each of the strings in |
Sort of @andrewtavis. Assuming that the autocompletion has the correct case, we change the case of the entered word or the |
Yes, this all makes sense, @SaurabhJamadagni 😊 Give me a quick second to get to #214, and then I think we should be ready to work on this. That's been sitting for a bit and needs some work, but definitely should be merged eventually as it does solve the issue at hand. |
Sounds good @andrewtavis. Any other issue you would like me to look at meanwhile? |
Let me get to these things and then we can jump back in together, @SaurabhJamadagni :) Sorry, I'm kind of in the zone working on getting another project into alpha (hence all the private commits) 😊 |
@SaurabhJamadagni, #214 has now been finished :) Sorry for putting a hold on the this and other issues while I took some time to make sure that went well. Do you want to do a PR for this? (@cameronslee23, you'd also be welcome to - just give us a shout! 🙃) Also, might be good if you looked into the KeyboardsBase/ToolTip directory that comes from #214 so we can discuss in the call. I left most of the original code in there, but I feel like some of it is potentially unnecessary 🤔 Would be good to discuss a bit :) This one should be pretty quick, and then we can move to #51 as we now have the needed emoji data? From there back to #96? We can also discuss the plan in the call, but just wanted to outline what I'm thinking 😊 |
Yeah no problem @andrewtavis. Let's see if @cameronslee23 would be interested. Else I'll get to it :)
On it.
I think we would have to first figure out the data optimization problem from #96 before adding more data right? |
We wouldn't release after #51 regardless, @SaurabhJamadagni, but happy to switch to #96 :) Let's figure it out in the call 😊 |
Hey @andrewtavis, I'll take over this issue in that case. Will have a PR soon :) |
@andrewtavis I had a small question, consider the user wishes to type 'Homburg'. The word would get highlighted after the user has completed typing it already right? So if the user has already typed the word, what would we be inserting on space? 😅 Here's what I was thinking:
Example:
|
I guess just a space :) There's no space after, so we can't do autosuggestions.
This is a great idea! 😊
So does this mean if they press backspace it'll delete the part of the word that was inserted that they'd yet to have typed? Just checking :) Another option on this could be that the first autosuggestion that we provide after this would be the word that they had typed before? So if they want Btw, are we meaning Hamburg in these examples? 🙃 There's also a Homburg, but I figure you meant the port city? 😊 |
Yeah @andrewtavis, that could be a possibly good implementation. I'll try it that way.
Haha np I actually didn't mean any of it. I just couldn't think of any german words to try it with so I just picked one from the german JSONs. I don't even know what Homburg means 😂 |
Sounds good!
Just a small town in Germany where the people from there are doubtless like "I'm from Homburg, not Hamburg" 😅 |
Hey @andrewtavis. Sorry I couldn't get to the pull request. A few things came up. I'll try to get it out tomorrow (Sunday) else, will get to it after my exam on Wednesday. I hope that's alright. Sorry for the delay. |
No stress whatsoever, @SaurabhJamadagni :) Hope all is well 🙏 Get to it when you can, and after your exam is totally fine! |
Can I work on this issue ? |
Hi @Abdullahhh12! :) Thanks for your interest in contributing! 😊 @SaurabhJamadagni already has changes for this finished in #259. I would be happy to suggest other issues if that’d be of interest to you :) |
Closed via #259 😊 |
@SaurabhJamadagni, I'll get to the PR in Scribe-Data in the next few days and we can then jump into #51 😊 |
Hey @andrewtavis, does anything in this issue need to be looked at? Or did you assign me this issue for documentation purposes 😅 ? |
I was going through and assigning issues for documentation purposes, @SaurabhJamadagni 😊 Sorry for the distraction :) |
No worries :) |
Terms
Description
A feature of system keyboards is that a user can press space to insert an autocompletion if it's highlighted. This issue is to add this feature to Scribe 😊 We'd want to check if there is a highlighted word, which was completed in #250 (see that issue for how to check for the conditions that highlight). After this, we'd then want to add a condition to the actions that occur after space is pressed where if the conditions for highlighting are met, then we'd insert the word in the highlighted autocompletion followed by a space. The place where
spaceBar
actions are is here in the mainKeyboardViewController
:Scribe-iOS/Keyboards/KeyboardsBase/KeyboardViewController.swift
Line 1812 in c07f06d
Contribution
I'd be happy to support someone with this issue or work on it if no one else has interest 🙃
The text was updated successfully, but these errors were encountered: