Package: nvpy
nvpy is a simplenote-syncing note-taking tool inspired by Notational
Velocity (and a little bit by nvALT too) on OSX and ResophNotes on
Windows. It is significantly uglier, but it is cross-platform.  Yes,
you heard right, you can run this on Linux (tested), Windows (tested)
and OS X (lightly tested).It was written by Charl Botha, who needed a simplenote client on Linux and doesn’t mind ugliness (that much). Sjaak Westdijk has contributed significantly to the codebase since right after the 0.8.5 release.
Since nvPY v1.0.0, it is maintained byyuuki0xff.nvpy lives happily athttps://github.com/cpbotha/nvpyFor news and discussion, join thepublic nvpy google groupor subscribe to itsRSS topic feed.DISCLAIMERIf nvpy blows up your computer, loses your job or just deletes all
your notes, I am NOT liable for anything. Also see the liability
clause at the end of the new BSD licence text in the COPYRIGHT file.That being said, I use nvpy daily on my own precious notes database
and it hasn’t disappointed me (yet).Screenshots and screencastsScreenshot taken shortly before the 0.9.7 release (clam theme, droid font):Screencast of nvpy’s inter-note linking (May 27, 2012):http://youtu.be/NXuVMZr31SIScreencast of nvpy’s gstyle search mode (October 18, 2012):http://youtu.be/dzILoLC5vRMPicasa Web album containing various screenshots over time.A note on automatic syncingWhen nvPY starts up, it automatically performs a full sync. When you start it up for the first time, this can take quite a while. On subsquent startups, it’s much faster, as it maintains its own database on disk.While running, nvPY automatically and continuously saves and syncs any changes to disk and to simplenote. You don’t have to do anything besides typing your notes.If you edit the same note simultaneously in nvPY and for example the web interface, these changes will be merged as you work.If you add or delete notes from a completely different location, nvPY will not pick this up until your next full sync. In the future, this will also happen automatically.In short: You usually don’t have to worry about syncing and saving, simplenote takes care of this. If you have any more questions, please post them in thenvpy google group.InstallationSee thenvPY installation guide.How to run for the first timeCreate a file called .nvpy.cfg in your home directory that looks like
the following:[nvpy]
sn_username = your_simplenote_username
sn_password = your_simplenote_passwordIf you installed this via pip install, you should now be able to start
the application by typing “nvpy”. The first time you run it, it will take
a while as it downloads all of your simplenote notes. Subsequent runs
are much faster as it uses the database it stores in your home directory.If you prefer to run from your git clone, you can just invoke python on nvpy.py, or on the nvpy package directory.Theexample nvpy.cfgshows how you can configure the font
family and size, the widget theme (!) configure nvpy to save and load notes as clear text, disable simplenote syncing, and so forth.Making nvpy slightly less ugly on LinuxOn Linux, I set the nvpy ttk theme toclam(instead ofdefault; the example
config above has more information about themes), and I select nicer fonts. The
relevant config options are as follows:theme = clam
font_family = droid sans mono
font_size = 12
list_font_size = 12On Debian systems, you have to install thefonts-droidpackage to be able to
select the attractivedroid sans monofont.ubuntu monois also good and
should work out of the box on Ubuntu installations.Let us know on the Google group if you have suggestions for further decreasing
the level of ugliness!Theme CustomizationnvPY was prepared two themes.  You can apply it by editingnvpy.cfg.Light Theme:# Colors (light theme)
text_color = black
selected_note_color = light blue
note_info_color = dark gray
highlight_note_info_color = light yellow
url_color = blue
background_color = white
highlight_background_color = yellowDark Theme:# Colors (dark theme)
text_color = white
selected_note_color = #04a
note_info_color = light gray
highlight_note_info_color = #440
url_color = #08f
background_color = black
highlight_background_color = #440If you dont like it, it would be better to customize the theme as your like.
Let’s change some options based on the above theme.
Options are accept 3 formats:Hex triplet format (#rrggbb)Shorthand hex triplet format (#rgb)Color names  (Seecolor names listandcolor chart)Note: during customizing the theme we highly recommend settingsimplenote_sync = 0to disable sync.
Because prevent reach the API rate limit by automatic full synchronization at startup.Keyboard handlingnvPY was designed for lightning-speed note-taking and management with
the keyboard. As you type words in the search bar, the list of notes
found will be refined. In the default search mode (“gstyle”), it finds
notes that contain all the words you enter. For example:t:work t:leads python imaging "exact phrase"Will find all notes tagged with both “work” and “leads” containing the
words “python” and “imaging” (anywhere, and in any order) and the exact
phrase “exact phrase”. The default is to search with case-sensitivity.
This can be changed with the CS checkbox. Remember though that
case-sensitivity has a significant effect on search speed.By editing the config file, or by toggling the search mode option menu,
you can use regular expression search mode. This is of course much more
powerful, but is much slower than gstyle. The difference is noticeable
on large note collections.Here’s a summary of the different shortcut keys that you can use in nvPY:Key comboActionCtrl-?Display these key-bindings.Ctrl-ASelect all text when in the note editor.Ctrl-CCopy selected text into the clipboard. If no text is selected, copy the note title.Ctrl-DMove note to trash. This can be easily recovered using the simplenote webapp.Ctrl-FStart real-time incremental regular expression search. As you type, notes list is filtered. Up / down cursor keys go to previous / next note.Ctrl-GEdit tags for currently selected note. Press ESC to return to note editing.Ctrl-JNavigate (down) to next note in list. (VIM binding)Ctrl-KNavigate (up) to previous note in list. (VIM binding)Ctrl-MRender Markdown note to HTML and open browser window.Ctrl-NCreate new note.Ctrl-QExit nvPY.Ctrl-RRender reStructuredText (reST) note to HTML and open browser window.Ctrl-SForce sync of current note with simplenote server. Saving to disc and syncing to server also happen continuously in the background.Ctrl-Shift-SToggle a pinned button.Ctrl-YRedo note edits.Ctrl-ZUndo note edits.Ctrl-SPACEIn search box, autocomplete tag under cursor. Keep on pressing for more alternatives.Ctrl-+/-Increase or decrease the font size.Ctrl-BSDelete previous word in the note editor.Ctrl-DeleteDelete next word in the note editor.ESCGo from edit mode to search box (and, optionally, in empty search box, exit nvPY).Ctrl-[Same as ESC. (VIM binding)ENTERStart editing currently selected note. If there’s a search string but no notes in the list, ENTER creates a new note with that search string as its title.FeaturesSyncs with simplenote.Support for simplenote tags and note pinning.Partial syncs (whilst notes are being edited) are done by a
background thread so you can keep on working at light speed.Can be used offline, also without simplenote account.Search box does realtime gstyle or regular expression searching in all your
notes. All occurrences of the search string are also
highlighted in currently active note.Markdown rendering to browser.Continuous rendering mode: If you activate this before
starting the markdown rendering, nvpy will render new html of
the currently open note every few seconds. Due to the refresh
tag in the generated HTML, the browser will refresh every few
seconds. MAGIC UPDATES!reStructuredText (reST) rendering to browser. Yes, you can use nvPY
as your reST previewer.Automatic hyperlink highlighting in text widget.KickAss(tm) inter-note linking with [[note name]]. If note name is
not found in current list of notes, assumes it’s a regular expression
and sets it in the search bar. See thescreencast.Planned featuressqlite storage backend.Full(ish) screen mode.Prettiness.Bugs and feedbackReport bugs withthe github issue tracker.It’s an even better idea to clone, fix and then send me a pull request.If you have questions, or would like to discuss nvpy-related matters, please do so via thenvpy google discussion group / mailing list.If you really like nvpy, you could make me and you even happier bytipping me with paypal!CreditsSjaak Westdijk made significant contributions to the code starting after the 0.8.5 release.nvpy uses thefantastic simplenote.py library by mrtazz.The brilliant application icon, a blue mini car (not as fast as the notational velocity rocket, get it?), is byCemagraphics.Thank you very much peeps for the PayPal tips!
* stfa
*https://github.com/gudnm* stephen powell
* Robert Munger
* Jordan McCommons
* Jan Steinocher
* T AndersonRunning TestsRun the following command.make testNOTE: While test cases are running, the nvpy window is displayed many times.  It will impede your work.