Skip to content
프로젝트

소개

빠른 명령줄 파일 완성

개발 도구

이 수치를 측정하는 방법

What you can do

  • Real-time matching: Results are displayed while you type.
  • Multi-directories && Context relevant matching: if you're in a cvs(git,mercurial) managed directory, qfc will matches against your tracked(or new) files only. This is very useful to avoid 10000+ of dependency files cluttering up the results. for unmanaged dirs, qfc looks for unhidden files up to a maximum depth(set to 3).
  • Enhanced Filtering/Sorting of matches.
  • No dependencies.

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

qfc

Quick Command-line File Completion

qfc

qfc is a shell auto-complete alternative which features real-time multi-directories matching: It provides results while you type against files in the current directory and its sub-directories. This is useful, to avoid the burden of writing the whole path whenever you want to cd or vim a file, which is frequent especially if you use the terminal as your IDE(The terminal is the best IDE, remember! :-) ).

Features:

  • Real-time matching: Results are displayed while you type.
  • Multi-directories && Context relevant matching: if you're in a cvs(git,mercurial) managed directory, qfc will matches against your tracked(or new) files only. This is very useful to avoid 10000+ of dependency files cluttering up the results. for unmanaged dirs, qfc looks for unhidden files up to a maximum depth(set to 3).
  • Enhanced Filtering/Sorting of matches.
  • No dependencies.

Requirements

Installation:

  • git clone https://github.com/pindexis/qfc $HOME/.qfc
  • Add the following line to your *rc (.zshrc, .bashrc, .bash_profile in OSX):
    [[ -s "$HOME/.qfc/bin/qfc.sh" ]] && source "$HOME/.qfc/bin/qfc.sh"

Usage:

  • Ctrl-f : complete the word under cursor using qfc
  • while qfc is open:
    • TAB: Append the selected match to the current path.
    • ENTER: Append the selected match to the current path and returns the result.
    • Ctrl-f: Returns the current path.
    • Arrow keys: Navigation between files.

Even more Productivity:

If you're using zshell or Bash 4.3+, You can combine qfc with commands you frequently use to get one key-stroke experience. For example, I have the following lines in my .zshrc:

qfc_quick_command 'cd' '\C-b' 'cd $0'
qfc_quick_command 'vim' '\C-p' 'vim $0'

This allows me to switch directories by just pressing Ctrl-b(or editing a file by pressing Ctrl-p). qfc

qfc_quick_command expects an id, a shortcut, and a command with $0 placeholder(which will be replaced with the completion path).
It's recommended to choose a 2-5 length letters only id(else you may encounter issues).
Also, be careful with what keyboard shortcuts to choose(mapping some keys can prevent the terminal from working correctly).

관련 프로젝트 살펴보기

불러오는 중…