Comments (3)
Certainly not opposed! Might be a pretty big undertaking, but if you submit a PR, i'll definitely take a look :)
from atom-tasks.
The toughest part of this is the heavy use of the ?
operator, of which there's no direct equivalent in es6.
I ran decaffeinate
, which is a great tool to convert to es6 (repo, info), but the code is kind of ugly, as it adds these "guard" statements all over the place:
Coffee
destroy: ->
@activeItemSub.dispose()
@changeSub?.dispose()
@tokenizeSub?.dispose()
JS
destroy() {
this.activeItemSub.dispose();
__guard__(this.changeSub, x => x.dispose());
return __guard__(this.tokenizeSub, x1 => x1.dispose());
}
function __guard__(value, transform) {
return (typeof value !== 'undefined' && value !== null) ? transform(value) : undefined;
}
I'm not super-familiar with atom plugin development, so I don't know how many of these existential operators are important to keep. However, if we could remove some of those, it'd be really easy to convert over!
from atom-tasks.
I imagine with a solid block of time I could knock this out pretty quickly. Might be good to rewrite some of the logic anyways. Just gotta find that solid block of time ;)
I've also been thinking about rewriting the plugin to use a custom text editor view, which would take a lot more work but support a lot of the customization folks have been asking for. I'd really love to explore that further too!
from atom-tasks.
Related Issues (20)
- Settings "filename pattern"
- Fix where checkbox is placed
- Add option to archive project itself
- Bullet-style Line Wrapping/Indenting
- Is this package still in development? ES6? Custom Text Editor view? HOT 1
- HTMLDocument.registerElement is deprecated.
- Toggle Timestamp Feature HOT 4
- Multiple prefixes for different tag types HOT 1
- Status bar showing all tasks as incomplete
- Update: Tasks package not activating on Atom 1.24.x and later HOT 18
- Please make cmd+enter convert current line to task
- Add syntax highlighting for basic tags HOT 1
- Tasks 2.9.1 HOT 1
- "Cannot find module" error on Atom 1.25.0-beta.0. HOT 3
- Failed to activate the tasks package HOT 15
- Cannot find module 'underscore' HOT 3
- Uncaught TypeError: ref3.tokenizedBuffer.onDidTokenize is not a function HOT 1
- I can't open the tasks on my atom HOT 1
- "About:" keyword "does something" HOT 6
- property 'TouchBarButton' of undefined
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 atom-tasks.