I am writing a simple plugin which pastes multiple lines in one joined by a separator.
The plugin and its description can be found here: https://github.com/OoDeLally/MultiCaretPaste.
Currently, the final carets are places between the items.
Now, I would like to be able to cycle (pressing TAB) through different caret configuration: before each item, between items, after each item. I wrote a pictued example of it on that stackoverflow topic: https://stackoverflow.com/questions/46619412/sublime-text-paste-joined-multicursor
A similar behavior already exists with snippets fields, where the user can cycle through $0, $1, $2, etc.
Do you know if its doable with the plugin api ?