Giter Site home page Giter Site logo

fastcd's Introduction

What is fastcd ?

  • Search for files/folders , it becomes very easy and quick
  • You can search cpp/c definitions in VIM with using fcd.vim

About Code

The code is ugly , and just quick and dirty work for myself.

Usage

It supports two usage :

  • command-line
  • command-view : Need Install VIM

##command-line : In terminal . Input “fcd -h” And Press the Enter key

$user:~> fcd -h

usage fcd [ l | p | flash | index | $key ]
l $line(d:line=10) : list
p $index : print the path of index
flash $path(d:path=$HOME) : refresh file index 
index : fast cd to $index path
key : will search $key and cd path if only one matched
search_define key top-file sample-line max-depth a->b 
magic : [-v reverse] [-i casecmp] [-r restart] [:index] 

##command-view : ###1: In terminal . Input "fcd" And Press the Enter key

$user:~> fcd

###2: Input your key-word for searching file/folder For Example , I want to search the file which called /home/xxx-user/a/b/c/targer

targer //<-- you Input "targer" and Press the Enter key
---------------------------------------------------------
/home/xxx-user/a/b/c/targ [0]
/home/xxx-user/a/b/c/targer [1]
/home/xxx-user/a/b/c/targer-fake [2]
/home/xxx-user/a/b/c/targer-dummy [3]

###3: Input The Index For Select your target For Example , My targer-file is

/home/xxx-user/a/b/c/targer [1]

So

:1 //<-- you Input ":1" and Press the Enter key
---------------------------------------------------------
/home/xxx-user/a/b/c/targ [0]
/home/xxx-user/a/b/c/targer [1]
/home/xxx-user/a/b/c/targer-fake [2]
/home/xxx-user/a/b/c/targer-dummy [3]

Install

##1: Compile make and copy binary into "~/tools/fcd.app"

$user:~> cd fastcd/ && make

g++ -Wall -g fastcd.cpp -o fastcd.out -pthread -lncurses

$user:~> cp fastcd.out ~/tools/fcd.app

##2: Configure 2.1 vim .bashrc/.profile , Add :

export PATH=/home/$user/tools:$PATH

2.2 Add fastcd/bashrc Into your .bashrc/.profile

##3: Build Idx File

Only when the disk directory changes, we need to rebuild the index

$user:~> fcd flash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.