scribe-org / scribe-org/Scribe-iOS
Dictionary based history to autocomplete
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 169
- Forks
- 109
- PR merge metrics
- No merged PRs in 30d
Description
Terms
- I have searched open and closed feature requests
- I agree to follow Scribe-iOS' Code of Conduct
Description
Current implementation
Currently when a user chooses an autocompletion, the word in appended to the text proxy on pressing spacebar. In case the user doesn't want the autocompletion, the word they had typed appears as the first suggestion in the autosuggest array. As the user starts typing the next word and uses autocomplete again, the autosuggest will show the partial word the user typed for that particular word.
Behaviour proposed by this issue
Store the history of words as a key-value pair so that the user can revert any word back to what they had typed at any point. This can be cleared when the text proxy is cleared or user submits the corresponding text. It is open to discussion as to what extent the history should be maintained, i.e. last k-words.
Contribution
I would be happy to assist someone on this issue or do it myself post GSoC :)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the current autocomplete behavior described in the issue and locating the keyboard code that appends accepted words and builds suggestions. Clarify how many words the history should retain and when it is cleared before implementation. Done means users can restore earlier typed words consistently, with tests covering the agreed history and clearing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100