Giter VIP home page Giter VIP logo

zk's Introduction

Zettelkasten

A simple Zettelkasten setup using Vim + FZF + Ripgrep

Zettelkasten

What is a zettelkasten?

The zettelkasten (German: "slip box") is a knowledge management and note-taking method used in research and study.

Wikipedia

The zettelkasten method consists of taking multiple individual notes, tagging and relating them together, in order to build a private knowledge base.

Why?

I was inspired by this post, and by how the author built his own setup using Unix tools. I wanted a similar, but slightly different setup. By the way, his work is also on Github

How?

Philosophy

Each zettel (probably not a real world, but I'll use that to refer to each individual note) is a markdown file, named with a timestamp and a title.

Zettels can have tags (e.g.: #programming, #quote, #really-good-advice), as well as sources (e.g.: @tim-ferriss, @mom, @myself).

They're otherwise plain markdown files, write whatever you want, in whatever format you wish. Here's a sample:

# 2020-07-17-11-30-optimization.md

Premature optimization is the root of all evil

**I opted to use markdown italic syntax for personal comments**

#quote #programming
@donald-knuth

You can then navigate your knowledge base by searching for tags, sources, or just plain full-text search.

All of this is powered by:

More tooling may be added down the line, but for now this simple setup serves me well.

Installation

  1. Make sure you have the fzf, rg commands working on your shell, as well as the fzf.vim Vim plugin.

  2. Clone the repo to some place:

git clone [email protected]:naps62/zk $HOME/.zk
  1. Add the bin directory to your path
# add this to your .bashrc / .zshrc / .whateverrc
export PATH="$HOME/.zk/bin:$PATH"
  1. Setup the needed $ZK_PATH variable, pointing to where you want your knowledge base to be:
# add this to your .bashrc / .zshrc / .whateverrc
export ZK_PATH="$HOME/zettelkasten"
  1. Start using it
# create a new zettel
$ zk new "An Awesome Quote"

# search by tags
$ zk tags

# search by sources
$ zk sources

# full-text search the entire zettelkasten
$ zk search

# get help
$ zk help

Contributing

Feel free to do so.

Pull requests, issues, or even a tweet is welcome.

zk's People

Contributors

naps62 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.