Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kevinywlui/nik

cd using subsequence matching and frecency.
https://github.com/kevinywlui/nik

Last synced: 29 days ago
JSON representation

cd using subsequence matching and frecency.

Awesome Lists containing this project

README

        

# nik

`nik` - cd using subsequence matching and frecency.
Powered by golang and sqlite.

This program is essentially the same as
[autojump](https://github.com/wting/autojump),
[z](https://github.com/rupa/z),
and
[fasd](https://github.com/clvv/fasd). It was created to help me learn golang.

## Warning

The testing and error handling is severely lacking.

## Installation

Installation is done in 2 steps, installing the golang binary and then shell helper.

### golang binary

First install `golang` following the instructions here: . Next install `nik`:
```
go get github.com/kevinywlui/nik
```

### Shell helper

Now we need to source the `nik.zsh` file. Add the following somewhere in your `~/.zshrc`
```
source `go env GOPATH`/src/github.com/kevinywlui/nik/nik.zsh
```

## Usage

The basic usage is executing
```
j bar
```
which will try to `cd` into a path, `/pre/.../fix/dir`, so that `dir` is a
subsequence of `bar`. Alternatively, executing
```
j foo bar
```
will try to `cd` into a path, `/pre/.../fix/dir`, so that `bar` is a subsequence
of `dir` and `foo` is a subsequence of `/pre/.../fix/`.

Alternatively, run `nik help` to see the possibilities with the `nik` command.