simpletask-android
simpletask-android copied to clipboard
Drop down + auto complete for contexts and projects when adding tasks
It would be great if Simpletask would automatically offer suggested completions (based on existing contexts and projects) as a user types. A user could then enter the first couple of letters of a project or context and then tap on a suggestion in order to enter it.
The trigger for this would be the typing @ (or +) followed by one or more characters. This behaviour would be similar to todoist, for example.
Not sure how to mark this as an enhancement.
This is kind of a duplicate of discussion in https://github.com/mpcjanssen/simpletask-android/issues/182, but I'll leave it open because it has a clearer title:)
great idea, but from experience with handling the Android text and keyboard api, probably a pain to implement. I don't think I will spend much time on it unless there is some code from somewhere else that can be adapted.
these are also the things which tend to break between Android version, so they add a considerable maintenance burden.
Would it be possible to add as-you-type filtering to the Project and Context dialogs instead? Would it also be possible to launch the project or context dialogs when a user types '+' or '@'?
I wonder if autocompletion is something we could find a library for, that would save us from the maintenance burden.
What would this library provide, ideally? Also, would such a library still be necessary if autocompletion were implemented via the existing Context and Projects dialogs? i.e.
- Adding as-you-type filtering to those two dialogs
- Adding the ability to launch those dialogs automatically when a user types '@' or '+'
@harshad1 the tricky part is detecting when the dialogs need to pop up and putting the autocompletions in the text box. Show the dialogs is the easy part. The library would ideally take care of the detection part.
Even then an Android upgrade might break the possibly at that point unmaintained library.
I just found this issue as I was thinking about how to avoid typing in duplicates, e.g. items on a shopping list. Most likely these things will be repeated. Of course you can search the (probably long) list of completed items in your list, but I guess it would speed things up, if one can auto-complete just on the items, which are already there. Upon the completion event, the user would just re-activate the chosen item.
In terms of libraries, there this stuff is pretty standard and contained in the Android API since level 1. Honestly I do not know (currently) how SimpleTask implements its input, but I guess, the standard API it could be extended easily. Ref: https://developer.android.com/reference/android/widget/AutoCompleteTextView
@marscher a workaround to quickly add to an already existing list/tag is to filter on that list/tag and then add a new task, every line will be prefilled with the list or tag you filtered on.
Thanks @mpcjanssen. This becomes handy for quickly writing new lists. But it does avoid duplicates in any sense.