Giter Site home page Giter Site logo

import-markdown-to-day-one's Introduction

Split.sh is the first of two scripts that will import a bunch of text files formated in Markdown as Day One entries.

In order to work, each file name must start with AAAA-MMDD (wich will be as the date of the entries) and contain only one entry. So if, like me, you used to write a day worth of entries in a single file, like this:

2012-0816-J-my daily diary.txt:

### 17H32
Some text.

### 23h41
Some more text.
![alt text](link to an image)

Some more text.

### some title but no time stamp
Some text, again.

this script will look for occurences of ## or ### (or none, at the first line of the file) and, for each one consisting of a time stamp, will create a new file. (other ### will be added to the previous time stamp). So the example will look like this after spliting:

2012-0816-J-my daily diary1.txt:

### 17H32
Some text. 

2012-0816-J-my daily diary2.txt:

### 23h41
Some more text.

![alt text](link to an image)

Some more text.

### some title but not a time stamp
Some text, again.

Each new file will be created in a temporay export folder ("~/Desktop/output"). This folder must exist before running the script.

The second script, Import2DayOne.sh, will deal with the import process itself, using Day One CLI.

import-markdown-to-day-one's People

Contributors

davidbosman avatar

Stargazers

oldtowneast avatar Lukasz Hanusik avatar David Blue avatar Michael Murphy avatar Jim avatar  avatar Taylor D. Edmiston avatar Daniel McClure avatar  avatar  avatar Duke8t8FTWilliam avatar Git--Commit--Lit avatar eg avatar Yang He avatar Sugarpill avatar Sock avatar Sammy S. avatar  avatar Mark Saroufim avatar  avatar Dandi Wong avatar Sergey Karatkevich avatar Petros Amoiridis avatar Bradley Huchteman avatar Romain avatar Sascha Brossmann avatar Jason Verly avatar Eoin avatar Philip Ryan Johnson avatar swein avatar Dennis Oosterman avatar  avatar  avatar Damian Esteban avatar  avatar Ezekiel Pierson avatar Nathan Peel avatar Nitin Khanna avatar Emory L. avatar Chauncey Garrett avatar Julian Stahnke avatar

Watchers

 avatar  avatar Rakhmad Azhari avatar James Cloos avatar Aris Villareal avatar Git--Commit--Lit avatar

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.