Skip to content

:SimplenoteList doesn't remove deleted notes if deleted outside of Simplenote.vim #114

@atomicules

Description

@atomicules

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:

  1. Inside Vim and using simplenote.vim create a new note
  2. Update the index so it's listed there with :SimplenoteList
  3. Quit
  4. Outside of Vim delete that note (don't trash, delete)
  5. Make a call to sn.get_note_list() using the cursor that simplenote.vim stored
  6. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions