Skip to content

Directory Alias and Navigation

Ravi J edited this page Dec 29, 2020 · 2 revisions

The dir tables are useful for directory level operations.

Create a dir table

qkw -D -cT dtable_name

Add this table to your dir insert table in the configuration file

qkw -cfgfile

Add a few directories via K:V format

qkw -iD abc:"a/b/c/d"
qkw -iD dfh.z:"/d/f/h/x/y/z/"
qkw -iD dfh.u:"/d/f/h/x/y/z/v/w/u/"

Or visit a few directories and let qkw deduce the path

qkw -addpath <label>

Get the list of all the added tags

qkw -lDA 
abc:a/b/c/d
dfh.z:/d/f/h/x/y/z/
dfh.u:/d/f/h/x/y/z/v/w/u/

Put the macro in your bashrc or it's equivalent, and source it

cd2(){
   qkw -gD $1
}

source ~/.bashrc

Move to a tagged directory using just the tag

cd2 abc
cd2 dfh.z
cd2 dfh.u
Clone this wiki locally