Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Austin Cheney
@prettydiff
@andrewserff I have an option created to solve that problem: chainmethod. You can see here Glavin001/atom-beautify#524 that the option is not implemented in atom-beautify just yet, but a pull request has already been created for this at Glavin001/atom-beautify#594
@andrewserff Please feel free to test JSX code and all the Pretty Diff options at http://prettydiff.com/
Andrew Serff
@andrewserff
@prettydiff cool, that does seem to fix the dots issue. What about the {{}} in the jsx when you reference an object? It seems like it is treating that as json
Austin Cheney
@prettydiff
@andrewserff The code supports the concept of destructuring on to a single line even if wrapped in curly braces. To minimize the complexity and keep the logic around this feature sane I made the decision to eliminate this feature if the destructured object contains either a list or any other objects. You can see if you convert the code in question {classname} Pretty Diff will keep it all on one line.
Andrew Serff
@andrewserff
ya, that works, but doesn't work with inline things like styles: style={{color: 'red'}}
you'd have to define each inline item as an object and then use the single curly to keep it formatted nicely.
so i guess there is a workaround...just not as nice as i'd like...
@Glavin001 any idea when you'll merge/release #524?
Glavin Wiechert
@Glavin001
@andrewserff #524 is being worked on piece by piece. Mostly by Pull Requests by users like yourself contributing. chainmethod option has been merged and released. See Glavin001/atom-beautify#594
Valentin Robert
@Ptival
hello, I've been unable to use atom-beautify on Atom 1.4.0, the command palette does not show the command, is this known?
Alexander Ivanov
@oshliaer
@Ptival
beau ... returns Atom Beautify : Beautify Editor Is it?
Valentin Robert
@Ptival
@oshliaer huh, now it's back, maybe I did something wrong earlier :\
Alexander Ivanov
@oshliaer
@Ptival I'm newbie then can't say something more than "Test again this, bro" =)
PierreCBSI
@PierreCBSI
I'm running into errors trying to add atom-beautify, not sure why but it seems there is a package missing in npm (expand-home-build)
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/expand-home-dir
npm ERR! 404
npm ERR! 404 'expand-home-dir' is not in the npm registry.
Luke Hsiao
@lukehsiao
blob
I had atom-beautify installed and now all I see is this:
I also do not see atom-beautify on the command pallete @Ptival. What did you do to fix it?
Valentin Robert
@Ptival
@lukehsiao I don't remember but it probably involved an uninstall/restart atom/reinstall
Glavin Wiechert
@Glavin001
Make sure to reload Atom after updates
I find it messes up sometimes
Glavin Wiechert
@Glavin001
Everyone please update to v0.29.0 and let me know what you think! Thanks!
muei
@muei
How to rest the default config
muei
@muei
Glavin001/atom-beautify#887
Ankit Patil
@anankitpatil
Just built atom from source and installed atom-beautifier - says Cannot read property 'getView' of undefined - osx help?
Valentin Robert
@Ptival
I opened issue Glavin001/atom-beautify#978 I cannot use atom-beautify at all, it even reacts weirdly wrt atom (it doesn't show up in installed packages, it never finishes to uninstall...)
Mbutuh Escarter Brieno
@Escarter
@Ptival
Minh Tran
@minhtc
hello
PierreCBSI
@PierreCBSI
hey!
Alex
@atodicebear
hey,
ive set the .apmrc file with the right proxy things and ssl strict but it still thrwos error and cant install it, solution?
LatinAutumnus
@LatinAutumnus
hello
Allen Houng
@ayhoung
hi all!
does anyone know how i can prevent object wrapping?
and ternary wrapping
{color: 'red’}
atom-beautify always turns it into:
{
       color: 'red’
}
this is for JSX
J.C. Martin
@juliomatcom
how can i run beatify on command ? not oppen settings, beatify the current tab on command :)
Michael Alexander
@beefsack
Hi all, I'm currently making a new beautifier, have created the class and added the name to beautifierNames and can confirm it's being required through logging in the beautifier, but it's not showing up in the "Default beautifier" dropdown. Anyone have any ideas?
Glavin Wiechert
@Glavin001
Try running "npm run postinstall" to update src/options.json file
Glavin Wiechert
@Glavin001
Also reload Atom afterwards
Important: I am not on Gitter often and if someone does not answer your question feel free to create a question Issue on GitHub :)
Sabato Luca Guadagno
@noidhoon
Hi all, I got an Uncaught TypeError: Cannot read property 'setScrollTop' of null if I use Beautify on save in a split tab.
Glavin Wiechert
@Glavin001
Are you on latest?
This has been fixed and published. Issue on github was closed.
I thought
Sabato Luca Guadagno
@noidhoon
I'm on version 0.29.13
Glavin Wiechert
@Glavin001
Huh I'll look into it
There is an issue on github. I recommend subscribing to it there
That is where I discuss and post updates
Sabato Luca Guadagno
@noidhoon
If I set End with newline = true it's work