Skip to content

Commit

Permalink
Add new Web Search command for current track
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Jan 4, 2017
1 parent 0aad9a9 commit d6494f6
Show file tree
Hide file tree
Showing 15 changed files with 310 additions and 5 deletions.
Binary file modified resources.idraw
Binary file not shown.
Binary file modified resources/images_green/facebook.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images_green/youtube.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images_green/youtube@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images_green/youtube@3x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -218,7 +218,23 @@
<key>itemuid</key>
<string>4234DEFF-0583-4298-8A6F-057067C76B29</string>
</dict>
<dict/>
<dict>
<key>actionconfig</key>
<dict>
<key>autoworkflowuid</key>
<true/>
<key>triggerid</key>
<string>com.vdesabou.miniplayer.youtube</string>
</dict>
<key>actionuid</key>
<string>remote.alfred.runworkflow</string>
<key>buttoniconid</key>
<string>15D6EBE2-6D82-4F2C-A4B3-5949424B4EF9</string>
<key>buttonlabel</key>
<string>Youtube</string>
<key>itemuid</key>
<string>58A82CED-55BB-4687-B44E-847F0EC8E860</string>
</dict>
<dict/>
<dict/>
<dict>
Expand Down
Binary file modified spotify-mini-player/images/facebook.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added spotify-mini-player/images/youtube.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
245 changes: 241 additions & 4 deletions spotify-mini-player/info.plist
Expand Up @@ -192,6 +192,19 @@
<array/>
<key>1A88766E-BF4A-48F5-9BD4-D3538634422F</key>
<array/>
<key>1B716436-7DCE-45DA-8567-FA157808962F</key>
<array>
<dict>
<key>destinationuid</key>
<string>6FEAFE02-DF77-4F58-9305-651E6D627144</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>1BA522F3-B2D0-4F36-B86C-738FB3AC55DD</key>
<array>
<dict>
Expand Down Expand Up @@ -296,6 +309,19 @@
<false/>
</dict>
</array>
<key>30833563-364F-4EC4-B467-F63A7F66EB06</key>
<array>
<dict>
<key>destinationuid</key>
<string>C91B7486-D357-4C1C-8661-83290128E78E</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>3435F565-E791-4FE9-A7B9-85B4A2EA353C</key>
<array>
<dict>
Expand Down Expand Up @@ -586,6 +612,8 @@
<false/>
</dict>
</array>
<key>6FEAFE02-DF77-4F58-9305-651E6D627144</key>
<array/>
<key>73FB3971-4382-45F5-ADED-F1E481A95E2E</key>
<array>
<dict>
Expand Down Expand Up @@ -1205,6 +1233,19 @@
<false/>
</dict>
</array>
<key>C323BECC-0183-4562-B817-65624E13B3F3</key>
<array>
<dict>
<key>destinationuid</key>
<string>6FEAFE02-DF77-4F58-9305-651E6D627144</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>C588A188-D8D3-450F-9020-5EBB563F6B8A</key>
<array>
<dict>
Expand Down Expand Up @@ -1597,6 +1638,19 @@
<false/>
</dict>
</array>
<key>FAA5FC99-7909-45B6-9BF0-7601DBAADC4F</key>
<array>
<dict>
<key>destinationuid</key>
<string>6FEAFE02-DF77-4F58-9305-651E6D627144</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
</dict>
<key>createdby</key>
<string>vdesabou</string>
Expand Down Expand Up @@ -4394,7 +4448,9 @@ php -f ./src/action.php -- "$query" "TRACK" "" &gt;&gt; "$alfred_workflow_cache/
<key>escaping</key>
<integer>127</integer>
<key>script</key>
<string>tell application "System Events" key code 74 -- escapeend tell</string>
<string>tell application "System Events"
key code 74 -- escape
end tell</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand All @@ -4417,7 +4473,9 @@ php -f ./src/action.php -- "$query" "TRACK" "" &gt;&gt; "$alfred_workflow_cache/
<key>escaping</key>
<integer>127</integer>
<key>script</key>
<string>tell application "System Events" key code 36 -- enterend tell</string>
<string>tell application "System Events"
key code 36 -- enter
end tell</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -4482,7 +4540,9 @@ php -f ./src/action.php -- "$query" "TRACK" "" &gt;&gt; "$alfred_workflow_cache/
<key>escaping</key>
<integer>127</integer>
<key>script</key>
<string>tell application "System Events" key code 125 -- downend tell</string>
<string>tell application "System Events"
key code 125 -- down
end tell</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand All @@ -4505,7 +4565,9 @@ php -f ./src/action.php -- "$query" "TRACK" "" &gt;&gt; "$alfred_workflow_cache/
<key>escaping</key>
<integer>127</integer>
<key>script</key>
<string>tell application "System Events" key code 126 -- upend tell</string>
<string>tell application "System Events"
key code 126 -- up
end tell</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -5442,6 +5504,129 @@ php -f ./src/action.php -- "$query" "TRACK" "" &gt;&gt; "$alfred_workflow_cache/
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>2</integer>
<key>keyword</key>
<string>{var:web_search}</string>
<key>subtext</key>
<string>Open current track search in {var:web_search}</string>
<key>text</key>
<string>Search current track in {var:web_search}</string>
<key>withspace</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.keyword</string>
<key>uid</key>
<string>FAA5FC99-7909-45B6-9BF0-7601DBAADC4F</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>browser</key>
<string></string>
<key>searcher</key>
<integer>1635218553</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.systemwebsearch</string>
<key>uid</key>
<string>C91B7486-D357-4C1C-8661-83290128E78E</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argument</key>
<string></string>
<key>argumenttype</key>
<integer>0</integer>
<key>triggerid</key>
<string>com.vdesabou.miniplayer.websearch</string>
<key>triggername</key>
<string>Web Search</string>
<key>workflowonly</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.remote</string>
<key>uid</key>
<string>C323BECC-0183-4562-B817-65624E13B3F3</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>38</integer>
<key>script</key>
<string>query=$(php -r '$foo = serialize(array("", "", "", "", "", "", "", "web_search" /* other_action */, "", "", "", "", "", "", "", "" , "", "", "", "", "", ""));echo $foo;')
php -f ./src/action.php -- "$query" "TRACK" ""</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>0</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>6FEAFE02-DF77-4F58-9305-651E6D627144</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>action</key>
<integer>0</integer>
<key>argument</key>
<integer>0</integer>
<key>focusedappvariable</key>
<false/>
<key>focusedappvariablename</key>
<string></string>
<key>hotkey</key>
<integer>0</integer>
<key>hotmod</key>
<integer>0</integer>
<key>leftcursor</key>
<false/>
<key>modsmode</key>
<integer>0</integer>
<key>relatedAppsMode</key>
<integer>0</integer>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.hotkey</string>
<key>uid</key>
<string>1B716436-7DCE-45DA-8567-FA157808962F</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>triggerid</key>
<string>web_search</string>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.external</string>
<key>uid</key>
<string>30833563-364F-4EC4-B467-F63A7F66EB06</string>
<key>version</key>
<integer>1</integer>
</dict>
</array>
<key>readme</key>
<string>Web Site:
Expand Down Expand Up @@ -5603,6 +5788,13 @@ http://www.packal.org/workflow/spotify-mini-player</string>
<key>ypos</key>
<real>9940</real>
</dict>
<key>1B716436-7DCE-45DA-8567-FA157808962F</key>
<dict>
<key>xpos</key>
<integer>110</integer>
<key>ypos</key>
<integer>11930</integer>
</dict>
<key>1BA522F3-B2D0-4F36-B86C-738FB3AC55DD</key>
<dict>
<key>xpos</key>
Expand Down Expand Up @@ -5701,6 +5893,13 @@ http://www.packal.org/workflow/spotify-mini-player</string>
<key>ypos</key>
<integer>990</integer>
</dict>
<key>30833563-364F-4EC4-B467-F63A7F66EB06</key>
<dict>
<key>xpos</key>
<integer>480</integer>
<key>ypos</key>
<integer>11950</integer>
</dict>
<key>3435F565-E791-4FE9-A7B9-85B4A2EA353C</key>
<dict>
<key>xpos</key>
Expand Down Expand Up @@ -5904,6 +6103,13 @@ http://www.packal.org/workflow/spotify-mini-player</string>
<key>ypos</key>
<real>5140</real>
</dict>
<key>6FEAFE02-DF77-4F58-9305-651E6D627144</key>
<dict>
<key>xpos</key>
<integer>510</integer>
<key>ypos</key>
<integer>11820</integer>
</dict>
<key>73FB3971-4382-45F5-ADED-F1E481A95E2E</key>
<dict>
<key>xpos</key>
Expand Down Expand Up @@ -6310,6 +6516,13 @@ http://www.packal.org/workflow/spotify-mini-player</string>
<key>ypos</key>
<real>8160</real>
</dict>
<key>C323BECC-0183-4562-B817-65624E13B3F3</key>
<dict>
<key>xpos</key>
<integer>110</integer>
<key>ypos</key>
<integer>11810</integer>
</dict>
<key>C588A188-D8D3-450F-9020-5EBB563F6B8A</key>
<dict>
<key>xpos</key>
Expand All @@ -6331,6 +6544,17 @@ http://www.packal.org/workflow/spotify-mini-player</string>
<key>ypos</key>
<real>2370</real>
</dict>
<key>C91B7486-D357-4C1C-8661-83290128E78E</key>
<dict>
<key>colorindex</key>
<integer>7</integer>
<key>note</key>
<string>You can change web search by double-clicking here</string>
<key>xpos</key>
<integer>710</integer>
<key>ypos</key>
<integer>11780</integer>
</dict>
<key>C93B7A2B-9105-4456-997A-1BCC4EDA5A27</key>
<dict>
<key>xpos</key>
Expand Down Expand Up @@ -6576,6 +6800,17 @@ http://www.packal.org/workflow/spotify-mini-player</string>
<key>ypos</key>
<real>10320</real>
</dict>
<key>FAA5FC99-7909-45B6-9BF0-7601DBAADC4F</key>
<dict>
<key>colorindex</key>
<integer>7</integer>
<key>note</key>
<string>web_search variable is 'Youtube' by default, change it if you have changed the Web Search engine on the right</string>
<key>xpos</key>
<integer>350</integer>
<key>ypos</key>
<integer>11660</integer>
</dict>
</dict>
<key>variables</key>
<dict>
Expand Down Expand Up @@ -6659,6 +6894,8 @@ http://www.packal.org/workflow/spotify-mini-player</string>
<string>0</string>
<key>volume_up</key>
<string>volume_up</string>
<key>web_search</key>
<string>Youtube</string>
</dict>
<key>version</key>
<string>6.7</string>
Expand Down

0 comments on commit d6494f6

Please sign in to comment.