Jump to content

Martien Oranje

Member
  • Posts

    69
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Martien Oranje

  1. Thanks to Paul the new version is live.
  2. The label feature, with node.js installed you would have gotten an empty array (a list) back. But since you don't have node.js installed that array (or the array representation "[]") wasn't returned. The todoist API didn't accept an empty string "" instead of "[]" for an empty set of labels so returned an Error that an invalid value was entered. I wish they had listed which value, so I would have been on the right track much sooner. Thanks for helping me figure this out. Martien
  3. Hmm that last file didn't get uploaded to dropbox it seems. You should get version 3.1.3. New version: Version 3.1.3.
  4. I think I discovered the problem! The debug logs helped me figure it out. Try this version, and let me know if that solves it. Fixed version
  5. Hmm something just hit me, do you have node.js installed? It should work without but I haven't properly tested that. Try this debug version, but be warned don't repost your token information. It will log your everything to the debug console in alfred, but I guess you know how to handle that. Martien
  6. Hi Paul, It sounds like you may be using weird characters (or maybe still some of your edits in the "Add todo" script) but I can't be sure unless I know what you are typing. I just redownloaded version 3.1.2 on a different device but I can't find anything out of the ordinary. Try this: 1. type the following in the alfred search bar todo test Still the same error? 2. check the files at: ~/Library/Application Support/Alfred 3/Workflow Data/com.alfred-workflow-todoist ~/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.alfred-workflow-todoist Anything out of the ordinary here? Martien
  7. Hi Paul, I guess we are making progress. What I need to know to help you is what you are doing that is producing the errors (the process and commands) so hopefully I'll be able to recreate the error you are getting. Also, wat is the exact error you are getting? Martien
  8. I guess that wasn't clear enough, I meant the alfred 'normal' search bar. You shouldn't have to mess around with any settings, see below: Martien PS. You are right I did mean 3.1.2
  9. Hi guys, Make sure you have downloaded v3.0.2 and redownload it if you have changed any of the scripts, that's not the intended way. In the Alfred bar, type the following and replace the token with your own. t:token 238948934acde892edc989 You should be all set. If you need more instructions, check out the GitHub page. Let me know if you need any more help. Martien
  10. New version 3.1.0: [FEATURE] `todos + {query}` (todo search) command added, now you can fuzzy search your tasks. [FEATURE] caching! Cache is refreshed on hitting `t`. Everything should run a little faster now. [CHANGE] running `todos` without a query will list your todos (this feature used to be under `todo`)
  11. Updated to version 3.0.0. The significant changes are: You are now able to add a task to an existing projectEx: todo Buy milk, tomorrow at 6pm, groceries (groceries being the project) You are now able to add labels to your tasksEx: todo Buy milk @diary @white_stuff @food The API changed to accommodate labels and projects, whereas it used to be that you would assign a priority like this:Ex: todo Buy milk, tomorrow at 6pm, 3 You can now achieve the same thing as follows: Ex: todo Buy milk !!3, tomorrow at 6pm, or for that matter like this: todo Buy milk, tomorrow at 6pm !!3 Cheers, Martien
  12. Hi etaming, Thanks for catching that! I will update the workflow to include the workflow folder creation! Martien
  13. Hi guys, I can't reproduce the problem. Adding tasks doesn't require node.js. And since the first release not much has changed to the logic of adding a task, though I can't be a 100% sure a bug hasn't found it's way in. Can you shoot me some more info on: - Your mac OS versions - Alfred versions Please check that there are no spaces in the token. Also check ~/Library/Application Support/Alfred 3/Workflow Data/com.alfred-workflow-todoist for a file named settings.json (private information!) for anything that looks off there (no token, invalid json formatting, nothing at all). Let me know what you find. Martien
  14. Thanks for the write-up, it clarifies a lot. I'm still struggling with retrieving plist variables though. I added the following entry to the info.plist like this: /usr/libexec/PlistBuddy -c "add :variables:awt_language: string \"en\"" info.plist Should this awt_language and it's value "en" be retrieved like: ObjC.import('stdlib'); var awt_language = $.getenv( 'awt_language' ); // Or perhaps var awt_language = $.getenv( 'variables.awt_language' ); // Or even var variables = $.getenv( 'variables' ); // variables.awt_language None of these worked for me so perhaps my assumption that it can be retrieved that way is wrong. Any help would be welcome, thanks Martien
  15. Updated with the recommended options, thanks again, Martien
  16. Do you happen to know how to get the 'alfred_workflow_data' env variable in javascript (osascript)?
  17. Hi, thanks for your feedback! The config options are not ideal, I was looking for a way to make the usage a little friendlier. Good tip on the opening command too. I'm aware of ⌘+T not being ideal (I have added iTerm to the list of related apps that shouldn't have focus), can you recommend something a little more idiomatic to alfred? Will update when I have some more time to invest. I'll fix the github url straight away, nice catch. Martien
  18. ALFRED TODOIST WORKFLOW Add and search Todoist tasks straight from Alfred. It uses Todoist v8 REST API. Getting started For this workflow to work you need version 3.x of Alfred and a powerpack licence. Node.js Installation Download and import workflow. Configuration Name Notation Explanation token ^[0-9a-fA-F]{40}$ (default empty) The todoist API token. language en, da, pl, zh, ko, de, pt, ja, it, fr, sv, ru, es, nl(default en) The language for natural language date processing (by todoist) and to calculate time to complete a task. cache_timeout A positive number (default 3600, an hour) The time (in seconds) until the cache is refreshed (until that time todoist information is stored locally to make things a little faster) anonymous_statistics true or false (default true) Doesn't do much at the moment but I intent to use it to track installs todo:setting token {api token} Example: todo:setting token 2d2e2a334c5f36e7a7c43b46e todo:setting language {language} Example: todo:setting language nl todo:setting cache_timeout {time in seconds} Example: todo:setting cache_timeout 13 todo:setting anonymous_statistics {true or false} Example: todo:setting anonymous_statistics false Usage Name Notation Explanation task Any text except , The task title. date A date string See the Todoist documentation for supported date formats. project Either #personal or #[next actions] Use either the hashtag notation or bracket notation if the project name has spaces in it. The project name is case insensitive. label @label Label names can't contain any whitespace characters. Labels are case insensitive. priority Either p2 or !!2 A value between 1 (urgent) and 4 (normal) Search for tasks todos {query} Query Any search query one character or longer. Uses fuzzy search to find the tasks. Example: todos car => returns (because of fuzzy search): Rent car New cat recipe's Cut Gras tomorrow Create task todo {task}, {date} Example: todo Get things done, tomorrow @ 9 Example: todo Build tree house #home !!2 @15min, tomorrow @ 9 Changelog View CHANGELOG.md Contributing Instructions - Fork and clone the repo - Install dependacies - Symlink to project workflow folder git clone https://github.com/YOUR-USERNAME/alfred-worflow-todoist npm install npm run setup:dev Build Create a new build with npm run build Run tests Run Jest test suite with: npm run test npm run test:prod Or run a watcher with npm run test:watch Commits For commits I follow the angular commit guidelines and use semantic release to automate builds, semver version updates and changelog creation. The way to make sure this all works is to run: npm run commit Which guides you through the motions Code of conduct code-of-conduct.md License License MIT © Martien Oranje
×
×
  • Create New...