-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
141 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,30 @@ | ||
# google-keep-to-logseq | ||
# Keep2Log - Google Keep to Logseq Converter | ||
|
||
Keep2Log is a CLI tool that converts Google Keep Takeout files to Logseq journal entries, allowing you to migrate your notes from Google Keep to the Logseq note-taking app. | ||
|
||
## Table of Contents | ||
|
||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
- [Background](#background) | ||
- [License](#license) | ||
|
||
## Installation | ||
|
||
1. Download the latest release of Keep2Log for your platform (Windows, Mac, or Linux) from the [Releases](https://github.com/lugenx/keep2log/releases) page. | ||
|
||
2. Extract the downloaded archive, if necessary, to obtain the Keep2Log executable. | ||
|
||
## Usage | ||
|
||
1. Export your Google Keep data using [Google Takeout](https://takeout.google.com/). Select "Google Keep" and download the archive. | ||
|
||
2. Extract the Google Keep Takeout archive to a folder. | ||
|
||
3. Run the Keep2Log executable. The tool will guide you through the process with messages in the command line. You'll be prompted to provide the path to the extracted Google Keep folder and the output directory for the Logseq journal entries. | ||
|
||
4. Import the converted journal entries into Logseq. | ||
|
||
## Background | ||
|
||
I initially created Keep2Log to migrate my own notes from Google Keep to Logseq. After experiencing the convenience and usefulness of this conversion process, I decided to share the tool on GitHub for others who may be facing similar needs. I hope Keep2Log helps you easily transition your notes from Google Keep to Logseq and enhances your note-taking experience. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const createOrReturnDirectory = (pathToCreate) => { | ||
const fs = require("node:fs"); | ||
const path = require("node:path"); | ||
|
||
const normalizedPath = path.normalize(pathToCreate); | ||
|
||
if (fs.existsSync(normalizedPath)) return normalizedPath; | ||
|
||
try { | ||
createdPath = fs.mkdirSync(pathToCreate, { recursive: true }); | ||
return normalizedPath; | ||
} catch (error) { | ||
console.log("Error in createPath ", error); | ||
} | ||
}; | ||
|
||
module.exports = createOrReturnDirectory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "keep2log", | ||
"version": "1.0.0", | ||
"bin": { | ||
"keep2log": "index.js" | ||
}, | ||
"description": "Single executable CLI tool to conver Google Keep notes to Logseq journal entries", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |