Skip to content

A sleek, efficient CLI tool for converting Kindle highlights to Markdown files for Obsidian.

Notifications You must be signed in to change notification settings

jackcasstlesjones/klippy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

klippy

Screenshot 2025-05-19 at 11 42 49

A sleek, efficient tool for converting Kindle highlights to Markdown files for Obsidian.

Overview

Klippy extracts your Kindle highlights and notes, organizing them into neatly formatted Markdown files that integrate seamlessly with Obsidian or other Markdown-based note-taking systems.

Features

  • Automatic Extraction: Reads directly from your Kindle device
  • Markdown Conversion: Transforms highlights into formatted Markdown
  • Obsidian Integration: Creates backlinks and a Map of Content (MOC)
  • Rich UI: Enhanced experience with progress indicators and colorful output (when Rich is installed)

Prerequisites

  • Python 3.6+: Klippy is written in Python and requires version 3.6 or higher
  • Git: Required for cloning the repository
  • Pip: Python package manager for installing dependencies
  • Rich (optional): For enhanced UI with progress indicators and colorful output

Installation

Clone Repository

Linux and Mac

# Clone the repository
git clone https://github.com/jackcasstlesjones/klippy.git ~/.config/klippy
# Make the script executable
chmod +x ~/.config/klippy/klippy
# Optional: Install Rich for enhanced UI
pip install rich

Make Klippy Available System-wide

Method 1: Add to PATH (Linux/Mac)

Option A: Using echo command:

# For zsh users
echo 'export PATH="$HOME/.config/klippy:$PATH"' >> ~/.zshrc
# For bash users
echo 'export PATH="$HOME/.config/klippy:$PATH"' >> ~/.bashrc

Option B: Manual addition:

  1. Open your shell configuration file in a text editor:
    • For zsh: nano ~/.zshrc or vim ~/.zshrc
    • For bash: nano ~/.bashrc or vim ~/.bashrc
  2. Add this line to the file:
    export PATH="$HOME/.config/klippy:$PATH"
    
  3. Save and close the file

Apply changes to current session:

# For zsh users
source ~/.zshrc
# For bash users
source ~/.bashrc

Method 2: Create a Symlink (Linux/Mac)

# Create a symlink to make klippy available system-wide
sudo ln -s ~/.config/klippy/klippy /usr/local/bin/klippy

Usage

Start klippy with one of the following commands:

# Configure klippy settings
klippy --config
# Process clippings without deleting the source file
klippy --add
# Process clippings and delete the source file
klippy --sync
# Delete clippings file without processing
klippy --delete

How It Works

  1. Connect your Kindle device to your computer
  2. Run klippy with your preferred command
  3. Klippy extracts highlights from "My Clippings.txt"
  4. Highlights are organized by book into separate Markdown files
  5. A Map of Content (MOC) file links all your books together

License

This project is available under the MIT License.

About

A sleek, efficient CLI tool for converting Kindle highlights to Markdown files for Obsidian.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages