blakeembrey / atom-alignment Goto Github PK
View Code? Open in Web Editor NEWAlign selections for Atom `⌘⌥^ ]`
License: MIT License
Align selections for Atom `⌘⌥^ ]`
License: MIT License
$names = [
'bob' => 231,
'johnson' => 432423,
];
after using the Alignment shortcut it's adding an extra space after the =
sign.
$names = [
'bob' = > 231,
'johnson' = > 432423,
];
in the docs the generated code has the = aligned
on my system not
$a = 1;
$asdff = 3;
produces
$a = 1;
$asdff = 3;
is this the desired behavior ?
The default keybinding does not work at all on a danish keyboard. On a danish keyboard we don't even have a specific [ key. We have to press CTRL + ALT + 8 to do that. Already pressing the CTRL and ALT modifiers makes the keybinding unusable for me :/.
Maybe use the same as in Sublime Text (CTRL + ALT + A)?
I've changed the default keybinding, and it works, but it may be something for you to take into account 😄
What adrianlee44/atom-vertical-align does. The gif from his repo sums it up:
got issues when we have multiple = in same line
I'm pretty sure this used to work, but it seems like it no longer does. This:
{
:something => 'foo',
:else => 'bar'
}
Turns into this:
{
: something => 'foo',
: else => 'bar'
}
I have to remove :
from the "Left Separators" config for it to work, but I assume that breaks other cases...
For clarity, I expect this:
{
:something => 'foo',
:else => 'bar'
}
After trying to align I'm unable to edit the file I'm working with. I'm not sure if this helps but this shows up in the console:
Uncaught TypeError: Cannot read property 'isEmpty' of undefined
Uncaught ReferenceError: spawnSync is not defined
Uncaught TypeError: Cannot read property 'selectToScreenPosition' of undefined
Uncaught ReferenceError: spawnSync is not defined
Branch | Build failing 🚨 |
---|---|
Dependency | pre-commit |
Current Version | 1.2.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As pre-commit is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.
I recommend you give this issue a high priority. I’m sure you can resolve this 💪
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴
Hi there, I was looking for a way to align ES6 style import statements in javascript.
eg:
import React, {Component} from 'react'
import {connect} from 'react-redux'
import Foo from './Foo'
to
import React, {Component} from 'react'
import {connect} from 'react-redux'
import Foo from './Foo'
Currently alignments aren't ignored for double colons (::
). In PHP, this causes constants to become broken. Not sure if there are languages where splitting double colons is acceptable or desired.
Here's a contrived example:
$var = [
App::NAME_KEY => 'text',
App::FORMAT_KEY => '123',
];
becomes:
$var = [
App: : NAME_KEY => 'text',
App: : FORMAT_KEY => '123',
];
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).
Branch | Build failing 🚨 |
---|---|
Dependency | coffeelint |
Current Version | 1.15.7 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As coffeelint is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.
I recommend you give this issue a high priority. I’m sure you can resolve this 💪
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴
This gets thrown when you try to instantiate without an open or selected window.
Atom Version: 0.176.0
System: Mac OS X 10.10.2
Thrown From: alignment package, v1.1.3
Uncaught TypeError: Cannot read property 'getSelections' of undefined
At /Users/jory/.atom/packages/alignment/lib/atom-alignment.coffee:21
TypeError: Cannot read property 'getSelections' of undefined
at Object.module.exports.align (/Users/jory/.atom/packages/alignment/lib/atom-alignment.coffee:21:11)
at atom-workspace.<anonymous> (/Users/jory/.atom/packages/alignment/lib/atom-alignment.coffee:17:14)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/lib/command-palette-view.js:120:32)
at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/archive-view/node_modules/atom-space-pen-views/lib/select-list-view.js:335:21)
at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app/node_modules/archive-view/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:170:20)
-0:05.1 command-palette:toggle (atom-pane.pane.active)
-0:00.8 core:confirm (atom-text-editor.editor.mini)
-0:00.7 alignment (atom-pane.pane.active)
{
"core": {
"excludeVcsIgnoredPaths": false,
"disabledPackages": [
"autoclose-html",
"inline-autocomplete",
"file-icons"
],
"themes": [
"atom-dark-ui",
"monokai"
]
},
"alignment": {}
}
# User
Atom-Syntax-highlighting-for-Sass, v0.5.0
alignment, v1.1.3
angularjs, v0.1.0
autocomplete-plus, v1.1.0
color-picker, v1.4.4
javascript-snippets, v1.0.0
language-diff, v0.2.0
language-rspec, v0.2.1
monokai, v0.11.0
rspec-snippets, v0.4.0
# Dev
No dev packages
/cc @atom/core
Hi,
I've just installed the plugin (0.0.3) and when i try to run it the text gets unselected but remains the same and no errors are displayed in the console
i'm running it on a php file with the following code:
<?php
$a = 1;
$bg = 2;
any pointers on how to solve it ?
Alignment of :
operator is set to left
by default. When you add :
to the right separators
list, it's still regarded as being left
.
Branch | Build failing 🚨 |
---|---|
Dependency | coffeelint |
Current Version | 1.16.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As coffeelint is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.
I recommend you give this issue a high priority. I’m sure you can resolve this 💪
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴
Branch | Build failing 🚨 |
---|---|
Dependency | pre-commit |
Current Version | 1.1.2 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As pre-commit is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.
I recommend you give this issue a high priority. I’m sure you can resolve this 💪
The new version differs by 11 commits .
0f0833a
[dist] 1.1.3
fa6119d
Merge pull request #57 from blacksonic/master
2abd42b
Merge pull request #64 from kevinoid/relative-link
1a04430
Make pre-commit hook symlink relative
2ca2fb9
Merge pull request #60 from saiichihashimoto/patch-1
b6e63d7
Update README.md
4510f45
[fix] add .bashrc to supported home files
3f83f72
Merge pull request #54 from fhemberger/fix/dependencies
683221f
Merge pull request #53 from fhemberger/fix/travis
53ec6e9
Update dependencies
eb7ac24
[travis] Add [email protected], use new container infrastructure
See the full diff.
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.