Kevin Sawicki
4ed2843fc2
Correct typo in keymap filename
2013-02-13 12:29:20 -08:00
Corey Johnson
fc29a0d347
Remove unneeded param defaults from activate methods
2013-02-13 10:51:19 -08:00
Corey Johnson
7ade089d04
If an atom package has no state, activate it with an empty object
2013-02-13 10:42:22 -08:00
Corey Johnson
156df69227
Add content to template package
2013-02-13 10:42:22 -08:00
Corey Johnson
52d4723711
Add underscore, camelize and dasherize to underscore
2013-02-13 10:42:22 -08:00
Corey Johnson
7ff0450379
Don't recurse into packageDirPaths to look for packagePaths
2013-02-13 10:42:22 -08:00
Corey Johnson
e1219b9fcf
Create package-generator package
2013-02-13 10:42:22 -08:00
Corey Johnson
d049f47844
expose config.userPackagesDirPath
2013-02-13 10:42:22 -08:00
Corey Johnson
44476d4164
Handle deserilization in TreeView's initialize method
2013-02-13 10:42:11 -08:00
Nathan Sobo
461051f756
Simplify select list keymap selector
...
I used it as an example in the docs, so I wanted it to be simple. I
tried this version and it still worked.
2013-02-13 11:34:45 -07:00
Nathan Sobo
167ff9aa79
Add keymaps documentation.
2013-02-13 11:34:45 -07:00
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