[alfred 2] Update Dash, remove unused workflows

pull/28/head
Alpha Chen 10 years ago
parent 00c89f77a4
commit f3b4a5359a

@ -1,88 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>bundleid</key>
<string></string>
<key>connections</key>
<dict>
<key>7B72027E-5733-4561-9B5A-1B7EC6ADB482</key>
<array>
<dict>
<key>destinationuid</key>
<string>BF10B845-468E-4A88-A9D9-8E4C589E387C</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
</dict>
<key>createdby</key>
<string>Alpha Chen</string>
<key>description</key>
<string></string>
<key>disabled</key>
<true/>
<key>name</key>
<string>WeatherSpark</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>browser</key>
<string>com.google.Chrome</string>
<key>plusspaces</key>
<false/>
<key>url</key>
<string>http://weatherspark.com/forecasts/noaa/USA/WA/Seattle</string>
<key>utf8</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.action.openurl</string>
<key>uid</key>
<string>BF10B845-468E-4A88-A9D9-8E4C589E387C</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>2</integer>
<key>keyword</key>
<string>ws</string>
<key>text</key>
<string>WeatherSpark</string>
<key>withspace</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.keyword</string>
<key>uid</key>
<string>7B72027E-5733-4561-9B5A-1B7EC6ADB482</string>
<key>version</key>
<integer>0</integer>
</dict>
</array>
<key>readme</key>
<string></string>
<key>uidata</key>
<dict>
<key>7B72027E-5733-4561-9B5A-1B7EC6ADB482</key>
<dict>
<key>ypos</key>
<real>10</real>
</dict>
<key>BF10B845-468E-4A88-A9D9-8E4C589E387C</key>
<dict>
<key>ypos</key>
<real>10</real>
</dict>
</dict>
<key>webaddress</key>
<string>http://github.com/kejadlen</string>
</dict>
</plist>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 34 KiB

