gookmark

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2015 License: MIT Imports: 13 Imported by: 0

README

gookmark

Bookmark for CLI

Description

Usage

# current directory : /foo/bar/hoge/fuga
$ gookmark add
$ gookmark add ..
$ gookmark list
#   /foo/bar/hoge/fuga
#   /foo/bar/hoge
$ gookmark edit
bookmark group

gookmark <subcommand> --group <group name> <file or directory>
default <group name> is bookmark

# current directory : /foo/bar/hoge/fuga
$ gookmark add --group files foo.txt
$ gookmark add  --group files bar.txt
$ gookmark list --group files
#   /foo/bar/hoge/fuga/foo.txt
#   /foo/bar/hoge/fuga/bar.txt
$ gookmark edit --group files
subcommand alias

support alias for subcommand

# set alias
$ gookmark config alias.af="add --group f"
$ gookmark config alias.al="list --group f"
$ gookmark config alias.ae="edit --group f"
# use alias
$ gookmark af foo.txt
$ gookmark af files bar.txt
$ gookmark al files
#   /foo/bar/hoge/fuga/foo.txt
#   /foo/bar/hoge/fuga/bar.txt
$ gookmark ae files

alias should be set subcommand + bookmark group option

Install

To install, use go get:

$ go get -d github.com/nocd5/gookmark
$ cd $GOPATH/src/github.com/nocd5/gookmark
$ go install
$ gookmark config ui.editor=vim
$ gookmark config core.linefeed=unix

gookmark config ui.editor=your_editor
gookmark config core.linefeed=[unix|dos]

Contribution

  1. Fork (https://github.com/nocd5/gookmark/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run go fmt
  7. Create a new Pull Request

Author

nocd5

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL