Giter VIP home page Giter VIP logo

atom-simple-align's Introduction

Atom simple align package

This package is no longer maintained.

A simple package to align multiple cursors, and that's it. Why create another alignment package when there are already a ton of them? Because for what I wanted they were too complicated and tried to intelligently align on given characters, add spaces before or after characters, etc, and they gave unexpected results sometimes.

Atom simple align example

Usage

Mac

ctrl + โŒ˜ + a

Windows

ctrl + alt + a

atom-simple-align's People

Contributors

hugomaiavieira avatar jeffreybaird avatar stevenhauser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

atom-simple-align's Issues

Option to use the left-most part of the selection when one is active?

Hello

I've recently started using this package and it was exactly what I'm looking for, thanks! However, I've been wondering a bit about how selections are intended to be handled? For example (where | denotes the bounds of the selection):

var a |=| 1;
var ab |=| 2;
var abc |=| 3;

What should happen in this case? I've noticed that currently alignment will happen wherever the cursor ended, so if I had my three cursors to the left of the equal signs, then selected it using shift+right, alignment would happen as if the cursor was after the equal signs, i.e.:

var a =| 1;
var ab =| 2;
var abc =| 3;

If, however, my cursor was after the equal signs and I moved left using shift-left, alignment will happen to the left of the equal signs.

Would it perhaps be a good idea to add a configuration option to always use the left-most (or right-most) part of the selection instead? This adds a certain degree of predictability and is especially useful if you often use the 'select next occurrence' from Atom's find and replace to quickly select lines that look alike and must be aligned together.

Thanks in advance

Multi row selection example

Missing instructions on how to reproduce your multi row selection example in your GIF. Is that from another package?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.