GitXplorerGitXplorer
t

gonotes

public
23 stars
1 forks
2 issues

Commits

List of commits on branch master.
Verified
32a69308b1fcc6b57bc97ed26526d8fafe6cb3b8

Update pre-commit (#18)

TTobKed committed 3 years ago
Verified
a6c4be0cd9d07a48dfaa765fb2e6d1d384911456

Fix quote flag (#17)

TTobKed committed 3 years ago
Verified
fbe369df4ed7fd1c99a0c85f288391e30131eb5a

Update go version to 1.17 (#19)

TTobKed committed 3 years ago
Verified
78a03059b41fdf5a0a7479e9794517856108a180

Add link to project (#16)

tturbaszek committed 4 years ago
Verified
8cfdb6d08d9cf6d42420a4bc8b2710a2f550b935

Update README.md

tturbaszek committed 4 years ago
Verified
7957b9148843b4080b0873f52fabd9cb5ff95bc4

Adjust download link to latest release

tturbaszek committed 4 years ago

README

The README file for this repository.

CI Go Report Card MIT license

GoNotes

Command line tool to manage and search your Kindle clippings in an easy way!

book_list

Table of Contents

Usage

Parse your clippings files from Kindle:

➜ gonotes parse /path/to/your/clippings.txt

Then you can list notes from a book. Press tab use autocomplete (check how to enable it):

➜ gonotes notes 8  # shows notes from book with ID 8

You can display notes from single book and search using grep:

➜ gonotes notes 3 | grep tourism
tourism is about helping people construct stories and collect memories.

Remember to use cowsay to share your favourite quotes!

➜ gonotes n 12 | grep "personal growth" | cowsay
 ______________________________________
/ Simply having enough money to spare  \
| converts the vicious cycle of stress |
| and poor decision making into a      |
\ virtuous cycle of personal growth.   /
 --------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

There's also possibility to get a random quote that will be no longer than specified number of words

➜ gonotes r -q -l 15 | cowsay -f bunny
 ________________________________________
/ Hate is just as injurious to the hater \
| as it is to the hated. - The           |
| Autobiography of Martin Luther King,   |
\ Jr. (Carson, Clayborne)                /
 ----------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).

Help

  NAME:
     gonotes - manage your Kindle notes.

     For more information check https://github.com/turbaszek/gonotes

  USAGE:
     gonotes [global options] command [command options] [arguments...]

  VERSION:
     v0.1

  COMMANDS:
     parse, p   Parses provided file and creates books and notes
     book, b    Utilities to manage books
     notes, n   List notes
     random, r  Shows a random note
     help, h    Shows a list of commands or help for one command

  GLOBAL OPTIONS:
     --help, -h     show help (default: false)
     --version, -v  print the version (default: false)

Autocomplete

To set up autocomplete including book hints run one of the following:

# bash
source <(gonotes completion bash)

# zsh
source <(gonotes completion zsh)

To persist the autocomplete behaviour add this selected option to your .bashrc or .zshrc.

Installation

Currently, you can install GoNotes in two ways:

  • clone the repo and then go install ./cmd/gonotes - this will install actual master
  • download the binary:
    curl -L https://github.com/turbaszek/gonotes/releases/download/v0.1/gonotes -o /usr/local/bin/gonotes && chmod +x /usr/local/bin/gonotes
    

Development

Feel free to open issues and PRs. To build the project follow are usuall go steps. Consider using pre-commits for static checks and code formatting. On Mac this should do:

brew install pre-commit
pre-commit install