adrianlee44 / atom-aligner

Easily align multi-line with support for different operators and custom configurations
https://atom.io/packages/aligner
MIT License
78 stars 3 forks source link

TypeScript support #74

Closed marcghorayeb closed 7 years ago

marcghorayeb commented 7 years ago

Hello, First of all, great work on the module! Really useful for any maniacs like myself ;) I was wondering how ward would it be to make the atom-aligner-javascript package to support typescript files? Has this been already tested or not? Best regards, Marc

adrianlee44 commented 7 years ago

There hasn't been a need for TypeScript support so I haven't looked into it yet. You can also create an TypeScript aligner addon package by copying most of atom-aligner-javascript code.

You would need to update the selector to .source.ts and .source.tsx. Also update the the scope of the character you are trying to align.

marcghorayeb commented 7 years ago

Okay, I'll try to look into it, will let you know how it goes 👍

marcghorayeb commented 7 years ago

Created the package here : https://github.com/marcghorayeb/atom-aligner-typescript Quickly tested, seems to work, great work on the main plugin, thanks for the help :)