Show HN: Quick Command-line File Completion
pindexis.github.io
pindexis.github.io
fzf presents itself as a general fuzzy finder tool. QFC is a specific tool for completing just file/dir path.
If you use the two, you will notice the difference quickly.
Sorting && Filtering isn't the same, for example: If you write 'bin' and there is a matched directory for that string ('bin'), you will see only the dir path not all files inside the dir.
Also, you can arrow keys to navigate between directories.
You can also type special characters like '~', '$HOME' etc..
What could be improved: if I type "nano <ctrl f> index." I see some index.js files but not my index.html file from my node project.
Ah ok it's in a different folder, but it would be cool if it showed anyways.
A quite popular handy tool for that: http://www.nongnu.org/atool/
ex ()
{
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xf $1 ;;
*.tbz2) tar xjf $1 ;;
*.tgz) tar xzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1;;
*.7z) 7z x $1 ;;
*) echo "'$1' cannot be extracted via ex()" ;;
esac
else
echo "'$1' is not a valid file"
fi
}I don't know if I'm a very narrow intersection but I'm really happy with this script!