Git Product home page Git Product logo

syncboostnote's Introduction

SyncBoostNote

forthebadge forthebadge forthebadge forthebadge

A simple cli to save your notes from Boostnotes directly to a Github repo.

Features:

Requirements:

Before using this cli, make sure you have the following:

  • git
    • If not installed visit, Git
  • python
    • IF note installed visit, Python
  • boostnote (also know where it is installed)

Installation:

  • To install from PyPi:
$ pip install syncboostnote
  • To install from source:
$ git clone https://github.com/DumbMachine/SyncBoostNote
$ cd syncboostnote
$ python setup.py install

Usage:

Default Usage:

This method assumes that the location of Boostnote local storage is the following:

/home/$USER/Boostnote

If this indeed is the location of the installation, then you don't really have to do anything.

  1. Create a Repo on github ( or use an existing one ), where you would like notes to be saved.
  2. Go to installation directory:
$ cd ~/Boostnote
  1. Initialise a git repository and add the remote to your desired repository.
$ git init
$ git remote add origin <repo_url>
  1. Let the cli take control now. Since your already have the correct location for Boostnote folder, all you have to do now is:
$ syncboostnote  # This will call the cli

This will add all your notes to repo and also generate .md files for them. ( placed in the */Boostnote/note/syncboostnote ). 5. To publish the added notes to your github repo

$ syncboostnote --sync

This will upload the folder Boostnote to github with the following tree:

$ tree Boostnote
Boosnote
├── boostnote.json
├── history.json
├── notes
|    ├── ....cson
|    ├── ....cson
|    └── syncboostnote
|        ├── ....md
|        ├── ....md
├──── README.md
  • Directory boostnote:
    • boostnote.json Created by boostnote
    • history.json Created by SyncBoostnote
    • Directory notes:
      • Raw .cson files used by BoostNote.
      • Directory syncboostnote:
        • .md files used display content on Github.
    • README.md Created by SyncBoostnote. Will help you keep track

README.md will have links to all your notes on the Github repo.

(base)  dumbmachine@dumbmachine  ~/Boostnote   master ●  git init  
Initialized empty Git repository in /home/dumbmachine/Boostnote/.git/
(base)  dumbmachine@dumbmachine  ~/Boostnote   master  git remote add origin [email protected]:DumbMachine/temp.git
(base)  ✘ dumbmachine@dumbmachine  ~/Boostnote   master  git remote add origin [email protected]:DumbMachine/SyncBoostNoteExample.git
(base)  dumbmachine@dumbmachine  ~/Boostnote   master  syncboostnote
(base)  dumbmachine@dumbmachine  ~/Boostnote   master  syncboostnote --sync
Adding all the things
[master (root-commit) 9b9bf03] .
 12 files changed, 1302 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 README.md
 create mode 100644 boostnote.json
 create mode 100644 history.json
 create mode 100644 notes/40c68663-6c75-4c85-a219-a60b137ad262.cson
 create mode 100644 notes/ad76eb68-c488-4e9e-bb7e-3a912d1df252.cson
 create mode 100644 notes/bbbcc9eb-2cbc-43ba-b6af-fdbcca305e71.cson
 create mode 100644 notes/cc0c17cb-25bb-45f6-bdf0-fc8b54e88bb2.cson
 create mode 100644 notes/syncboostnote/Day: Tuesday  Date: June 18.md
 create mode 100644 notes/syncboostnote/Dillinger.md
 create mode 100644 notes/syncboostnote/Stolen Content.md
 create mode 100644 notes/syncboostnote/SyncBoostNote.md
Enumerating objects: 16, done.
Counting objects: 100% (16/16), done.
Delta compression using up to 8 threads
Compressing objects: 100% (16/16), done.
Writing objects: 100% (16/16), 12.82 KiB | 2.56 MiB/s, done.
Total 16 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3), done.
To github.com:DumbMachine/SyncBoostNoteExample.git
 * [new branch]      master -> master
Everything up-to-date
(base)  dumbmachine@dumbmachine  ~/Boostnote   master  

image

Example of Repository Generated can be found here.

TODOS:

  • Order Shields inline, ( Dates in one line, tags in one, folder specific in one )

Thanks to this repo:

  • pycson
    • This helped in saving me alot of time.

syncboostnote's People

Contributors

dumbmachine avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

syncboostnote's Issues

Does this only support BoostNote?

Scenario: Sync a local directory of markdown files with GitHub.

Would this be able to handle if I set the path in the script correctly?

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.