Skip to content

Commit

Permalink
Added support for readme and workflow version number in Alfred
Browse files Browse the repository at this point in the history
  • Loading branch information
idpaterson committed Sep 14, 2016
1 parent 184960c commit 99e7dbf
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 6 deletions.
12 changes: 9 additions & 3 deletions Gruntfile.js
Expand Up @@ -13,9 +13,15 @@ function loadConfig(path) {
var object = {};
var key;

grunt.file.expand({ cwd: path + '/' }, '*.js').forEach(function(filename) {
key = filename.replace(/\.js$/,'');
object[key] = require(path + '/' + filename);
grunt.file.expand({ cwd: path + '/' }, '*.{js,txt}').forEach(function(filename) {
key = filename.replace(/\.[^.]+$/,'');

if (filename.indexOf('.txt') >= 0) {
object[key] = grunt.file.read(path + '/' + filename);
}
else {
object[key] = require(path + '/' + filename);
}
});

return object;
Expand Down
4 changes: 3 additions & 1 deletion src/info.plist
Expand Up @@ -454,7 +454,7 @@ security delete-generic-password -s com.ipaterson.alfred.wunderlist -a oauth_tok
</dict>
</array>
<key>readme</key>
<string>Readme</string>
<string><%= readme %></string>
<key>uidata</key>
<dict>
<key>06482847-7F21-4C57-88BB-B642E0182781</key>
Expand Down Expand Up @@ -523,6 +523,8 @@ security delete-generic-password -s com.ipaterson.alfred.wunderlist -a oauth_tok
<real>230</real>
</dict>
</dict>
<key>version</key>
<string><%= pkg.version %></string>
<key>webaddress</key>
<string>https://github.com/idpaterson</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion tasks/build.js
Expand Up @@ -3,7 +3,7 @@

module.exports = function(grunt) {
grunt.registerTask('build', [
'copy:dist',
'copy',
'newer:imagemin:dist',
'newer:symlink:workflow',
'replace',
Expand Down
23 changes: 22 additions & 1 deletion tasks/options/copy.js
Expand Up @@ -2,15 +2,36 @@

'use strict';

var grunt = require('grunt');

function processGruntTemplates(content) {
return grunt.template.process(content);
}

module.exports = {
templated: {
options: {
process: processGruntTemplates
},
files: [
{
expand: true,
cwd: '<%= paths.app %>',
dest: '<%= paths.dist_app %>',
src: [
'**/*.plist'
]
}
]
},
dist: {
files: [
{
expand: true,
cwd: '<%= paths.app %>',
dest: '<%= paths.dist_app %>',
src: [
'**/*.{py,scpt,plist,ini}'
'**/*.{py,scpt,ini}'
]
},
{
Expand Down
22 changes: 22 additions & 0 deletions tasks/options/readme.txt
@@ -0,0 +1,22 @@
See the GitHub project page for instructions and support:
https://github.com/idpaterson/alfred-wunderlist-workflow#wunderlist-workflow-for-alfred


New in version <%= pkg.version %>:
* Fixed handling of accented characters followed by a keyword
- für parsed as fü r which triggered the "r" reminder keyword
* Fixed relaunching of Alfred 3 after changing a preference
- For example, showing completed tasks in search results reopens Alfred with the same search
- Alfred 2 was not affected
* Added this readme so that you can see what is changed in each update!

More details: https://github.com/idpaterson/alfred-wunderlist-workflow/releases/tag/<%= pkg.version %>


The 0.6 series includes the following major changes:
* Added upcoming and due screens
* Search and browse tasks
* New command format allowing partial commands like wls instead of wl-search
* Complete, delete, and view tasks in Wunderlist desktop app

More details: https://github.com/idpaterson/alfred-wunderlist-workflow/releases/tag/0.6.0

0 comments on commit 99e7dbf

Please sign in to comment.