Git Product home page Git Product logo

sillycd's Introduction

Build Status

SillyCd

iconfinder_kdisknav_1311

The fastest way to type cd command

Usage

Bash

$ c /u/l/b
/usr/local/bin

$ c /l/as/as
/Library/Application Support/App Store

$ c /a/v/c/r/a/e/
/Applications/Visual Studio Code.app/Contents/Resources/app/extensions

Windows

c:\>c /pf/mss/100
c:\Program Files\Microsoft SQL Server\100

c:\>c /pf/mss
c:\Program Files\Microsoft SQL Server

c:\>c /pf/mss/v
C:\Program Files\Microsoft SQL Server Compact Edition\v4.0

Installation

Installation: OSX

  1. Get a binary file
  2. Define a function

Get binary

brew tap wtetsu/sillycd
brew install sillycd

or download and add it to a PATH directory.

Define function

sillycd just writes a matched directory to stdout. If you use sillycd as alternative cd, you have to define a shell function.

# For bash:
function c() {
  d=`sillycd $1`
  if [ $? -eq 0 ]; then
    echo $d
    cd "$d"
  else
    echo "$1: No such file or directory" >&2
  fi
}

Give it a try!

$ c /u/l/b

Installation: Windows

Get files

Download it!

And add these files into a PATH directory.

  • sillycd.exe
  • c.bat

Give it a try!

c:\>c /pf

Rules

  • You have to type the first character of each directory
  • If multiple directories were matched, sillycd selects the most appropriate directory

Third-party data

Images

Folder, lightning, power icon(LGPL)

https://www.iconfinder.com/icons/1311/folder_lightning_power_icon

sillycd's People

Contributors

wtetsu avatar

Stargazers

 avatar Peter Nguyen avatar xream avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

sillycd's Issues

The fastest way is to press Alt+

Hi Tetsu. Just wanted to say that gaze is awesome and really saved my day, and then stumbled upon this project of yours.

I think the fastest way one could cd the directory is to avoid pressing space, and enter, and typing cd. Which leaves to need only one key to be pressed like Alt and without releasing it start typing.. so after releasing the Alt the dir will be changed.

I used that workflow with Far Manager when I was on Windows. Still miss it. Hopefully you will find it interesting.

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.