Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
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?
U
Federico Zivolo
@FezVrasta
hey guys, is it better Slack or Gitter?
Adri Van Houdt
@AdriVanHoudt
depends on what you want to do
sotoer
@sotoer
hey guys… I just cloned the brackets repo to try to get things running locally and ran into some issues. I ran npm install; grunt build; and pointed a MAMP virtual server to the generated dist folder. Came close but getting this error in console: /utils/NodeConnection.js:88 Uncaught TypeError: undefined is not a function. Is there another way that I should be trying to run this locally?
Martin Zagora
@zaggino
you need to build a brackets-shell (has its own repo) to run brackets, you can't run it using mamp and browser as far as I know
sotoer
@sotoer
ah that makes sense. Thanks.
Ole Kröger
@Wikunia
Has someone problems using the registry site at the moment? I want to register a new extension which isn't directly part of my personal GitHub account, instead it's a teamwork (organization work).
Pravin
@codefullon
hi all, curious is there a way by which i can set a particular port for live preview?
my app is using localstorage and i'm not able to make perfect sense of it because with ever restart, the port changes
notice this push but slightly confused as to how to use it though: adobe/brackets#6815
Pravin
@codefullon
would be fantastic to get an answer :-)
May Kittens Devour Your Soul
@diomed
is there any good extension for xslt in brackets?
DimitrK
@DimitrK
I have an issue with brackets . Somehow (by accidental press of a shortcut I assume), the left brackets sidebar is hidden automatically when I focus on the editor and appears only when I click on the very left of the screen, where the sidebar used to be present. I do not know how to revert this behavior and I understand that some people consider it a feature but for me is annoying and unproductive. Any ideas how to make the sidebar always visible? Thanks
By sidebar I mean the project explorer and the working files
Ok I just found the solution. Sidebar plus extension enables such behavior and can be triggered by pressing Ctrl+Alt+H
May Kittens Devour Your Soul
@diomed
in these days we could say - there's an extension for that :smiley:
DimitrK
@DimitrK
yeah right:) Brackets is mainly the host for many extensions to create your own IDE experience
May Kittens Devour Your Soul
@diomed
true that. btw. any issue is for github repo, this is merely a chat room.