Comments (8)
I am working on this myself, but in doing so I refactored a lot of the js code. Now is a bad time to jump into this.
from alfred-workflow-todoist.
Yeah I have much of the rewritten code finished but I haven't had any time to squash the last bugs and update the test suite between a home make-over, work and my parental duties. I don't have a lot of time to allocate in January. Thanks for helping out.
M
from alfred-workflow-todoist.
The release is available on:
- GitHub release
v6.0.0-alpha.8
v6.0.0-alpha.8
Your semantic-release bot
from alfred-workflow-todoist.
nice-to-have: also sort by priority
from alfred-workflow-todoist.
Hi! Is this still something that would interest you?
from alfred-workflow-todoist.
I second this and might be able to take a crack at it.
from alfred-workflow-todoist.
I am postponing this feature until next release. Time contrains and all. Thanks for understanding.
Martien
from alfred-workflow-todoist.
Any news on this? :)
Just added a quick dirty fix to calls.js file by replacing the getTasksCapped function with this one:
/**
* Get a capped list of tasks from Todoist.
*
* @author moranje <[email protected]>
* @since 2016-07-03
* @return {Object}
*/
function getTasksCapped() {
var list = [];
todoist.getTasks( settings.token, function( data ) {
if ( !Array.isArray( data.items ) ) return error( data );
data.items.sort(function(a, b){
return new Date(a.due_date_utc) - new Date(b.due_date_utc);
})
data.items.map(function(item) {
let date = new Date(item.due_date_utc)
let miliseconds24hours = 1000 * 1 * 60 * 60 * 24
if(date - Date.now() <= miliseconds24hours) {
item.content += " (Today)"
}
return item
})
data.items.forEach( function( task, index ) {
if ( index < settings.max_items ) {
list.push( task );
}
} );
return echo( optionList( list ) );
} );
}
Sorting by due date and appeding (today) for the tasks that due in that day.
from alfred-workflow-todoist.
Related Issues (20)
- On creating task I cannot specify project name with special char in HOT 1
- Cannot read property 'lenght' of null HOT 1
- Parse final "," instead of first "," HOT 3
- Default project?
- [Bug] TypeError: Cannot convert undefined or null to object HOT 1
- Open a task
- [Bug] TypeError: Cannot read property 'name' of undefined - After Alfred update.
- Noisy desktop notifications HOT 5
- [Bug] TypeError: Cannot convert undefined or null to object
- [Bug] TypeError: Cannot convert undefined or null to object
- terminal-notifier not trusted HOT 3
- HTTPError: Response code 410 (Gone) HOT 2
- Stack: Error: spawn Unknown system error -86 HOT 1
- specify a default list? HOT 1
- unable to get local issuer certificate? HOT 1
- Disable Fuzzy search
- Tasks frequently create incompletely HOT 2
- This API endpoint is no longer available HOT 3
- HTTPError: Response code 410 (Gone) HOT 2
- 2022 build for Mac OS Ventura?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alfred-workflow-todoist.