Created
April 28, 2011 04:04
-
-
Save nbqx/945775 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
##earthquake.gem plugin | |
##pinned item open like LDR | |
Earthquake.init do | |
once do | |
@pinned = [] | |
end | |
command :pin do |m| | |
@pinned << m[1] | |
@pinned.uniq! | |
puts "#{m[1]} pinned." | |
end | |
command :popen do | |
unless @pinned.empty? | |
@pinned.each do |p| | |
async do | |
input(":open #{p}") | |
end | |
end | |
@pinned = [] | |
else | |
puts "no pinned items" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment