Kevin Sawicki
8668dd67ac
Add README to package section
2013-05-22 15:29:34 -07:00
Kevin Sawicki
e7df1f1f3d
Use a dropdown button for package actions
2013-05-22 15:29:34 -07:00
Kevin Sawicki
6b81eebb02
Add initial available packages view
2013-05-22 15:29:34 -07:00
Kevin Sawicki
d3cbd937fb
Clip buffer position in screenPositionForBufferPosition()
...
Closes #562
2013-05-22 15:25:27 -07:00
Garen Torikian
f49ec5fac8
Explicitly require nak's bin executable
2013-05-22 10:05:50 -07:00
Garen Torikian
ab466b60c8
command in project.scan needs to resolve to the bin, not the lib file
...
This is because nak was changed to also be run as a regular Node script, not just an executable
2013-05-22 09:29:37 -07:00
Kevin Sawicki
42e1595bd7
💄
2013-05-21 18:49:27 -07:00
Kevin Sawicki
e7c08d1202
Exclude core.ignoredNames when scanning project
2013-05-21 18:46:03 -07:00
Kevin Sawicki
84753e55a7
Add enable/disable helpers to jquery extensions
2013-05-16 17:29:48 -07:00
Kevin Sawicki
392ffce8c7
Remove unused requires
2013-05-16 15:54:10 -07:00
Kevin Sawicki
d7a238b5ec
Guard against possibly null event handler
2013-05-16 15:49:53 -07:00
Kevin Sawicki & Nathan Sobo
a29015551c
Extract link click callback to method
2013-05-16 15:04:30 -07:00
Kevin Sawicki & Nathan Sobo
001183245e
Add core:focus-next/focus-previous
...
Focus now cycles between elements with a positive tabindex on
tab and shift-tab.
2013-05-16 15:00:55 -07:00
Kevin Sawicki & Nathan Sobo
76e7161608
Extract window event handling into separate class
2013-05-16 14:18:57 -07:00
Kevin Sawicki & Nathan Sobo
3b0748fe44
Add config.pushAtKeyPath/removeAtKeyPath
2013-05-16 10:51:23 -07:00
Kevin Sawicki & Nathan Sobo
2b49a04227
Return a cloned object from config.get()
...
This prevents mutations to the values of the default settings.
2013-05-16 10:29:08 -07:00
Kevin Sawicki
61675c2e77
Install apm command when Atom starts
...
This changes the command installation to use symlinks instead
of copying over the contents of the file.
2013-05-15 10:29:27 -07:00
Nathan Sobo
aefb84cdeb
Don't modify uri's with a scheme prefix in Project.resolve
2013-05-14 20:55:14 -06:00
Nathan Sobo
5aac826ec1
Register a custom opener for ImageEditSessions on the Project class
2013-05-14 20:32:16 -06:00
Nathan Sobo
aa86362a0a
Add Project@registerOpener(fn) to register custom openers on project
...
Now packages can register custom handlers for different kinds of file
paths. If the function you register returns a resource for the given
path, it will be returned from Project.open instead of an EditSession.
2013-05-14 20:23:25 -06:00
Nathan Sobo
6104927cb6
Rename Project.buildEditSession -> Project.open
2013-05-14 20:03:53 -06:00
Kevin Sawicki
7b2539c4f4
Correct typo in console warning message
2013-05-14 12:30:48 -07:00
Kevin Sawicki
2f54cb4c22
Use season module internally
2013-05-14 11:58:34 -07:00
probablycorey
423b133e75
Comments can't increase the indent level of the next line
2013-05-13 14:28:16 -07:00
probablycorey
eb25d2e6a8
TokenizedBuffer.tokenForPosition(position) now works correctly
...
It was previously returning the wrong token at token boundaries.
2013-05-13 14:28:16 -07:00
probablycorey
49aeef99b6
Add config option editor.normalizeIndentOnPaste
2013-05-13 14:28:16 -07:00
probablycorey
34d3091fc9
Remove console.log
2013-05-13 14:28:16 -07:00
probablycorey
992f520698
Normalize pasted text when there is an indent basis
2013-05-13 14:28:16 -07:00
probablycorey
93b1ce53c0
Rename autoDecreaseIndentForRow to autoDecreaseIndentForBufferRow
2013-05-13 14:28:15 -07:00
probablycorey
e70d6d1f8f
Remove unused method autoIncreaseIndentForBufferRow
2013-05-13 14:28:15 -07:00
probablycorey
c34db290e4
Only indent the line following a '\n' not the line preceding it
2013-05-13 14:28:15 -07:00
probablycorey
1f025817f1
Rename autoIndentNewlines to autoIndentNewline
2013-05-13 14:28:15 -07:00
probablycorey
c03d44da00
Add autoIndentNewline and autoDecreaseIndent options to insertText
...
insertText now takes these options:
* autoIndent will auto indent all inserted text based
* autoIndentNewline will indent a line when a '\n' is inserted
* autoDecreaseIndent will decrease the indent if the line matches a
decreaseIndent pattern (such as a `}` in javavascript)
2013-05-13 14:28:15 -07:00
probablycorey
537c507efe
Use suggested indent when auto indenting a buffer row
2013-05-13 14:28:15 -07:00
probablycorey
0fbd08f1ab
Allow suggested indent level to be less than the current indent level
2013-05-13 14:28:15 -07:00
probablycorey
0f469a3269
Add Range.getRows
2013-05-13 14:28:15 -07:00
probablycorey
7f0b2c54f3
editor.autoIndentOnPaste will auto indent every pasted line
...
I've removed normalizeLines and its tests. They will be added back in
a later commit.
2013-05-13 14:28:14 -07:00
probablycorey
e9fd61a1ea
Remove unused indent methods from Selection
2013-05-13 14:28:14 -07:00
probablycorey
33c95d1a58
Rename insideExistingLine to isCursorInsideExistingLine
2013-05-13 14:28:14 -07:00
probablycorey
c5aa670569
Document methods as internal
2013-05-13 14:28:14 -07:00
Nathan Sobo
49cf92c2a2
Fix perf regression: Don't update line numbers for single line changes
2013-05-10 19:39:33 -06:00
Nathan Sobo
b4dec8ccbb
In Editor.updateRenderedLines, cap renderFrom to the last screen row
...
If we remove a large number of screen lines when we are scrolled down,
the current @firstRenderedScreenRow may end up being larger than the
number of screen rows we now have. Setting renderFrom to the
@firstRenderedScreenRow in this case was causing the renderFrom to be
larger than the renderTo, which was causing problems downstream with
the new mapping code.
2013-05-10 13:20:43 -06:00
Nathan Sobo
7d28edc116
Rename ScreenLine -> TokenizedLine
...
Now that ScreenLines don't contain the bufferRows property, which was
essential to the functioning of the LineMap, they're just containers
for tokens. Since they're stored in the TokenizedBuffer in a form that
doesn't necessarily match what ends up on screen, it makes more sense
to call them tokenized lines. A tokenized line is a screen line if it's
in the `.screenLines` array of the DisplayBuffer, but "screenness" is
not an inherent property, so it shouldn't be in the name of the class.
2013-05-10 13:20:43 -06:00
Nathan Sobo
4d314f99ac
Eliminate ScreenLine.bufferRows property
...
Previously, we used bufferRows to determine how many buffer rows were
spanned by the screen line in the event it was folded. Now that we have
RowMap, screen lines don't need to serve this purpose. We still need
to know if a screen line is wrapped, which we solve via setting the
lineEnd property to null for a soft-wrapped screen line.
2013-05-10 13:20:43 -06:00
Nathan Sobo
1d146640e5
Break some methods out of DisplayBuffer.updateScreenLines
2013-05-10 13:20:43 -06:00
Nathan Sobo
b4c95d4fc9
Merge adjacent isomorphic regions after adding new regions
2013-05-10 13:20:42 -06:00
Nathan Sobo
d9c258f27e
Handle new regions overlapping screen wise but not buffer wise
2013-05-10 13:20:42 -06:00
Nathan Sobo
8b149ff827
Delete LineMap
2013-05-10 13:20:42 -06:00
Nathan Sobo
f3145e671a
Declare screenLines ivar in DisplayBuffer
2013-05-10 13:20:42 -06:00
Nathan Sobo
d3cb001d65
Use RowMap instead of LineMap in DisplayBuffer
2013-05-10 13:20:42 -06:00