Code Monkey home page Code Monkey logo

atom-alignment's People

Contributors

blakeembrey avatar greenkeeper[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

grotell

atom-alignment's Issues

Spacing with PHP associative array keys

$names = [
    'bob' => 231,
    'johnson' => 432423,
];

after using the Alignment shortcut it's adding an extra space after the = sign.

$names = [
    'bob'     = > 231,
    'johnson' = > 432423,
];

Danish keyboard

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 😄

danish-keyboard-550x183

Ruby hash-rockets with symbol keys are broken

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'
}

Not working with Atom v0.153.0

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

An in-range update of pre-commit is breaking the build 🚨

Version 1.2.1 of pre-commit just got published.

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 💪


Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details
Commits

The new version differs by 2 commits .

  • 7d6feb1 [dist] 1.2.1
  • 3ecafe0 [fix] chmod 0777 the newly created file; Fixes #88

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Align javascript ES6 "import ... from" statements

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'

Don't align on double colon (breaks constants in PHP)

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',
];

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).

An in-range update of coffeelint is breaking the build 🚨

Version 1.16.0 of coffeelint just got published.

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 💪


Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details
Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Uncaught TypeError: Cannot read property 'getSelections' of undefined

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

Stack Trace

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)

Commands

     -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)

Config

{
  "core": {
    "excludeVcsIgnoredPaths": false,
    "disabledPackages": [
      "autoclose-html",
      "inline-autocomplete",
      "file-icons"
    ],
    "themes": [
      "atom-dark-ui",
      "monokai"
    ]
  },
  "alignment": {}
}

Installed Packages

# 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

not working with atom 0.96.0

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 ?

An in-range update of coffeelint is breaking the build 🚨

Version 1.16.1 of coffeelint just got published.

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 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of pre-commit is breaking the build 🚨

Version 1.1.3 of pre-commit just got published.

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 💪


Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details
Commits

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.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

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.