Permalink
Browse files

Release 0.4.0

  • Loading branch information...
1 parent fea9e31 commit 6859ba297f74e09e4c864a2550a00a36711a8889 @gsamokovarov committed Nov 25, 2015
Showing with 82 additions and 8 deletions.
  1. +4 −1 Makefile
  2. +1 −1 cmd/version.go
  3. +45 −2 man/jump.1
  4. +32 −4 man/jump.1.ronn
View
@@ -4,7 +4,7 @@ HOMEPAGE = https://github.com/gsamokovarov/jump
AUTHOR = "Genadi Samokovarov"
LICENSE = MIT
-VERSION = 0.3.0
+VERSION = 0.4.0
build:
@go build -o jump
@@ -35,3 +35,6 @@ rpm: build
test:
@go test ./...
+
+man:
+ @ronn ./man/jump.1.ronn
View
@@ -5,7 +5,7 @@ import (
"github.com/gsamokovarov/jump/config"
)
-const version = "0.3.0"
+const version = "0.4.0"
func versionCmd(cli.Args, *config.Config) {
cli.Errf("%s\n", version)
View
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "JUMP" "1" "October 2015" "" ""
+.TH "JUMP" "1" "November 2015" "" ""
.
.SH "NAME"
\fBjump\fR \- a quick and fuzzy directory jumper
@@ -52,7 +52,7 @@ $ pwd
Even if there is \fB/Users/foo/Development/dev\-tools\fR that scores better\.
.
.P
-\fBDeeper Directory Jump\fR
+\fBDeep Jump\fR
.
.P
Jump normalized all search terms to the base names of the scored directories, because absolute paths are long and short terms can fuzzy match them easily\.
@@ -112,6 +112,49 @@ $ pwd
.P
The term above will match the last three directories of the path, yielding \fB/Users/foo/Development/chaos/website\fR\.
.
+.P
+\fBReverse Jump\fR
+.
+.P
+Given the following filesystem structure:
+.
+.IP "" 4
+.
+.nf
+
+/Users/foo/Development/society/
+|\-\- artwork
+|\-\- interview
++\-\- website
+
+/Users/foo/Development/chaos/
++\-\- website
+
+/Users/foo/Development/hack/
++\-\- website
+.
+.fi
+.
+.IP "" 0
+.
+.P
+This mode is useful, if the first invocation of \fBj\fR didn\'t yield a proper result and it gives you the ability to jump to the less scored matches\. Say the desired destination is /Users/foo/Development/chaos/website, but the /Users/foo/Development/hack/website is with the highest score\.
+.
+.IP "" 4
+.
+.nf
+
+$ j web
+$ pwd
+/Users/foo/Development/hack/website
+$ j
+$ pwd
+/Users/foo/Development/society/website
+.
+.fi
+.
+.IP "" 0
+.
.SH "COPYRIGHT"
The MIT License (MIT)
.
View
@@ -37,12 +37,12 @@ To trigger a case-sensitive search, use a term that has different casing, at
least in one of the letters.
$ j Dev
- $ pwd
+ $ pwd
/Users/foo/Development
Even if there is `/Users/foo/Development/dev-tools` that scores better.
-**Deeper Directory Jump**
+**Deep Jump**
Jump normalized all search terms to the base names of the scored
directories, because absolute paths are long and short terms can fuzzy match
@@ -61,7 +61,7 @@ Given the following filesystem structure:
To ensure a match of `/Users/foo/Development/chaos/website`:
$ j ch/web
- $ pwd
+ $ pwd
/Users/foo/Development/chaos/website
@@ -71,12 +71,40 @@ will ensure a better match, because the shorter path to fuzzy match on.
There can be many separators in the term.
$ j dev/ch/web
- $ pwd
+ $ pwd
/Users/foo/Development/chaos/website
The term above will match the last three directories of the path, yielding
`/Users/foo/Development/chaos/website`.
+**Reverse Jump**
+
+Given the following filesystem structure:
+
+ /Users/foo/Development/society/
+ |-- artwork
+ |-- interview
+ +-- website
+
+ /Users/foo/Development/chaos/
+ +-- website
+
+ /Users/foo/Development/hack/
+ +-- website
+
+This mode is useful, if the first invocation of **j** didn't yield a proper
+result and it gives you the ability to jump to the less scored matches. Say the
+desired destination is /Users/foo/Development/chaos/website, but the
+/Users/foo/Development/hack/website is with the highest score.
+
+ $ j web
+ $ pwd
+ /Users/foo/Development/hack/website
+ $ j
+ $ pwd
+ /Users/foo/Development/society/website
+
+
## COPYRIGHT
The MIT License (MIT)

0 comments on commit 6859ba2

Please sign in to comment.