Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Kevin Dangoor
@dangoor
yeah, indeed that's true
there are a ton of different client side technologies and server side technologies in use
(good thing Brackets is extensible :)
Anachron
@Anachron
Yes, and I guess thats one of the biggest reasons why its still alive, I guess ;)
Kevin Dangoor
@dangoor
True. Plus, people definitely have varied desires when it comes to their tools
Anachron
@Anachron
I switched from Sublime Text 3 to Brackets, not because I have all of the functionality, but I like the project and it feels good to know what is actually inside your editor. Plus, Brackets got a lot faster and more stable, no more crashes for me and it feels good to work with. I have a handful of extensions, one of which is Git, and it feels a lot better than ST3.
Kevin Dangoor
@dangoor
for some, the ability to do Live Preview with HTML and CSS is killer while they're designing
cool
I was also an ST user pre-Brackets, and I agree about the feel
obviously, that's subjective. vim and emacs still have plenty of fans!
Anachron
@Anachron
Hahaha yeah, that's true. Funny thing, there is even a plugin for atom that turns the editor into vim: https://github.com/atom/vim-mode
Kevin Dangoor
@dangoor
there's Vimderbar for Brackets as well
Anachron
@Anachron
Crazy, I choose editors like Atom/Brackets/ST because of the special design, and people keep porting vim design to their favorite text editor because they are too used to the old one :)
Kevin Dangoor
@dangoor
maybe Neovim will quiet them down and they'll just stick with vim at that point :)
Anachron
@Anachron
Hm hopefully, like the project!
Anachron
@Anachron
Can you guys help me out?
adobe/brackets#8352
Mark Simulacrum
@Mark-Simulacrum
What's the best way to go about getting all the lines the cursor is on (in an extension)? Looked through API docs, didn't really find anything.
Marcel Gerber
@MarcelGerber
Cursors are selections, and therefore you can use Editor.getSelections().
Marcel Gerber
@MarcelGerber
For your very specific request, you could use something like
var cursorLines = EditorManager.getActiveEditor().getSelections()
  .filter(function (sel) { // only leave cursors (0-char selections)
    return _.isEqual(sel.start, sel.end);
  })
  .map(function (cursor) {
    return cursor.start.line;
  });
cursorLines = _.uniq(cursorLines);
Peter Flynn
@peterflynn
@Mark-Simulacrum Fyi, we don't really use Gitter anymore (it was an experiment), so it's better to ask on IRC or brackets-dev in the future. @MarcelGerber's answer looks good though. See also https://github.com/adobe/brackets/wiki/Brackets-CodeMirror-v4-Migration-Guide#performing-edits-on-multiple-selections for some useful docs.
Lim Jia Rong
@holyxiaoxin
hi is this a chatroom?
Chris Matheson
@chrismatheson
@holyxiaoxin seems like it, just found it myself :)
Brian Hinton
@theborderradius
It’s tied into the repo basically.
Joeri Boudewijns
@bojoer
Hi, fast question! Is or isn't Brackets IDE working, even if it needs some core or extensions code modifications, with an ONLY NVM node + npm installation and no System or brew installation. Atom.io is proven not to work completely but you can get it to work, sort off and LightTable didn't also work out-of-the-box with only NVM but with some tweaking it does now! Any suggestions??
Adri Van Houdt
@AdriVanHoudt
is your question 'does brackets work by just installing'?
you do need node installed but other than that it works out of the box
Simeon Vincent
@svincent
I'm also confused by the assertion that "Atom.io is proven not to work completely"
Joeri Boudewijns
@bojoer
No, it's not that. I know it works by just installing and configuring some settings. On my Microsoft PC Win 7 64 bit I installed Node + npm with the installer and I got everything to work. On my MacBook Pro though, there I work with NVM only, I can't seem to get it working
Or it complains about npm like "No Packages found" or "node is not in your PATH" and when I open a console, shell terminal in brackets and echo $PATH strangest thing is that it is included.
All working on Windows, Mac or Linux like Ubuntu or so??
Joeri Boudewijns
@bojoer
It is a known issue with atom and brackets that work with NVM only installs node or npm is not found somehow. And if I get it configured I get the following mesage when executing a node script: !#/usr/bin/env node; unknown
Simeon Vincent
@svincent
I'm currently on OS X using nvm and have both Atom.io and Brackets installed. Both launch without issue. I set them up some time ago so I don't recall how I installed them, but I didn't have any notable problem getting them set up.
I realize that's not super helpful from your point of view, so I'm hoping someone with more recent install experience can chime in :wink2:
Joeri Boudewijns
@bojoer
do you use the Atom.io extension npm-install which should install the missing --save / --save-dev node modules in a loaded project in Atom, same that you have for Brackets. That extension won't work...
Simeon Vincent
@svincent
Nope, I install project dependencies from the command line.
Joeri Boudewijns
@bojoer
me also I am rather an old-school terminal user. Later, gonna put the kids to be now
Simeon Vincent
@svincent
Take care!
Joeri Boudewijns
@bojoer
Same to you
Sorry Markdown test if it would accept it.
Simeon Vincent
@svincent
yep, Gitter does full GH flavored MD ;)
Peter Flynn
@peterflynn
Just fyi, Brackets doesn't require you to install Node at all. If you download an official build (http://brackets.io/), it should work out of the box with no additional stuff required.
But also fyi, this channel isn't regularly monitored. #brackets on IRC (or the brackets-dev newsgroup) is the best place for Q&A
Joeri Boudewijns
@bojoer
Thx for the extra guidelines @peterflynn
John Rizzo
@johnrizzo1
hey guys... I'm new to brackets and the first thing I see after pasting my javascript are a bunch of errors about indentation locations... is there a plugin to automatically format my files? I see indentator and a bunch of beautifiers but not sure which to use
John Rizzo
@johnrizzo1
using the Beautify and Indentator plugins seems to give me what I need for js anyway :)
Randy Edmunds
@redmunds
johnrizzo1: JSLint is installed and enabled by default. You can turn it off using: View > Lint Files on Save
John Rizzo
@johnrizzo1
yeah I was able to get most of what I wanted in terms of the editor. I really like some of the features. Great job guys. I ended up giving up for the day because I couldn't get it to fit into any of my common workflows. I use grunt and wasn't able to get the editor to allow me to debug everything and do live editing with grunt...
if anyone wants to help me get that workflow going I'll be happy to write it up for others to benefit
Lonny Gomes
@LonnyGomes
@svincemt I usually end up using live reload from grunt vs using the live preview built into Brackets. Were you trying to integrate grunt with Brackets built in live preview mode?