Created
August 25, 2015 19:53
-
-
Save chancez/a1e8a3df1f268bfb2b09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sbl() { | |
local files | |
files=$(cat /Users/chance/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/FileHistory.json | | |
jq -r '.[] | .closed[], .opened[] | .filename' | | |
while read line; do | |
[ -f "${line/\~/$HOME}" ] && echo "$line" | |
done | fzf -d -m -q "$*" -1) && subl ${files//\~/$HOME} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment