-
Notifications
You must be signed in to change notification settings - Fork 34
Description
I'm trying to find some time to get back into this
Anyway, in the meantime I had a huge note clean-up recently and deleted hundreds of notes (I still have hundreds left, but was well over a thousand).
I've noticed that :SimplenoteList
didn't remove any of the notes from the list I'd deleted (since we adding caching of that list).
In looking into this a bit more I think this might be a bug/limitation of the Simperium API? I need to double check, but I did this:
- Inside Vim and using simplenote.vim create a new note
- Update the index so it's listed there with
:SimplenoteList
- Quit
- Outside of Vim delete that note (don't trash, delete)
- Make a call to
sn.get_note_list()
using the cursor that simplenote.vim stored - Observe that nothing is returned
If that's true, that's... not great; I am pretty sure this is true.
The work-around in the meantime is to just blow away the list index and re-create it. It is very rare I do a mass delete of notes (first time ever for me in years of using Simplenote).
Asides from that we'd have to call the api for all notes (but no data returned, just ids) and remove the ids no longer found. If we are doing that, is there any point even using the bucket changes endpoint?
Need to think about this.