A sleek, efficient tool for converting Kindle highlights to Markdown files for Obsidian.
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.
- 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)
- 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
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 richMethod 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"' >> ~/.bashrcOption B: Manual addition:
- Open your shell configuration file in a text editor:
- For zsh:
nano ~/.zshrcorvim ~/.zshrc - For bash:
nano ~/.bashrcorvim ~/.bashrc
- For zsh:
- Add this line to the file:
export PATH="$HOME/.config/klippy:$PATH" - Save and close the file
Apply changes to current session:
# For zsh users
source ~/.zshrc# For bash users
source ~/.bashrcMethod 2: Create a Symlink (Linux/Mac)
# Create a symlink to make klippy available system-wide
sudo ln -s ~/.config/klippy/klippy /usr/local/bin/klippyStart 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- Connect your Kindle device to your computer
- Run klippy with your preferred command
- Klippy extracts highlights from "My Clippings.txt"
- Highlights are organized by book into separate Markdown files
- A Map of Content (MOC) file links all your books together
This project is available under the MIT License.