@ -55,61 +55,7 @@
<string>Copy</string> <string>Copy</string>
</dict> </dict>
</array> </array>
<key>dash_keyword_markdown</key> <key>dash_keyword_osx</key>
<array>
<dict>
<key>destinationuid</key>
<string>dash_action_normal</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
<dict>
<key>destinationuid</key>
<string>dash_action_cmd</string>
<key>modifiers</key>
<integer>1048576</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
<dict>
<key>destinationuid</key>
<string>dash_action_alt</string>
<key>modifiers</key>
<integer>524288</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
<key>dash_keyword_python2</key>
<array>
<dict>
<key>destinationuid</key>
<string>dash_action_normal</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
<dict>
<key>destinationuid</key>
<string>dash_action_cmd</string>
<key>modifiers</key>
<integer>1048576</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
<dict>
<key>destinationuid</key>
<string>dash_action_alt</string>
<key>modifiers</key>
<integer>524288</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
<key>dash_keyword_redis</key>
<array> <array>
<dict> <dict>
<key>destinationuid</key> <key>destinationuid</key>
@ -163,33 +109,6 @@
<string></string> <string></string>
</dict> </dict>
</array> </array>
<key>dash_keyword_sqlalchemy</key>
<array>
<dict>
<key>destinationuid</key>
<string>dash_action_normal</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
<dict>
<key>destinationuid</key>
<string>dash_action_cmd</string>
<key>modifiers</key>
<integer>1048576</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
<dict>
<key>destinationuid</key>
<string>dash_action_alt</string>
<key>modifiers</key>
<integer>524288</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
</dict> </dict>
<key>createdby</key> <key>createdby</key>
<string>Kapeli</string> <string>Kapeli</string>
@ -428,15 +347,15 @@ That said, you can edit anything else within this workflow (including adding new
<key>escaping</key> <key>escaping</key>
<integer>110</integer> <integer>110</integer>
<key>keyword</key> <key>keyword</key>
<string>markdown</string> <string>osx</string>
<key>runningsubtext</key> <key>runningsubtext</key>
<string>Searching for "{query}"</string> <string>Searching for "{query}"</string>
<key>script</key> <key>script</key>
<string>./dashAlfredWorkflow "markdown:{query}"</string> <string>./dashAlfredWorkflow "osx:{query}"</string>
<key>subtext</key> <key>subtext</key>
<string>Search Markdown for "{query}"</string> <string>Search OS X 10.10 for "{query}"</string>
<key>title</key> <key>title</key>
<string>Search Markdown</string> <string>Search OS X 10.10</string>
<key>type</key> <key>type</key>
<integer>0</integer> <integer>0</integer>
<key>withspace</key> <key>withspace</key>
@ -445,65 +364,7 @@ That said, you can edit anything else within this workflow (including adding new
<key>type</key> <key>type</key>
<string>alfred.workflow.input.scriptfilter</string> <string>alfred.workflow.input.scriptfilter</string>
<key>uid</key> <key>uid</key>
<string>dash_keyword_markdown</string> <string>dash_keyword_osx</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>0</integer>
<key>escaping</key>
<integer>110</integer>
<key>keyword</key>
<string>python2</string>
<key>runningsubtext</key>
<string>Searching for "{query}"</string>
<key>script</key>
<string>./dashAlfredWorkflow "python2:{query}"</string>
<key>subtext</key>
<string>Search Python 2 for "{query}"</string>
<key>title</key>
<string>Search Python 2</string>
<key>type</key>
<integer>0</integer>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>dash_keyword_python2</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>0</integer>
<key>escaping</key>
<integer>110</integer>
<key>keyword</key>
<string>redis</string>
<key>runningsubtext</key>
<string>Searching for "{query}"</string>
<key>script</key>
<string>./dashAlfredWorkflow "redis:{query}"</string>
<key>subtext</key>
<string>Search Redis for "{query}"</string>
<key>title</key>
<string>Search Redis</string>
<key>type</key>
<integer>0</integer>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>dash_keyword_redis</string>
<key>version</key> <key>version</key>
<integer>0</integer> <integer>0</integer>
</dict> </dict>
@ -521,7 +382,7 @@ That said, you can edit anything else within this workflow (including adding new
<key>script</key> <key>script</key>
<string>./dashAlfredWorkflow "ruby:{query}"</string> <string>./dashAlfredWorkflow "ruby:{query}"</string>
<key>subtext</key> <key>subtext</key>
<string>Search Ruby 2 and 1 other for "{query}"</string> <string>Search Ruby 2 for "{query}"</string>
<key>title</key> <key>title</key>
<string>Search Ruby 2</string> <string>Search Ruby 2</string>
<key>type</key> <key>type</key>
@ -536,35 +397,6 @@ That said, you can edit anything else within this workflow (including adding new
<key>version</key> <key>version</key>
<integer>0</integer> <integer>0</integer>
</dict> </dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>0</integer>
<key>escaping</key>
<integer>110</integer>
<key>keyword</key>
<string>sqlalchemy</string>
<key>runningsubtext</key>
<string>Searching for "{query}"</string>
<key>script</key>
<string>./dashAlfredWorkflow "sqlalchemy:{query}"</string>
<key>subtext</key>
<string>Search SQLAlchemy for "{query}"</string>
<key>title</key>
<string>Search SQLAlchemy</string>
<key>type</key>
<integer>0</integer>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>dash_keyword_sqlalchemy</string>
<key>version</key>
<integer>0</integer>
</dict>
</array> </array>
<key>readme</key> <key>readme</key>
<string>Usage: <string>Usage:
@ -604,30 +436,15 @@ The keyword is either a docset keyword (defined in Preferences &gt; Docsets) or
<key>ypos</key> <key>ypos</key>
<real>10</real> <real>10</real>
</dict> </dict>
<key>dash_keyword_markdown</key> <key>dash_keyword_osx</key>
<dict> <dict>
<key>ypos</key> <key>ypos</key>
<integer>930</integer> <integer>930</integer>
</dict> </dict>
<key>dash_keyword_python2</key>
<dict>
<key>ypos</key>
<integer>1050</integer>
</dict>
<key>dash_keyword_redis</key>
<dict>
<key>ypos</key>
<integer>1170</integer>
</dict>
<key>dash_keyword_ruby</key> <key>dash_keyword_ruby</key>
<dict> <dict>
<key>ypos</key> <key>ypos</key>
<integer>1290</integer> <integer>1050</integer>
</dict>
<key>dash_keyword_sqlalchemy</key>
<dict>
<key>ypos</key>
<integer>1410</integer>
</dict> </dict>
<key>dash_note_readme</key> <key>dash_note_readme</key>
<dict> <dict>

@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>bundleid</key>
<string>com.alfredapp.david.googlesuggest</string>
<key>connections</key>
<dict>
<key>63F60794-BB56-4415-9372-BAF974C3A7E1</key>
<array>
<dict>
<key>destinationuid</key>
<string>B8FFA3AB-AD7D-4316-A84F-5958A671D4FF</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
</dict>
<key>createdby</key>
<string>David Ferguson</string>
<key>description</key>
<string>Get Google Search Suggestions</string>
<key>disabled</key>
<false/>
<key>name</key>
<string>Google Suggest</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>0</integer>
<key>escaping</key>
<integer>36</integer>
<key>keyword</key>
<string>g</string>
<key>runningsubtext</key>
<string>Retrieving search suggestions ...</string>
<key>script</key>
<string>require_once('workflows.php');
$wf = new Workflows();
$orig = "{query}";
$xml = $wf-&gt;request( "http://google.com/complete/search?output=toolbar&amp;q=".urlencode( $orig ) );
$xml = simplexml_load_string( utf8_encode($xml) );
$int = 1;
foreach( $xml as $sugg ):
$data = $sugg-&gt;suggestion-&gt;attributes()-&gt;data;
$wf-&gt;result( $int.'.'.time(), "$data", "$data", 'Search Google for '.$data, 'icon.png' );
$int++;
endforeach;
$results = $wf-&gt;results();
if ( count( $results ) == 0 ):
$wf-&gt;result( 'googlesuggest', $orig, 'No Suggestions', 'No search suggestions found. Search Google for '.$orig, 'icon.png' );
endif;
echo $wf-&gt;toxml();</string>
<key>subtext</key>
<string>Search Google with Suggestions</string>
<key>title</key>
<string>Search Google</string>
<key>type</key>
<integer>1</integer>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>63F60794-BB56-4415-9372-BAF974C3A7E1</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>searcher</key>
<integer>1635215215</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.systemwebsearch</string>
<key>uid</key>
<string>B8FFA3AB-AD7D-4316-A84F-5958A671D4FF</string>
<key>version</key>
<integer>0</integer>
</dict>
</array>
<key>readme</key>
<string></string>
<key>uidata</key>
<dict>
<key>63F60794-BB56-4415-9372-BAF974C3A7E1</key>
<dict>
<key>ypos</key>
<real>60</real>
</dict>
<key>B8FFA3AB-AD7D-4316-A84F-5958A671D4FF</key>
<dict>
<key>ypos</key>
<real>60</real>
</dict>
</dict>
<key>webaddress</key>
<string>dferg.us</string>
</dict>
</plist>

@ -0,0 +1,462 @@
<?php
/**
* Name: Workflows
* Description: This PHP class object provides several useful functions for retrieving, parsing,
* and formatting data to be used with Alfred 2 Workflows.
* Author: David Ferguson (@jdfwarrior)
* Revised: 2/9/2013
* Version: 0.2
*/
class Workflows {
private $cache;
private $data;
private $bundle;
private $path;
private $home;
private $results;
/**
* Description:
* Class constructor function. Intializes all class variables. Accepts one optional parameter
* of the workflow bundle id in the case that you want to specify a different bundle id. This
* would adjust the output directories for storing data.
*
* @param $bundleid - optional bundle id if not found automatically
* @return none
*/
function __construct( $bundleid=null )
{
$this->path = exec('pwd');
$this->home = exec('printf $HOME');
if ( file_exists( 'info.plist' ) ):
$this->bundle = $this->get( 'bundleid', 'info.plist' );
endif;
if ( !is_null( $bundleid ) ):
$this->bundle = $bundleid;
endif;
$this->cache = $this->home. "/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/".$this->bundle;
$this->data = $this->home. "/Library/Application Support/Alfred 2/Workflow Data/".$this->bundle;
if ( !file_exists( $this->cache ) ):
exec("mkdir '".$this->cache."'");
endif;
if ( !file_exists( $this->data ) ):
exec("mkdir '".$this->data."'");
endif;
$this->results = array();
}
/**
* Description:
* Accepts no parameter and returns the value of the bundle id for the current workflow.
* If no value is available, then false is returned.
*
* @param none
* @return false if not available, bundle id value if available.
*/
public function bundle()
{
if ( is_null( $this->bundle ) ):
return false;
else:
return $this->bundle;
endif;
}
/**
* Description:
* Accepts no parameter and returns the value of the path to the cache directory for your
* workflow if it is available. Returns false if the value isn't available.
*
* @param none
* @return false if not available, path to the cache directory for your workflow if available.
*/
public function cache()
{
if ( is_null( $this->bundle ) ):
return false;
else:
if ( is_null( $this->cache ) ):
return false;
else:
return $this->cache;
endif;
endif;
}
/**
* Description:
* Accepts no parameter and returns the value of the path to the storage directory for your
* workflow if it is available. Returns false if the value isn't available.
*
* @param none
* @return false if not available, path to the storage directory for your workflow if available.
*/
public function data()
{
if ( is_null( $this->bundle ) ):
return false;
else:
if ( is_null( $this->data ) ):
return false;
else:
return $this->data;
endif;
endif;
}
/**
* Description:
* Accepts no parameter and returns the value of the path to the current directory for your
* workflow if it is available. Returns false if the value isn't available.
*
* @param none
* @return false if not available, path to the current directory for your workflow if available.
*/
public function path()
{
if ( is_null( $this->path ) ):
return false;
else:
return $this->path;
endif;
}
/**
* Description:
* Accepts no parameter and returns the value of the home path for the current user
* Returns false if the value isn't available.
*
* @param none
* @return false if not available, home path for the current user if available.
*/
public function home()
{
if ( is_null( $this->home ) ):
return false;
else:
return $this->home;
endif;
}
/**
* Description:
* Returns an array of available result items
*
* @param none
* @return array - list of result items
*/
public function results()
{
return $this->results;
}
/**
* Description:
* Convert an associative array into XML format
*
* @param $a - An associative array to convert
* @param $format - format of data being passed (json or array), defaults to array
* @return - XML string representation of the array
*/
public function toxml( $a=null, $format='array' ) {
if ( $format == 'json' ):
$a = json_decode( $a, TRUE );
endif;
if ( is_null( $a ) && !empty( $this->results ) ):
$a = $this->results;
elseif ( is_null( $a ) && empty( $this->results ) ):
return false;
endif;
$items = new SimpleXMLElement("<items></items>"); // Create new XML element
foreach( $a as $b ): // Lop through each object in the array
$c = $items->addChild( 'item' ); // Add a new 'item' element for each object
$c_keys = array_keys( $b ); // Grab all the keys for that item
foreach( $c_keys as $key ): // For each of those keys
if ( $key == 'uid' ):
$c->addAttribute( 'uid', $b[$key] );
elseif ( $key == 'arg' ):
$c->addAttribute( 'arg', $b[$key] );
elseif ( $key == 'type' ):
$c->addAttribute( 'type', $b[$key] );
elseif ( $key == 'valid' ):
if ( $b[$key] == 'yes' || $b[$key] == 'no' ):
$c->addAttribute( 'valid', $b[$key] );
endif;
elseif ( $key == 'autocomplete' ):
$c->addAttribute( 'autocomplete', $b[$key] );
elseif ( $key == 'icon' ):
if ( substr( $b[$key], 0, 9 ) == 'fileicon:' ):
$val = substr( $b[$key], 9 );
$c->$key = $val;
$c->$key->addAttribute( 'type', 'fileicon' );
elseif ( substr( $b[$key], 0, 9 ) == 'filetype:' ):
$val = substr( $b[$key], 9 );
$c->$key = $val;
$c->$key->addAttribute( 'type', 'filetype' );
else:
$c->$key = $b[$key];
endif;
else:
$c->$key = $b[$key];
endif;
endforeach;
endforeach;
return $items->asXML(); // Return XML string representation of the array
}
/**
* Description:
* Remove all items from an associative array that do not have a value
*
* @param $a - Associative array
* @return bool
*/
private function empty_filter( $a ) {
if ( $a == '' || $a == null ): // if $a is empty or null
return false; // return false, else, return true
else:
return true;
endif;
}
/**
* Description:
* Save values to a specified plist. If the first parameter is an associative
* array, then the second parameter becomes the plist file to save to. If the
* first parameter is string, then it is assumed that the first parameter is
* the label, the second parameter is the value, and the third parameter is
* the plist file to save the data to.
*
* @param $a - associative array of values to save
* @param $b - the value of the setting
* @param $c - the plist to save the values into
* @return string - execution output
*/
public function set( $a=null, $b=null, $c=null )
{
if ( is_array( $a ) ):
if ( file_exists( $b ) ):
$b = $this->path."/".$b;
elseif ( file_exists( $this->data."/".$b ) ):
$b = $this->data."/".$b;
elseif ( file_exists( $this->cache."/".$b ) ):
$b = $this->cache."/".$b;
else:
$b = $this->data."/".$b;
endif;
else:
if ( file_exists( $c ) ):
$c = $this->path."/".$c;
elseif ( file_exists( $this->data."/".$c ) ):
$c = $this->data."/".$c;
elseif ( file_exists( $this->cache."/".$c ) ):
$c = $this->cache."/".$c;
else:
$c = $this->data."/".$c;
endif;
endif;
if ( is_array( $a ) ):
foreach( $a as $k => $v ):
exec( 'defaults write "'. $b .'" '. $k .' "'. $v .'"');
endforeach;
else:
exec( 'defaults write "'. $c .'" '. $a .' "'. $b .'"');
endif;
}
/**
* Description:
* Read a value from the specified plist
*
* @param $a - the value to read
* @param $b - plist to read the values from
* @return bool false if not found, string if found
*/
public function get( $a, $b ) {
if ( file_exists( $b ) ):
$b = $this->path."/".$b;
elseif ( file_exists( $this->data."/".$b ) ):
$b = $this->data."/".$b;
elseif ( file_exists( $this->cache."/".$b ) ):
$b = $this->cache."/".$b;
else:
return false;
endif;
exec( 'defaults read "'. $b .'" '.$a, $out ); // Execute system call to read plist value
if ( $out == "" ):
return false;
endif;
$out = $out[0];
return $out; // Return item value
}
/**
* Description:
* Read data from a remote file/url, essentially a shortcut for curl
*
* @param $url - URL to request
* @param $options - Array of curl options
* @return result from curl_exec
*/
public function request( $url=null, $options=null )
{
if ( is_null( $url ) ):
return false;
endif;
$defaults = array( // Create a list of default curl options
CURLOPT_RETURNTRANSFER => true, // Returns the result as a string
CURLOPT_URL => $url, // Sets the url to request
CURLOPT_FRESH_CONNECT => true
);
if ( $options ):
foreach( $options as $k => $v ):
$defaults[$k] = $v;
endforeach;
endif;
array_filter( $defaults, // Filter out empty options from the array
array( $this, 'empty_filter' ) );
$ch = curl_init(); // Init new curl object
curl_setopt_array( $ch, $defaults ); // Set curl options
$out = curl_exec( $ch ); // Request remote data
$err = curl_error( $ch );
curl_close( $ch ); // End curl request
if ( $err ):
return $err;
else:
return $out;
endif;
}
/**
* Description:
* Allows searching the local hard drive using mdfind
*
* @param $query - search string
* @return array - array of search results
*/
public function mdfind( $query )
{
exec('mdfind "'.$query.'"', $results);
return $results;
}
/**
* Description:
* Accepts data and a string file name to store data to local file as cache
*
* @param array - data to save to file
* @param file - filename to write the cache data to
* @return none
*/
public function write( $a, $b )
{
if ( file_exists( $b ) ):
$b = $this->path."/".$b;
elseif ( file_exists( $this->data."/".$b ) ):
$b = $this->data."/".$b;
elseif ( file_exists( $this->cache."/".$b ) ):
$b = $this->cache."/".$b;
else:
$b = $this->data."/".$b;
endif;
if ( is_array( $a ) ):
$a = json_encode( $a );
file_put_contents( $b, $a );
return true;
elseif ( is_string( $a ) ):
file_put_contents( $b, $a );
return true;
else:
return false;
endif;
}
/**
* Description:
* Returns data from a local cache file
*
* @param file - filename to read the cache data from
* @return false if the file cannot be found, the file data if found. If the file
* format is json encoded, then a json object is returned.
*/
public function read( $a )
{
if ( file_exists( $a ) ):
$a = $this->path."/".$a;
elseif ( file_exists( $this->data."/".$a ) ):
$a = $this->data."/".$a;
elseif ( file_exists( $this->cache."/".$a ) ):
$a = $this->cache."/".$a;
else:
return false;
endif;
$out = file_get_contents( $a );
if ( !is_null( json_decode( $out ) ) ):
$out = json_decode( $out );
endif;
return $out;
}
/**
* Description:
* Helper function that just makes it easier to pass values into a function
* and create an array result to be passed back to Alfred
*
* @param $uid - the uid of the result, should be unique
* @param $arg - the argument that will be passed on
* @param $title - The title of the result item
* @param $sub - The subtitle text for the result item
* @param $icon - the icon to use for the result item
* @param $valid - sets whether the result item can be actioned
* @param $auto - the autocomplete value for the result item
* @return array - array item to be passed back to Alfred
*/
public function result( $uid, $arg, $title, $sub, $icon, $valid='yes', $auto=null, $type=null )
{
$temp = array(
'uid' => $uid,
'arg' => $arg,
'title' => $title,
'subtitle' => $sub,
'icon' => $icon,
'valid' => $valid,
'autocomplete' => $auto,
'type' => $type
);
if ( is_null( $type ) ):
unset( $temp['type'] );
endif;
array_push( $this->results, $temp );
return $temp;
}
}

@ -20,16 +20,7 @@
</dict> </dict>
</array> </array>
<key>2E57B3A5-B65F-4AB6-93B2-183BB082414B</key> <key>2E57B3A5-B65F-4AB6-93B2-183BB082414B</key>
<array> <array/>
<dict>
<key>destinationuid</key>
<string>30CDA5F5-6107-44A7-8A5D-551DFBD599B6</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
<key>960E961A-2EF3-44C4-BFF2-B8BA1466C8EA</key> <key>960E961A-2EF3-44C4-BFF2-B8BA1466C8EA</key>
<array> <array>
<dict> <dict>
@ -442,23 +433,6 @@
<key>version</key> <key>version</key>
<integer>1</integer> <integer>1</integer>
</dict> </dict>
<dict>
<key>config</key>
<dict>
<key>paths</key>
<array>
<string>~/Applications/Mailbox (Beta).app</string>
</array>
<key>toggle</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.action.launchfiles</string>
<key>uid</key>
<string>30CDA5F5-6107-44A7-8A5D-551DFBD599B6</string>
<key>version</key>
<integer>0</integer>
</dict>
</array> </array>
<key>readme</key> <key>readme</key>
<string></string> <string></string>
@ -489,11 +463,6 @@
<key>ypos</key> <key>ypos</key>
<real>250</real> <real>250</real>
</dict> </dict>
<key>30CDA5F5-6107-44A7-8A5D-551DFBD599B6</key>
<dict>
<key>ypos</key>
<real>850</real>
</dict>
<key>43DCD79F-94B0-4F0D-B7C2-4F04DC7ECE20</key> <key>43DCD79F-94B0-4F0D-B7C2-4F04DC7ECE20</key>
<dict> <dict>
<key>ypos</key> <key>ypos</key>

@ -1,86 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>bundleid</key>
<string></string>
<key>connections</key>
<dict>
<key>5E9084C5-202F-4750-9DDC-1077AAAA27B1</key>
<array>
<dict>
<key>destinationuid</key>
<string>694E5D78-618B-4553-86C1-932DF3D04B1E</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
</dict>
<key>createdby</key>
<string>Alpha Chen</string>
<key>description</key>
<string></string>
<key>disabled</key>
<true/>
<key>name</key>
<string>Vimwiki</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>2</integer>
<key>keyword</key>
<string>vw</string>
<key>text</key>
<string>Vimwiki</string>
<key>withspace</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.keyword</string>
<key>uid</key>
<string>5E9084C5-202F-4750-9DDC-1077AAAA27B1</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>escaping</key>
<integer>63</integer>
<key>script</key>
<string>/usr/local/bin/mvim -c VimwikiIndex</string>
<key>type</key>
<integer>5</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>694E5D78-618B-4553-86C1-932DF3D04B1E</string>
<key>version</key>
<integer>0</integer>
</dict>
</array>
<key>readme</key>
<string></string>
<key>uidata</key>
<dict>
<key>5E9084C5-202F-4750-9DDC-1077AAAA27B1</key>
<dict>
<key>ypos</key>
<real>10</real>
</dict>
<key>694E5D78-618B-4553-86C1-932DF3D04B1E</key>
<dict>
<key>ypos</key>
<real>10</real>
</dict>
</dict>
<key>webaddress</key>
<string>http://github.com/kejadlen</string>
</dict>
</plist>
Loading…
Cancel
Save