Skip to content

Commit

Permalink
Update README to reflect single window mode
Browse files Browse the repository at this point in the history
Also update TODO note that I can't figure out a way to tidy up the
nested ifs.

References #70
  • Loading branch information
atomicules committed Sep 26, 2015
1 parent f213717 commit 0497fc4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions README.md
Expand Up @@ -158,8 +158,7 @@ The format of the date string is also configurable using the
`g:SimplenoteStrftime` option. The default strftime is
`"%a, %d %b %Y %H:%M:%S"`.

## Colors

### Colors
If the `+conceal` feature is enabled in vim then syntax highlighting is
supported for the Simplenote note list. The highlight groups supported are:

Expand All @@ -172,6 +171,16 @@ supported for the Simplenote note list. The highlight groups supported are:
SN_NoteAgeYear note title - less than a year old ('%N' format)
SN_NoteAgeAncient note title - ancient ('%N' format)

## Single Window Mode
By default simplenote.vim will open notes in new windows. If you would prefer
simplenote.vim to emulate the behaviour of the Simplenote website and native
applications then set `g:SimplenoteSingleWindow` (to anything) in your `.vimrc`
and simplenote.vim will try as much as possible to re-use one window for
opening all notes. Note: due to the way Vim handles and numbers windows, this
behaviour can't be perfect and if you manually open a window between the note
index and the first note opened then this new window will be targetted for
notes.

## Dependencies
Version 2 of the SimpleNote API relies heavily on JSON. As JSON and VimL don't
really play nice together, basic parts of this plugin are implemented in python.
Expand Down
2 changes: 1 addition & 1 deletion autoload/simplenote.vim
Expand Up @@ -76,7 +76,7 @@ let g:simplenote_scratch_buffer = 'Simplenote'
let g:simplenote_note_winnr = 0

" Function that opens or navigates to the scratch buffer.
" TODO: This is a complicated mess and could be improved
" TODO: This is a complicated mess and it would be nice to improve it, but I'm really not sure how.
function! s:ScratchBufferOpen(name)
let exe_new = "new "
let exe_split = "split "
Expand Down

0 comments on commit 0497fc4

Please sign in to comment.