Kevin Sawicki
de86aefcf7
Remove duplicate nulling out of view
2013-02-13 12:51:30 -08:00
Kevin Sawicki
b09ee88603
Merge pull request #264 from defunkt/sort-buffers-by-most-recently-opened
...
Sort buffers by most recently opened
2013-02-13 12:51:01 -08:00
Justin Palmer
b5cccc0060
add a header view to the command panel preview list
2013-02-13 12:38:06 -08:00
Kevin Sawicki
c546c6641f
Use activationEvents for package-generator
2013-02-13 12:33:20 -08:00
Kevin Sawicki
227871e66f
Use relative require path
2013-02-13 12:31:20 -08:00
Kevin Sawicki
4ed2843fc2
Correct typo in keymap filename
2013-02-13 12:29:20 -08:00
Justin Palmer
539c000bcd
add expand/collapse indicators
2013-02-13 11:19:08 -08:00
Justin Palmer
cc3982a08f
basic expand/collapse working
2013-02-13 10:58:53 -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
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
Justin Palmer
112e389306
wrap matches in their own list
2013-02-13 10:38:00 -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
Justin Palmer
d95ffe8021
toggleLoading for command panel
2013-02-12 23:55:54 -08:00
Chris Wanstrath
d1d5dc051f
better name
2013-02-12 22:33:18 -08:00
Chris Wanstrath
2dc6dfc39f
Serialize buffer last opened times in fuzzy-finder
2013-02-12 22:32:05 -08:00
Chris Wanstrath
8714983411
getEditSessions instead of registering a callback
2013-02-12 21:25:43 -08:00
Chris Wanstrath
065019af38
Better getPath()
2013-02-12 21:24:04 -08: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
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
Chris Wanstrath
bb0a19fba3
Sort buffers by most recently opened
2013-02-12 20:46:48 -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
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
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
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
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
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