Skip to content
Personal snippet manager, store bits of text.
Branch: master
Clone or download
dbalan Merge pull request #18 from dbalan/args_editor
Bug fix: Editor spec can have arguments.
Latest commit 6dd8eac Jul 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Ignore all branches from deploy Mar 6, 2018
cmd Bug fix: Editor spec can have arguments. Jul 12, 2019
pipetdata Delete abstraction for datastore. Mar 15, 2018
.gitignore Use dep for tracking dependencies. Mar 6, 2018
CONTRIBUTING.md Add contributing guidelines. Mar 27, 2018
Gopkg.lock Bug fix: Editor spec can have arguments. Jul 12, 2019
Gopkg.toml Use dep for tracking dependencies. Mar 6, 2018
LICENSE Init project Jan 31, 2018
README.md
main.go Init project Jan 31, 2018

README.md

Pipet: snippet manager

CircleCI

Pipet is a set of commands to store and retrieve snippets of text. Depends on fzf for search.

Installation

There are multiple ways to get pipet.

  1. As a go package (provided you have a working go setup)
go get github.com/dbalan/pipet
cd $GOPATH/src/github.com/dbalan/pipet/
go build
go install # installs to $GOPATH/bin
  1. As a binary release see: https://github.com/dbalan/pipet/releases. On *nix you need to set executable permission (chmod +x pipet)

Configuration

Pipet looks for config file .pipet.yaml in the home directory. pipet init command can generate a new config.

Sample config

document_dir: "<directory-where-files-are-stored>" # default is ~/snippets
editor_binary: "absolute path to editor you want to use" # default is $EDITOR environment variable

Usage

asciicast

Store and sprinkle code snippets

Usage:
  pipet [command]

Available Commands:
  delete      Remove snippet from storage (this is irreversible!)
  edit        edit snippet data
  help        Help about any command
  init        Configure pipet
  list        list all snippets
  new         Creates a new snippet and opens editor to edit content
  show        display the snippet

Flags:
      --config string   config file (default is $HOME/.pipet.yaml)
  -h, --help            help for pipet
  -t, --toggle          Help message for toggle

Use "pipet [command] --help" for more information about a command.

TODO

  • Tests, would like more tests.
  • Add an archive flag in place of delete (?)

Hacking

See CONTRIBUTING.md

Versioning

Follows semantic versioning.

Thanks

Pipet takes a heavy inspiration from pet and other projects.

You can’t perform that action at this time.