Skip to content

Commit

Permalink
activate filter when typing
Browse files Browse the repository at this point in the history
  • Loading branch information
lukdiekm committed Jul 27, 2021
1 parent e7bea2c commit be52151
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<key>config</key>
<dict>
<key>alfredfiltersresults</key>
<false/>
<true/>
<key>alfredfiltersresultsmatchmode</key>
<integer>0</integer>
<key>argumenttreatemptyqueryasnil</key>
Expand Down Expand Up @@ -124,6 +124,10 @@
<integer>215</integer>
</dict>
</dict>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>0.1</string>
<key>webaddress</key>
<string></string>
</dict>
Expand Down
14 changes: 7 additions & 7 deletions listShortcuts.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?><items>";
exec('shortcuts list', $data);
foreach ($data as $shortcut) {
echo "<item uid=\"'{$shortcut}\" valid=\"YES\" autocomplete=\"{$shortcut}\">";
echo "<title>{$shortcut}</title>";
echo "<subtitle>{$shortcut}</subtitle>";
echo "<icon>sc-icon.png</icon>";
echo "<arg>{$shortcut}</arg>";
echo "</item>";
foreach ($data as $shortcut) {
echo "<item uid=\"'{$shortcut}\" valid=\"YES\" autocomplete=\"{$shortcut}\">";
echo "<title>{$shortcut}</title>";
echo "<subtitle>{$shortcut}</subtitle>";
echo "<icon>sc-icon.png</icon>";
echo "<arg>{$shortcut}</arg>";
echo "</item>";
}
echo "</items>";

0 comments on commit be52151

Please # to comment.