Skip to content

Instantly share code, notes, and snippets.

@thecotne
Created November 28, 2015 11:09
Show Gist options
  • Save thecotne/2e4efc2e80e39d0a868b to your computer and use it in GitHub Desktop.
Save thecotne/2e4efc2e80e39d0a868b to your computer and use it in GitHub Desktop.
open sublime text project with fzf from terminal
#!/usr/bin/bash
proj="$(find ~/Projects/*.sublime-project -printf '%f\n' | awk 'match($0, /^(.+)\./, a) {print a[1]}' | fzf)"
if [ $proj ]
then
subl --project ~/Projects/$proj.sublime-project
fi
@thecotne
Copy link
Author

  1. put all your .sublime-project files in one directory
  2. put subl-project in your bin or add to path
  3. chmod u+x subl-project
  4. add subl in your path
  5. install fzf
  6. execute subl-project and magic will happen 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment