Commit Graph

5732 Commits

Author SHA1 Message Date
Jon Rohan
bf62368d59 Merge pull request #270 from github/markdown-movearound
Moving markdown styles to syntax styles.
2013-02-13 09:06:58 -08:00
Jon Rohan
e5854da765 Moving markdown styles to syntax styles. 2013-02-13 08:52:26 -08:00
Nathan Sobo
62307a6b36 Fix link rendering in markdown (don't break [...] across lines) 2013-02-12 22:26:21 -07:00
Nathan Sobo
c7f34bed9e Update docs manifest 2013-02-12 22:13:59 -07:00
Nathan Sobo
8bf71238c1 Cleanup themes documentation 2013-02-12 22:12:08 -07:00
Nathan Sobo
83794c67c2 Break config and themes documentation into two separate files 2013-02-12 22:12:08 -07:00
Kevin Sawicki
67feebc64b Use skinny arrow for rootView.eachEditor callback 2013-02-12 20:59:20 -08:00
Kevin Sawicki
2268402b48 Use skinny arrow for WrapGuide.initialize() 2013-02-12 20:58:34 -08:00
Kevin Sawicki
e61d3bfb5b Use underlayer property on editor
Removes unneeded call to find
2013-02-12 20:55:53 -08:00
Kevin Sawicki
a2b50c9cf7 Remove unused require 2013-02-12 20:54:35 -08:00
Nathan Sobo
da3c020353 Rework config docs. Add a config key glossary. 2013-02-12 21:51:35 -07:00
Kevin Sawicki
d352b5ecc7 Set left as number without px suffix 2013-02-12 20:50:56 -08:00
Kevin Sawicki
c72c6aebbd Find underlayer in editor instead of pane 2013-02-12 20:47:58 -08:00
Kevin Sawicki
449e4f5ac7 Load user keymaps after packages
This allows user keymaps to override the default
bindings provided by packages.

Refs #261
2013-02-12 20:38:05 -08:00
Kevin Sawicki
8395b47c4e 💄 2013-02-12 19:08:30 -08:00
Kevin Sawicki
7d7af86c90 Add raw scope to entire `` `` block 2013-02-12 18:34:01 -08:00
Kevin Sawicki & Nathan Sobo
b2a9208acf Tab no longer transfers focus
The tab keystroke is now suppressed in keymap
if no bindings are triggered.

Closes #258
2013-02-12 17:29:14 -08:00
Nathan Sobo
e7fb13037a 💄 2013-02-12 17:09:06 -07:00
Nathan Sobo
3ab354d426 Recycle existing lines when calculating pixel positions 2013-02-12 17:09:06 -07:00
Nathan Sobo
65bf13e211 Remove unneeded 'resize' event trigger. It's triggered by the helper. 2013-02-12 17:09:05 -07:00
Nathan Sobo
3625a55f68 Update markers before triggering 'changed' events
This prevents the editor from synchronously redrawing in specs with
cursors in invalid locations. Markers are always updated under the
hood before a change event is emitted from the Buffer or DisplayBuffer.
We still wait to trigger marker observers, but if their position gets
read, it is up to date.
2013-02-12 17:09:05 -07:00
Nathan Sobo
2d2b4ea754 Redraw on reattached only if detached editor was previously attached 2013-02-12 17:09:05 -07:00
Nathan Sobo
498c11a080 Don't translate screen to pixel positions if Editor isn't on the DOM 2013-02-12 17:07:14 -07:00
Nathan Sobo
97988eb62e Clear font style in afterEach so it doesn't cause test pollution 2013-02-12 17:07:14 -07:00
Nathan Sobo
13db9169e9 Don't simulate DOM attachment. Pixel translation needs the real thing. 2013-02-12 17:07:14 -07:00
Nathan Sobo
405a918280 Never redraw when the font size changes on a detached editor
When the font size changes and the editor is detached, it schedules
itself to be redrawn the next time we're reattached rather than
updating the display in a detached state.

Detached display updates worked in the past because we didn't need to
be on the DOM to determine horizontal and vertical positions once we
had calculated dimensions once. So it worked to temporarily attach
the editor when calculating new dimensions, and then continue updates
even when it was detached. That now breaks because we can't ask for
pixel positions if we aren't on the DOM.
2013-02-12 17:07:14 -07:00
Nathan Sobo
81145eb35f Initial support for variable width fonts
When translating a logical screen position (columns/rows) to a pixel
position, the editor now builds a temporary version of the line for the
given row. It then uses the DOM range API to insert an empty range
at the correct text node and offset for the given column and determines
the left position based on its clientRect.

Depending on the speed impact, we may want to optimize this by
recycling the existing line node if it exists on screen rather than
building a new one every time. We will still have to build one if the
line we're moving to isn't on screen yet. We could also increase the
chances of the line being on screen by autoscrolling to the vertical
position first, and *then* calculating the horizontal position. Lots
to explore here.
2013-02-12 17:07:14 -07:00
Kevin Sawicki
8922a27eb3 Subtract skipped count from complete and total counts 2013-02-12 15:52:00 -08:00
Kevin Sawicki
07c5a94613 Remove unused packages ivar 2013-02-12 15:47:31 -08:00
Kevin Sawicki
37ff0d05ed Subscribe to grammars-loaded event in editor
Previously an error would be logged if this event fired
after an editor had been removed.
2013-02-12 15:12:59 -08:00
Kevin Sawicki
2910a90916 Round spec time to 2 decimal points 2013-02-12 14:48:16 -08:00
Justin Palmer
f19e536b25 style code 2013-02-12 14:32:45 -08:00
Justin Palmer
64b187a7e3 style markdown quote 2013-02-12 14:25:29 -08:00
Justin Palmer
12b340f072 🔪 markup 🔫 2013-02-12 14:13:58 -08:00
Kevin Sawicki
963a67dc9e Add 'link' to expected scopes 2013-02-12 14:04:10 -08:00
Kevin Sawicki
f30f175c4e Remove unneeded id 2013-02-12 13:59:57 -08:00
Justin Palmer
658b243a16 Merge pull request #257 from github/gfm-styles
Simple styles for GFM
2013-02-12 13:59:01 -08:00
Kevin Sawicki
54c3cdb4cb Use input element to test focus after cancel 2013-02-12 13:55:28 -08:00
Kevin Sawicki
ae1be0ff2c Remove unneeded rootView variable 2013-02-12 13:34:51 -08:00
Justin Palmer
b5ddbe9043 tweak colors, make link label different shade than link 2013-02-12 13:31:16 -08:00
Kevin Sawicki
5f84ec711b Add class to hard tabs and leading/trailing spaces
This allows whitespace to be still be styled when invisibles
are disabled.
2013-02-12 13:25:22 -08:00
Kevin Sawicki
9af54de0f6 Add type of invisible as second class in span
This allows hard tabs, leading whitespace, and
trailing whitespace to be styled independently.
2013-02-12 13:02:34 -08:00
Kevin Sawicki
ad4398c4c5 Always return focus to the editor after a tab drop 2013-02-12 12:36:22 -08:00
Kevin Sawicki
85f404daf4 Find destination editor in single query 2013-02-12 12:25:53 -08:00
Justin Palmer
609342af16 light markdown 2013-02-12 12:08:48 -08:00
Justin Palmer
be94f14d61 dark markdown 2013-02-12 12:08:38 -08:00
Justin Palmer
5acf544fce remove colors from main stylesheet
They won't work for light and dark styles
2013-02-12 12:08:30 -08:00
Justin Palmer
f7893f4e21 name the link match 2013-02-12 12:01:07 -08:00
Justin Palmer
cc9707bd35 add markdown.css 2013-02-12 12:00:54 -08:00
Kevin Sawicki
1f4aedeb10 Rename isReadme to isReadmePath 2013-02-12 11:47:13 -08:00