Skip to content
Permalink
Branch: allow-token-in…
Commits on Jan 9, 2019
  1. Allow token to be provided instead of user/pass

    atomicules committed Jan 9, 2019
    We are being rate limited on auth. As a work-around users can grab a
    token from a web app session:
    
        simperium_opts['token']
    
    And then use that to auth simplenote.vim by setting:
    
        let g:SimplenoteToken = "mytoken"
    
    in the .vimrc.
    
    Should also look to cache a token...
    
    References #103
Commits on Nov 5, 2018
  1. Bump version to v2.2.0

    atomicules committed Nov 5, 2018
  2. Try to keep list index width when vertical and using default width

    atomicules committed Nov 5, 2018
    Previously it picked 50%, which is all good until we started refreshing
    the list index as it just halves the window again. Err.. that's stupid.
    So instead only do that once, when the list index is first displayed.
    Then keep that value.
    
    Not going to be perfect, but if it ever goes screwy (I'm think ssh from
    a terminal of a different size - maybe?) then at least the list index is
    cache so it's easy to quit and start again.
    
    Doesn't affect folk with a set list size or those still using the old
    horizontal layout.
  3. Save index list to disk for faster start

    atomicules committed Nov 5, 2018
    Finally. Should have done this years ago, but have been busy.i What can
    you do?!
    
    Fixes: #102
    Fixes: #96
    References: #98
Commits on Nov 4, 2018
  1. Bump version to v2.1.0

    atomicules committed Nov 4, 2018
  2. Keep in memory cache of notes to speed up list index updates

    atomicules committed Nov 4, 2018
    Relies on upstream changes in simplenote.py to fetch only notes changed
    since a cursor.
    
    This way though the initial load of a list index is slow, but any
    subsequent updates of `:SimplenoteIndex` are _much_ faster.
    
    This is paving the way for then storing this lightweight cache on disk
    so startup from scratch is also faster. Baby steps. It's still not a
    full offline cache of notes, but I still don't know if simplenote.vim
    should ever do that. There are other solutions.
    
    Also remove some blank lines, fix some typos/grammar, etc that I
    noticed.
    
    References: #102
    References: #96
    References: #18
Commits on Oct 30, 2018
  1. Bump version to v2.0.3

    atomicules committed Oct 30, 2018
  2. Need to send tags by default with Simperium

    atomicules committed Oct 30, 2018
    Otherwise tags will get wiped out and set to empty.
Commits on Oct 20, 2018
  1. Bump version to v2.0.2

    atomicules committed Oct 20, 2018
  2. Remove references to since in get_note_list, pull in sn.py 2.0.3

    atomicules committed Oct 20, 2018
    References: #101
    
    Might not fix that, hence references.
Commits on Oct 17, 2018
  1. Bump version to v2.0.1

    atomicules committed Oct 17, 2018
    Pull in v2.0.2 of simplenote.py whilst at it. No real functionality
    change, just keep stuff up to date.
  2. More unicode fixes as a result of Simperium

    atomicules committed Oct 17, 2018
    I.e. as per bc6cbff, just extending out
    to other places I should have done at the time or shortly after, but
    forgot; In lieu of really, really, getting to grips with the Unicode
    changes in simplenote.py that seem to have come with Simperium (or that
    I somehow accidentally caused).
Commits on Sep 30, 2018
  1. Bump version to v2.0.0

    atomicules committed Sep 30, 2018
  2. Quick Simperium fixes

    atomicules committed Sep 30, 2018
    I am pushed for time. As with the simplenote.py changes for Simperium
    I'm just trying to get something out that _works_ and then I can work on
    making the code better.
    
    It'd be easy if Python 2 just went away though.
    
    - Use simplenote.py v2.0.0 (Simperium API)
    - Make one test change; Haven't really looked into why it's now True
    instead of 1. I.e. don't know if that's a Simperium change or something
    I've not got quite right in the simplenote.py changes
    - Handle the one Unicode / UTF-8 breakage I've found so far.
Commits on Apr 9, 2018
Commits on Mar 24, 2018
  1. Bump version to v1.4.5

    atomicules committed Mar 24, 2018
  2. Update simplenote.py so we can move tag sorting there.

    atomicules committed Mar 24, 2018
    Also fixes an issue reported here:
    
    29d52cc#commitcomment-28161153
Commits on Mar 4, 2018
  1. Bump version to v1.4.4

    atomicules committed Mar 4, 2018
  2. Re-work sorting of notes in list index

    atomicules committed Mar 4, 2018
    This somewhat goes all the back to commit:
    729f151 where I somewhat lazily made
    Python 3 compatible by using the `cmp_to_key` function.
    
    Finally getting around to looking into #97 I realised the only way to
    fix that issue was moving the sorting to an iterative based approach
    where, say if we are sorting on "pinned, tags, modifydate", we first sort
    the notes on modifydate, then go through them again and sort on tags and
    finally on the primary key of pinned.
    
    The `cmp_to_key` based function can't do this as it's only really doing
    a single iteration through the notes, but trying to check all the
    criteria (by iterating through the criteria) at once. This is why we
    ended up with little groups within tags sorted by modified date.
    
    Anyway, as a result of all this it's actually a lot simpler.
    
    - Sort by tag is purely on existence of tags now (no alpha sort or
      number of tags sort)
    - We are sorting tags within a note by alpha for display purposes; This
      should be moved to Simplenote.py
    
    I've probably not explained any of that well.
    
    Fixes: #97
Commits on Feb 28, 2018
  1. Bump version to v1.4.3

    atomicules committed Feb 28, 2018
Commits on Feb 26, 2018
  1. Update simplenote.py to 1.0.4

    atomicules committed Feb 26, 2018
    Fixes: #99
Commits on Jan 29, 2017
  1. Merge branch 'issue94'

    atomicules committed Jan 29, 2017
  2. Remove test files for the credential tests

    atomicules committed Jan 29, 2017
    These can be brought back in at some point, but for now I'd prefer to
    keep everything in Vader.
  3. Fix sort order of note titles

    atomicules committed Jan 29, 2017
    Previously it sorted Z-A, makes more sense to sort A-Z.
    
    There are comments in this issue about a better/fuller approach being to
    build something that can parse a +/- on the sort string so sort orders
    can be reversed. Exercise for another day though.
    
    Fixes #95
Commits on Jan 21, 2017
  1. Bump version to v1.4.2

    atomicules committed Jan 21, 2017
  2. Need to reset s:renaming after :SimplenoteNew as well

    atomicules committed Jan 21, 2017
    Missed from commit 485eb6b
Commits on Jan 15, 2017
  1. Allow asking the user for username and password separately

    derteta committed Jan 15, 2017
    so that, for example, one can store their username and still be
    asked for the password each session.
  2. Provide unit tests for the `if` clause of `set_cred`

    derteta committed Jan 15, 2017
    to prevent regressions in the upcoming changes.
  3. Add .gitignore

    derteta committed Jan 15, 2017
    Ignoring only pyc files for now.
Commits on Dec 24, 2016
  1. Bump version to v1.4.1

    atomicules committed Dec 24, 2016
  2. Bump version to v1.4.0

    atomicules committed Dec 24, 2016
Commits on Dec 23, 2016
  1. Need to reset s:renaming after :SimpleUpdate

    atomicules committed Dec 23, 2016
    I found that calling :w, :SimplenoteUpdate and then :w again would fail
    on the last write. Tests pass still so I assume the writing to a local
    file still works.
    
    References #92
Older
You can’t perform that action at this time.