splitwise / TokenAutoComplete

Gmail style MultiAutoCompleteTextView for Android
Apache License 2.0
1.3k stars 383 forks source link

[WIP] Paste support #197

Closed saket closed 1 year ago

saket commented 8 years ago

This was pretty easy to do. Enabling long-press was all I had to do to make the context menu show up. The pasted text gets inserted into the field, triggering suggestions.

TODO
  1. This breaks the allowDuplicates feature. @mgod Please see https://github.com/splitwise/TokenAutoComplete/commit/6317aee01c5ef0afa72387ab1a1dc315616d588a
  2. Support pasting of multiple tokens (separated by delimiters) in one go. My implementation assumes that the user will only paste text for one token at a time.
dkadrikj commented 8 years ago

Any updates merging this and releasing it?

saket commented 8 years ago

@dkadrikj This is blocked on me. This PR does not support handling pastes of multiple tokens. I've added it to my project but in a very messy way. Will try cleaning it and adding it to this PR.

niteshreddy commented 8 years ago

@Saketme any updates ? :)

saket commented 8 years ago

@niteshreddy In between changing jobs, so haven't gotten enough time to work on this. I can, however, help you make this work in your app if you want :)

niteshreddy commented 8 years ago

@Saketme I will take you up on that offer. @Saketme I will take that offer if you are still up for it.

saket commented 8 years ago

@niteshreddy To start with, you can simply implement the changes I've made in this PR.