Git Product home page Git Product logo

skid's Introduction

bookmarks, simply kept in directories (SKID)

Motivation

Tools for organizing your PDFs are restrictive and proprietary (in the sense that information is kept hostage inside the software).

Article advocates

  1. use file system: helps avoid the “proprietary data problem”
  2. flat structure: keeping a single (flat) directory of all your papers
  3. tags over folders: well-known problem we all faced before gmail.
  4. conventions: naming conventions, tagging conventions
  5. simple scripts: use many simple programs rather large monolithic programs.

skid stores all documents in a single directory called “the cache”. Each file in the cache has a directory associated with it where metadata will live (e.g. user notes, bibliographic information, text extraction). These directories are named after the cached document with a simple .d suffix (for example, cached document Cookbook.pdf has a directory Cookbook.pdf.d/). The most important file living in this directory is notes.org. This file is where the user annotates documents with bibliographic metadata (e.g. title, author, year), and personal notes.

With the basic setup we can quick write tools for maintaining, accessing, and analyzing the repository of documents.

See also: a great post by GradHacker: Towards Better PDF Management with the Filesystem.

Quickstart

Manually install dependencies

$ apt-get install pdftotext

Install remaining python deps and this package

$ git clone [email protected]:timvieira/skid.git
$ cd skid
$ pip install -e .

Add your first document

$ skid add https://github.com/timvieira/skid

This will fire up your text editor with a new notes.org file. Write some notes about the file, which will help you find it later or remember why you bookmarked it to begin with!

Update the skid index so that this document will show up in searches

$ skid update
$ skid search timvieira

Further reading:

$ skid [command] -h

Optional

Bash completion

Add the following to bash configuration:

function _optcomplete {
    COMPREPLY=( $( \
        COMP_LINE=$COMP_LINE  COMP_POINT=$COMP_POINT \
        COMP_WORDS="${COMP_WORDS[*]}"  COMP_CWORD=$COMP_CWORD \
        $1 ) )
}
complete -F _optcomplete skid

Org-mode configuration

Enable org-mode link directive (`skid:`), add the following to emacs configuration:

;;------------------------------------------------------------------------------
;; Support for skid links
;;
;; USAGE:
;;
;; The link directive 'skid'
;;
;;  [[skid:author:"Jason Eisner"][Jason Eisner]]
;;
;; Programmatic
;;
;;  (skid-search "Jason Eisner tags:thesis")
;;
;; org-mode reference http://orgmode.org/org.html#Adding-hyperlink-types
(require 'org)
(org-add-link-type "skid" 'skid-search)
(defun skid-search (query)
  "skid tag search."
  (interactive)
  (switch-to-buffer (make-temp-name "Skid"))
  (insert (shell-command-to-string (concat "python -m skid search --format org --limit 0 " query)))
  (beginning-of-buffer)
  (org-mode))
;;------------------------------------------------------------------------------

skid's People

Contributors

hannawallach avatar timvieira 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.