Giter Site home page Giter Site logo

keep-to-markdown's Introduction

keep-to-markdown

A script to convert Google Keep notes into markdown files, for Linux, Mac, and Windows.

Requirements

Example

> python keep-to-markdown.py -i Takeout/Keep/

arguments:
  -i PATH       Relative path to the Google Keep data folder

optional arguments:
  -h, --help    Show this help message and exit
  -t            Use subfolders for tags instead of YAML front-matter

The script outputs to a notes directory. Images will be stored in notes/resources.

If the -t flag is included, the first tag (if present) of each note will be used to create a subfolder. (e.g. notes/code_snippets and notes/code_snippets/resources)

Other data is extracted and written as YAML front-matter:

  • title
  • tags (if the -t flag isn't specified)
  • text content
  • task list
  • web links
  • images

Example

Example of a converted markdown note:

---
title: <Title>
date: <Date> (optional, if title is set)
tags: <tag1>;<tag2>;
---

<textContent>
Example Text ...

<listContent>
*Tasklist*:
- [ ] task1
- [x] task2

<annotations>
*Weblinks:* [link1](http//..); [link2](http://..);

<attachments>
*Attachments:* ![image](resource/image.jpg)

A note's title will be used for its filename. If there is no title available the created timestamp will be used.

Future features

  • OS compatible
  • support folder tags for Nextcloud
  • save modified Timestamp by default
  • use Google keep colors
  • usability for Joplin import

keep-to-markdown's People

Contributors

erikelisath avatar ikesau avatar jmcastagnetto avatar tomglynch 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.