Coder Social home page Coder Social logo

simplenotecli's Introduction

SimplenoteCLI

http://github.com/goerz/SimplenoteCLI

Author: Michael Goerz

SimplenoteCLI is a command line tool that provides access to the Simplenote. It consists of SimplenoteCLI.py, which is a python wrapper around the Simplenote API, as well as a independent CLI script, and simplenote.vim, which is a vim plugin (depending on SimplenoteCLI.py) for editing and managing notes in vim.

This code is licensed under the GPL

Install

Save the SimplenoteCLI.py script somewhere in your $PATH if you want to use it as a command line tool. If you only want to use it as a backend for the vim plugin, you can place it anywhere, e.g. ~/.vim/scripts/.

Save the simplenote.vim script in ~/.vim/plugin/. Edit the file to set the s:simplenote_bin variable to point to the SimplenoteCLI.py script.

Dependencies

Usage

Using SimplenoteCLI.py as a Command Line Tool

Usage: SimplenoteCLI.py [options] CMD ARGS


Executes given CMD, where CMD is one of the following, along with
correspondings ARGS:

list [FILENAME]               -  write list of all notes to FILENAME
                                 (or print to stdout if FILENAME not given)
search SEARCHTERM  [FILENAME] -  write list of notes matching SEARCHTERM to
                                 FILENAME (or print to stdout if FILENAME
                                 not given)
read KEY FILENAME             -  store note with KEY in FILENAME
write KEY FILENAME            -  update note with KEY with data from FILENAME
new FILENAME                  -  create new note from FILENAME
delete KEY                    -  delete note with KEY


Options:
  -h, --help            show this help message and exit
  --email=EMAIL         Email address to use for authentification
  --password=PASSWORD   Password to use for authentification (Read warning
                        below).
  --credfile=CREDFILE   File from which to read email (first line) and
                        password (second line). Defaults to
                        ~/.simplenotesyncrc
  --cachefile=CACHEFILE
                        File in which to cache information about notes. Using
                        a cachefile can dramatically speed up listing notes.
  --tokenfile=TOKENFILE
                        File in which to cache the authentication token
  --results=RESULTS     Maximum number of results to be returned in a search
  --encoding=ENCODING   Encoding for notes written to file or read from file
                        (defaults to utf-8).
  --dead                When deleting a note, delete it permanently

You are strongly advised to use the --credfile option instead of the
--password option. Giving a password in cleartext on the command line will
result in that password being visible in the process list and your history
file.

Using SimplenoteCLI.py as a Python API wrapper

To get information about the API implemented in SimplenoteCLI.py, start python in the same directory as SimplenoteCLI.py, and type in

import SimplenoteCLI
help(SimplenoteCLI)

Using the Vim Plugin

In vim, enter

:Simplenote

to get a listing of all notes. Use the shortcuts given at the top of the screen to edit, add, delete notes.

simplenotecli's People

Stargazers

mt3 avatar Michael Goerz avatar

Watchers

Michael Goerz avatar James Cloos avatar

Forkers

kbsymanz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.