Commit Graph

4602 Commits

Author SHA1 Message Date
Kevin Sawicki
d5723aa18d Port scope selector matchers to CoffeeScript 2013-04-19 10:58:35 -07:00
Kevin Sawicki & Nathan Sobo
1dffb9237a Use the earliest result when both injection and non-injection patterns match 2013-04-19 10:58:34 -07:00
Kevin Sawicki & Nathan Sobo
0a92f68aac Remove unused variable 2013-04-19 10:58:34 -07:00
Kevin Sawicki
40939ab984 Remove unused injected variable 2013-04-19 10:58:34 -07:00
Kevin Sawicki
da898a5344 Cache scanners used in injections 2013-04-19 10:58:34 -07:00
Kevin Sawicki
88ebad2b7a Add Injections helper class 2013-04-19 10:58:34 -07:00
Kevin Sawicki
c9edc3b2d6 Add createScanner() helper to Rule 2013-04-19 10:58:34 -07:00
Kevin Sawicki
1407f6c1f0 Add getRegex() helper to Pattern 2013-04-19 10:58:34 -07:00
Kevin Sawicki
3542e879bc Set injected to false by default 2013-04-19 10:58:34 -07:00
Kevin Sawicki
c2eca1ff99 Add initial support for injection grammars
Build scope selectors and patterns when setting up the grammar
for all entries under the grammar's injection object.

Include the injection patterns in the scanner when the injection's
scope selector matches the current rule stack.
2013-04-19 10:58:34 -07:00
Kevin Sawicki
2568aa086e 💄 2013-04-19 10:58:34 -07:00
Kevin Sawicki
7cb8850ed2 Expect single scope as parameter to scope matcher 2013-04-19 10:58:34 -07:00
Kevin Sawicki
beeaa01d22 Support space-separated scopes in selector parser 2013-04-19 10:58:33 -07:00
Kevin Sawicki
3e5448b698 Add initial TextMate scope selector parser 2013-04-19 10:58:33 -07:00
Kevin Sawicki
76484acb21 Call atom.show() from a setTimeout()
The window was previously flashing white if atom.show() was called
directly after window.startup()

