atom-alignment
atom-alignment copied to clipboard
Reimplement API
Should use a simpler approach to aligning items. Just use the cursor API and align based on what the service is told to align. Could add two different shortcuts for align left and align right (e.g. colons to left, equals to right). Love https://atom.io/packages/simple-align ❤️
Can also add extra shortcuts for quickly selecting by symbols so you can select a block, then quickly align the block. @stevenhauser, since you did simple-align would you like the namespace on atom? Offer is also open to anyone else who wants to implement this using the proposed design, I don't tend to align things like this anymore or use atom (though it still could be really useful for markdown tables, for example).
Could also get this logic into https://www.npmjs.com/package/alignment for node.js APIs. Something like findSelector(block, '='), alignItems(block, selections, 'left' | 'right') and alignment(block, selections, 'left' | 'right') to combine these APIs.
Thanks for the offer @blakeembrey! But I'll probably keep it as simple-align.