Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (40 sloc) 1.12 KB
$triples = [[:i1, :name, :firefox],
[:i1, :action, :rm],
[:i2, :name, :firefox],
[:i2, :action, :run],
[:i2, :short, :f],
[:i3, :name, :facebook],
[:i3, :short, :fb],
[:i3, :action, :web],
[:i4, :name, :google_maps],
[:i4, :short, :map],
[:i4, :action, :web],
[:i5, :name, :twitter],
[:i5, :short, :tw],
[:i5, :action, :web],
[:i1, :Type, :item],
[:i2, :Type, :item],
[:i3, :Type, :item],
[:i4, :Type, :item],
[:i5, :Type, :item],
[:video, :Type, :action],
[:video, :proc, 'Proc.new { |q| `vlc #{q.key?(:web_name) ? q[:web_name] : "http://#{q[:name]}.com"}`}'],
[:web, :Type, :action],
[:web, :proc, 'Proc.new { |q| `firefox #{q.key?(:web_name) ? q[:web_name] : "http://#{q[:name]}.com"}`}'],
[:run, :Type, :action],
[:run, :proc, 'Proc.new { |q| `#{q[:name]}`}'],
[:name, :Type, :tag],
[:action, :sig, :tag],
[:short, :sig, :tag],
[:name, :sig, ""],
[:action, :sig, "\""],
[:short, :sig, "."],
[:i4, :web_name, "maps.google.com"],
[:i6, :name, :pandora],
[:i6, :Type, :item],
[:i6, :action, :web],
[:i6, :short, :pd],
[:i8, :name, :send_mail],
[:i8, :Type, :item],
[:i8, :action, :send_mail]]
$top_id = 8