angular-ui / angularjs-brackets Goto Github PK
View Code? Open in Web Editor NEWAngularJS plugin for Brackets (booya)
AngularJS plugin for Brackets (booya)
All the APIs in CollectionUtils have been deprecated in favor of lodash, and the CollectionUtils module will be entirely removed in a near-future sprint -- which will cause this extension to stop loading altogether.
For examples of what to replace the old CollectionUtils calls with, the the CollectionUtils source itself.
@subhaze hey man, I don't know if you've had a chance to checkout Adobe Brackets yet, but I'm trying to get quick-edit support for things like Directives, etc. It turns out that it also uses tern internally so I think your other plugin may come in handy here too.
Brackets is not responding after i try to quick edit any of angular directives.
I'm using:
Brackets
sprint 1 build 1.1.0-15558 (release ea908cae5)
build timestamp: Wed Dec 17 2014 12:50:55 GMT-0800
Is there a way to live edit angular views?
If I'm in the top level file and live edit, the view file is not live-editable.
I can inline the file contents, in which case I can do what I want.
Is there a better work-around?
This extension uses several APIs which have been removed. In the next release of Brackets, the extension will crash.
The APIs are:
FileUtils.getFilenameExtension()
FileEntry.getMetadata()
In addition to several APIs that have been deprecated and will be removed by the end of this year:
NativeFileSystem.FileEntry
FileIndexManager
It should be fairly straightforward to switch to the new APIs based on the API migration guide. You can release this update in advance if you want, since users of Brackets Sprint 33 (the current release) will still be able to install the older version of your extension that is compatible with their build.
See this discussion thread for more background on the API changes.
Original description for posterity:
Starting in Brackets Sprint 32, FileUtils.getFilenameExtension()
is deprecated. It still works, but prints warnings to the console -- and may be removed in the future.
It is currently used here in NGUtils: https://github.com/angular-ui/AngularJS-brackets/blob/master/NGUtils.js#L364.
You could do a straightforward migration to the new FileUtils.getFileExtension()
API. Or if you want to preserve compatibility with older Brackets / Edge Code releases you could use something like the approach here: peterflynn/svg-preview@b40b39b.
Right now it's hardcoded to search .js and .htm(l) files. However if you want to traverse other file extensions it would be nice to specify in preferences.
Given <div schedule="scheduledEvents"></div>
, when the cursor is on "schedule", pressing C-E opens the schedule directive.
However, given <div data-schedule="scheduledEvents"></div>
, C-E does nothing.
This project is not listed under IDE's http://angular-ui.github.io/
when i open in line editer with ng-controller,it only shows me the css edit.do i need to do some settings?
When you use a directive that is restricted to an element Quick Edit seems to prefer the CSS definition instead of the directive (and won't find the directive). It does work if your directive is restricted to an attribute though.
Ubuntu 12.04 32-bit
Brackets sprint 31 experimental build 0.31.0-9569
Angular 1.1.5
Every time I try selecting quick edit on a controller, it freezes Brackets (kill
is required to close it).
I noticed Brackets changed FileUtils.getFilenameExtension to getFileExtension, which you use in findMatches function, so I forked it and installed the forked extension in Brackets, but it behaves the same way, so obviously that wasn't the cause for this freeze.
BTW Thank you for this extension. Excellent work ๐ (assuming this is a glitch caused by some Brackets upgrade :)
Instead of parsing the entire file tree every single time an expansion is performed, it might be better to just index all directives and controllers (since there probably won't be that many) and simply use the cache for lookup.
Right click > Quick Edit on any Angular attribute, and I get nothing, just -- Place cursor on class, tag, or id, message.
I understand that no one is working on this project anymore. With no Angular support, Brackets really looses a lot of value for front end developers. I guess it's time to look to Atom or WebStorm that have Angular support I guess.
Now it works only with ng-* directive.
Right now a fairly brittle pattern is being used to recognize directives and controllers. This regex and related code should be expanded to be more versatile. Such as when passing a reference to a function instead of just an anonymous function.
I'ts awfull!! The only missing here is support for element editing...
I'm not sure if it's possible as brackets itself interprets that when an element is quick edited you want to edit the class of the element, and this is also fine, could it be added in the right panel?
XDK intel work and urge the plugin from the plugin option ide , can not get worse it work is needed on the angularjs this code in the same file or reference
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.