Kevin Sawicki
ff1ab93652
💄 Add space before and
2013-10-08 09:30:05 -07:00
Kevin Sawicki
43d5c3f66d
📝 Remove extra newline
2013-10-08 09:27:23 -07:00
Garen Torikian
250af9191a
Trigger statuses-changed for branches, too
...
There don't seem to be any tests for this
2013-10-08 09:26:23 -07:00
Garen Torikian
7365be7d88
Add new helper functions from git-utils@0.26.0
2013-10-08 09:25:55 -07:00
Kevin Sawicki
37ec1abc25
Add Git::isProjectAtRoot helper
2013-10-07 19:43:12 -07:00
Kevin Sawicki
41cfa2892b
Guard against false result
2013-10-07 18:22:24 -07:00
Ben Ogle
caae18c552
Partially render the gutter when possible.
2013-10-07 18:14:27 -07:00
Kevin Sawicki
8e60db65a3
🐎 Use fs.statSyncNoException() in AtomWindow
2013-10-07 17:55:41 -07:00
Kevin Sawicki
8caed2081b
Don't reuse window when opening a subfolder
...
Windows will only be reused when they match the initial path or
are paths to a new or existing file.
Closes #934
2013-10-07 17:23:56 -07:00
Kevin Sawicki
1ed6733ab5
Only parse line number when path to open is set
...
Previously if atom was launched with no path to open then '/'
was being opened as the project and a file named 'undefined' was
initially open. This was because path.basename() returns the string
'undefined' when called with an undefined path.
This restores the previous behavior of launching a new untitled editor
with no project.
Closes #936
2013-10-07 17:09:52 -07:00
probablycorey
9a61c545f4
Update comments in project
2013-10-07 16:12:44 -07:00
Kevin Sawicki
2029895f0b
Pass urlToOpen to AtomWindow constructor
2013-10-07 16:12:00 -07:00
Kevin Sawicki
7f0150c6b8
💄 Inline parsed url
2013-10-07 16:12:00 -07:00
Kevin Sawicki
124b1ebd33
💄 Reorganize option param
2013-10-07 16:12:00 -07:00
Kevin Sawicki
d3e2d9b5f9
📝 Update AtomApplication.openUrl() comment
2013-10-07 16:12:00 -07:00
Kevin Sawicki
f8e61f5c48
Add missing @ before configDirPath
2013-10-07 16:12:00 -07:00
Kevin Sawicki
e95e8a22c3
💄 Remove extra newline
2013-10-07 16:12:00 -07:00
Kevin Sawicki
0033c9659f
💉 directory dependencies into Config
2013-10-07 16:12:00 -07:00
Kevin Sawicki
9db3f9b5d9
Remove logging of found package
2013-10-07 16:12:00 -07:00
Kevin Sawicki
55b71405c9
Remove uneeded curlies and parens
2013-10-07 16:11:59 -07:00
Kevin Sawicki
ad577d6315
Add url to open to load settings
2013-10-07 16:11:59 -07:00
Kevin Sawicki
19a8626c21
Add extension point for opening urls
...
If packages specify a urlMain in their package.json then that file
will be used as the bootstrap script new windows when a URL is opened
to that package.
2013-10-07 16:11:59 -07:00
Kevin Sawicki
87bfcf5683
💉 dependencies into AtomPackage
...
Removes use of resourcePath and config globals
2013-10-07 16:11:59 -07:00
Kevin Sawicki
722be2267d
Add getter for config directory path
2013-10-07 16:11:59 -07:00
Kevin Sawicki
a3559d1289
Call methods through this instead of atom global
2013-10-07 16:11:59 -07:00
probablycorey
b4fb526d75
Simplify early return statement
2013-10-07 16:10:38 -07:00
probablycorey
122b209ad7
💄
2013-10-07 16:07:13 -07:00
probablycorey
34d7913505
Log RootView::openAsync read progress
2013-10-07 15:22:16 -07:00
Ben Ogle
9c6353977f
Rework the api using native methods. This is 🐎
...
editor.300-line-file.gutter-api.getLineNumberElementsForClass.DOM: 3 / 20000 = 0.00015ms
editor.300-line-file.gutter-api.getLineNumberElement.DOM: 8 / 20000 = 0.0004ms
editor.300-line-file.gutter-api.toggle-class: 17 / 2000 = 0.0085ms
editor.300-line-file.gutter-api.find-then-unset.single-class: 3 / 200 = 0.015ms
editor.300-line-file.gutter-api.find-then-unset.multiple-class: 9 / 200 = 0.045ms
2013-10-07 14:57:45 -07:00
Ben Ogle
1ff97fc21a
Add getLineNumbersForClass()
...
Also clean up and use klass
2013-10-07 13:57:00 -07:00
probablycorey
f5c9dc7362
Added progress stats to reading files
2013-10-07 13:47:20 -07:00
Ben Ogle
32329070c2
Add a simple gutter api for adding/removing classes
2013-10-07 13:31:31 -07:00
probablycorey
13232de4b9
Chain promises better
2013-10-07 11:46:03 -07:00
probablycorey
f9250e3dd1
Add File::readAsync
2013-10-07 11:39:41 -07:00
Ben Ogle
3aae7bb77e
💄
2013-10-07 10:29:02 -07:00
Ben Ogle
8825be937e
TextNodeFielter -> TextNodeFilter
2013-10-07 10:29:02 -07:00
Ben Ogle
b3324b49b0
Skinny arrows 💄
2013-10-07 10:29:02 -07:00
Ben Ogle
89b0e4d159
Fix issue when there are no client rects
2013-10-07 10:29:01 -07:00
Ben Ogle
4df546a19e
Remove shoulds
2013-10-07 10:28:13 -07:00
Ben Ogle
04cdad680b
Remove ability to pass clearDirtyRanges and fillDirtyRanges extra vars
...
We don't need them anymore in the gutter.
2013-10-07 10:28:12 -07:00
Ben Ogle
4f1bdee2d7
shift() multiple little arrays. Avoid.
2013-10-07 10:28:12 -07:00
Ben Ogle
5942f2997f
Remove array joins in buildEmptyLineHtml
2013-10-07 10:28:12 -07:00
Ben Ogle
26a3a77fed
Rename ALL_CAPS vars to CapCamelCase
2013-10-07 10:28:12 -07:00
Ben Ogle
bd8c14355c
Move regexes out into variables
2013-10-07 10:28:12 -07:00
Ben Ogle
1a6884ff71
Remove the ALL_CAPS vars replace with CapCamelCase
2013-10-07 10:28:11 -07:00
Ben Ogle
156b6a9490
Make wrapCharacters -> escapeString. Use a regex.
...
The `htmlForScreenRows` benchmark went from ~3.5 ms to ~2.9ms for a
call to htmlForScreenRows over the entire screen range.
🐎
2013-10-07 10:28:11 -07:00
Ben Ogle
5516dadffe
Remove selective gutter rendering.
...
It is faster but incorrect in the case of newlines. It will have to be
rethought. It can be a different unit of work
2013-10-07 10:28:11 -07:00
Ben Ogle
f1cf8496f8
Fix test, use bufferRowsFOrScreenRowsProperly
2013-10-07 10:28:11 -07:00
Ben Ogle
d0be7fbf8e
Add a character width cache based on scopes.
...
This is slower than the position cache in the best case, but faster
in the worst and average case. With this, you can search for a space
in find and replace, and still scroll the buffer.
In editor.coffee, there are 10,500 spaces. To highlight all of them,
the previous cache method took 7 seconds, this takes 2 when the cache
is empty, and about 10ms when the entire file is cached.
2013-10-07 10:28:11 -07:00
Ben Ogle
8463c759b5
Use global range. Faster! Less garbage!
2013-10-07 10:28:11 -07:00