Wrapping the call in a setTimeout with a zero delay seems to prevent
the white flash and the perceived amount of time to display the contents
appears to be the same.
2013-04-19 10:15:50 -07:00
Kevin Sawicki
36768251f8 Default ranges to empty array when no edit session
Previously an exception would be thrown if a '/' pattern was evaluated
when there was no active edit session.
2013-04-19 10:05:48 -07:00
Kevin Sawicki
a149357bd5 💄 2013-04-18 20:21:34 -07:00
Kevin Sawicki
848761710e 💄 2013-04-18 20:16:49 -07:00
Garen Torikian
53f03d1b30 Missed a spot 2013-04-18 20:10:30 -07:00
Garen Torikian
5ee388cede Get it to a proper 80% 2013-04-18 18:50:22 -07:00
Garen Torikian
14a0010517 Keep updating Internal hiding 2013-04-18 14:58:19 -07:00
Garen Torikian
e478d9b7a0 Add more corrections off of the #Internal syntax 2013-04-18 13:38:26 -07:00
Garen Torikian
a50cfa26cc Updates for new biscotto 2013-04-18 13:05:40 -07:00
Garen Torikian
130baf2235 Merge branch 'master' into api/docs 2013-04-17 16:08:18 -07:00
Kevin Sawicki
379bf54c40 Don't set widthChanged handler on gutter
The gutter now uses flex box so the width is no longer explicitly
set based on the number of lines.
2013-04-17 09:01:27 -07:00
Kevin Sawicki
1aa0e52cea 💄 2013-04-16 17:52:00 -07:00
Kevin Sawicki
8c138ebd04 Remove unused ivar 2013-04-16 17:47:30 -07:00
Nathan Sobo
bbbdacab74 Avoid the .label class because it conflicts with bootstrap 2013-04-16 17:24:21 -06:00
Kevin Sawicki
aa27b3d464 Set min-height on tree to 100% 2013-04-16 15:30:33 -07:00
Kevin Sawicki & Nathan Sobo
807c6878c1 Set width of hidden input to 1 pixel
Previously the width was set to the width of a single character which
caused issues if the char width was currently zero and since the hidden
input no longer has padding or border the width of the input would end
up being zero which would prevent it from gaining focus.
2013-04-16 15:20:16 -07:00
Nathan Sobo
45ede6bc79 💄 rename treeViewList outlet to list 2013-04-16 15:26:31 -06:00
Corey Johnson
3c95fbd72c Remove redundant conditional 2013-04-16 14:23:42 -07:00
Corey Johnson & Nathan Sobo
ca49d0714c Restore previous selections after tailing newlines are added
Closes #496
2013-04-16 14:23:42 -07:00
Corey Johnson & Nathan Sobo
f21571eab1 Rename isFirstPoint to isHead in marker.updatePosition 2013-04-16 14:23:42 -07:00
Kevin Sawicki
bc99e72b3d Verify the buttons individually in the spec
The outer expand-collapse element is no longer in the view.
2013-04-16 13:56:27 -07:00
Kevin Sawicki & Nathan Sobo
fe5d73c02a Use bootstrap buttons in command panel
Thanks @mdo!
2013-04-16 12:28:35 -07:00
Kevin Sawicki & Nathan Sobo
a1cab1a692 Log instead of re-throwing less parser errors 2013-04-16 12:10:07 -07:00
Nathan Sobo
afa58160b3 Oops. Fix tree-view auto-scrolling and specs after breaking them. 2013-04-16 11:59:25 -06:00
Nathan Sobo
917ab3fe7b Ensure tree view highlights extend full-width, even when scrolled
The .tree-view-wrapper element is renamed to `.tree-view-resizer` to
clarify its purpose, and the actual draggable div is renamed to
`.tree-view-resize-handle`. Then a new div is introduced beneath the
resized wrapper called `tree-view-scroller`. This element has 100%
width/height and overflow scroll, allowing the actual tree view list
to *not* scroll. It uses the cutting edge `min-content` property as
its min width, which ensures it's always wide enough to contain its 
content even when the scroller wrapper is narrower. This allows the
absolutely-positioned highlights to always extend *at least* across
the full width of the list elements.
2013-04-16 11:20:56 -06:00
Kevin Sawicki
58bf33fc6f Remove margins on nested matches list 2013-04-16 10:08:15 -07:00
Nathan Sobo
6107734460 Fix command panel preview list header styling 2013-04-16 10:57:50 -06:00
Kevin Sawicki
a2035bc305 Move error-messages class under command-panel class 2013-04-16 09:33:45 -07:00
Kevin Sawicki
27252961cf Remove list style type on matches class 2013-04-16 09:29:31 -07:00
Kevin Sawicki
0102c0fd8d Bind click events using new button outlets 2013-04-16 09:26:24 -07:00
Kevin Sawicki
f190dab5e6 Remove classes from buttons
The collapse class was causing the button to be very small since it
is defined in bootstrap with height 0.
2013-04-16 09:22:18 -07:00
Kevin Sawicki
e037bf1db9 Remove list type and margin from error messages 2013-04-16 09:18:43 -07:00
Nathan Sobo
140d5d5a85 💄 Use outlet 2013-04-15 20:45:56 -06:00
Nathan Sobo
8c648e9226 Fix tree-view specs 2013-04-15 20:45:56 -06:00
Nathan Sobo
cd9f6d4c62 Remove tree-view margin bottom 2013-04-15 20:45:56 -06:00
Nathan Sobo
305a1b91b8 Set box-sizing to content-box for autocomplete 2013-04-15 20:45:56 -06:00