Nathan Sobo
5f323cc67c
Add TokenizedBuffer.bufferRangeForScopeAtPosition(selector, position)
...
You can call this method with a selector and a position and get the range
of any matching scope containing the given position, or a falsy value
if the scope does not match at that position.
2013-08-07 12:53:03 -06:00
Jason Rudolph & Nathan Sobo
39d15d6087
Add _.isSubset
2013-08-07 12:37:03 -06:00
Jason Rudolph & Nathan Sobo
6cc4cf87b9
💄 Add intention-revealing helper method
2013-08-07 12:36:05 -06:00
Kevin Sawicki
2698925d10
Reload stylesheets when core.themes config changes
...
Extracted a new ThemeManager class to encapsulate all the theme
work previously done directly in atom global.
Closes #642
2013-08-07 10:51:25 -07:00
Kevin Sawicki
def07344e9
Visually separate core and package specs in reporter
2013-08-07 09:32:29 -07:00
Kevin Sawicki
633306e6bf
Fire edit-session-created event when deserializing
...
This event was previously not being fired when splitting panes
since the constructor pushing the edit session directly to the
project's array.
Closes #684
2013-08-06 19:07:24 -07:00
Kevin Sawicki
7d58008ed3
Show completions for current scope in autocomplete
...
Add the TextMate "completions" preferences available as "editor.completions"
and add all completions matching the current scope of the cursor position
when building the autocomplete word list.
Closes #676
2013-08-06 18:18:22 -07:00
Kevin Sawicki
a98791ebd0
Add filter support to selector grammar
...
Currently these are unimplemented but they can now be parsed
successfully since they are used by certain snippets.
2013-08-06 17:06:22 -07:00
Kevin Sawicki
a72e1813e9
Support stand-alone negation in selector grammar
...
Previously negation was only supported as the right hand side
of an composite.
2013-08-06 16:54:32 -07:00
Kevin Sawicki
fe9ffbeb12
Support selectors with a trailing comma
2013-08-06 15:55:50 -07:00
Kevin Sawicki
e61992c1f6
Allow _ characters in selector segments
2013-08-06 15:21:31 -07:00
Kevin Sawicki
612332cd9f
Allow + characters in selector segments
2013-08-06 15:12:24 -07:00
Kevin Sawicki
faf02460f5
Add TextMateScopeSelector.toCssSelector()
2013-08-06 15:09:10 -07:00
probablycorey
712e9c7203
Add spec to test cutToEndOfLine when soft wrap is enabled
2013-08-06 14:02:30 -07:00
probablycorey
128a030880
Moving to the start or end of a line treats screen lines as real lines
2013-08-06 14:02:30 -07:00
Kevin Sawicki
da7cbeddc7
Support scope selectors with dashes in segments
...
Previously dashes were only interpreted as negation which
wasn't correct.
Segments should be able to contain a dash as long as it isn't at
the very beginning of the segment.
2013-08-06 12:18:36 -07:00
Kevin Sawicki
8b55c4981d
Add assert for multi-segment prefix
2013-08-06 11:35:37 -07:00
probablycorey
c38edbfe0b
Cursor.moveCursorToBeginningOfNextWord() behaves correctly on whitespace
...
Closes #669
2013-08-05 16:47:29 -07:00
probablycorey
8cc47a2069
Add _.deepExtend
2013-08-05 13:54:37 -07:00
probablycorey
69eace6292
Remove references to windowed config panel
2013-08-05 13:54:37 -07:00
probablycorey
2284435551
Move config view to a package
2013-08-05 13:54:37 -07:00
Kevin Sawicki
684dec4b24
Always suggest non-negative indent levels
...
Close #668
2013-07-31 18:01:38 -07:00
Ben Ogle & Corey Johnson
16cce1efb1
nof
2013-07-24 14:55:43 -07:00
Ben Ogle
b3025a4dfc
rename rowRangeForCommentFoldAtBufferRow -> rowRangeForCommentAtBufferRow
2013-07-24 13:09:00 -07:00
Ben Ogle
e76fe439ba
Fix tests. Indent oops.
2013-07-24 12:18:27 -07:00
Ben Ogle
f7bb8aab9e
Move rowRangeForParagraphAtBufferRow into LanguageMode
2013-07-24 12:18:27 -07:00
Ben Ogle
0a075c6934
remove fdescribe
2013-07-24 12:05:16 -07:00
Ben Ogle
cef3b7d634
move folding tests from EditSession -> LanguageMode
2013-07-24 12:05:16 -07:00
Ben Ogle
d4d3426b4e
Add foldAllAtIndentLevel()
2013-07-24 12:05:16 -07:00
Ben Ogle
c2326d096b
Fold comments in foldAll()
2013-07-24 12:05:15 -07:00
Ben Ogle
18146346f6
add failing comment fold tests
2013-07-24 12:05:15 -07:00
Ben Ogle
519c514092
add a new sample with some comments
2013-07-24 12:05:15 -07:00
Ben Ogle
4187615fa7
Fix test
2013-07-24 11:53:33 -07:00
Ben Ogle
d98ea0180c
Proper handling of cursor up and down behavior when selection range
2013-07-24 11:53:33 -07:00
Ben Ogle
226a4bf391
Add tests for moving to end of selection
2013-07-24 11:53:33 -07:00
Ben Ogle
1465736974
Merge branch 'master' into bo-move-word-behavior
...
Conflicts:
src/app/editor.coffee
2013-07-23 15:34:20 -07:00
Kevin Sawicki
0bb7d3ba09
Default save as dialog to directory of active item
2013-07-22 09:11:57 -07:00
Ben Ogle
fe4c4e9751
Add selectToFirstCharacterOfLine to editSession
2013-07-22 09:02:05 -07:00
Ben Ogle
4ccbd03daf
I can't spell. Boundary.
2013-07-19 12:17:17 -07:00
Ben Ogle
3df33a7367
Add selection counterparts to move next/prev word boundary
2013-07-19 12:07:30 -07:00
Ben Ogle
13b592d1f3
Add Cursor::moveToNextWordBoundry()
...
Plumb up to editor as well.
2013-07-19 11:37:47 -07:00
Ben Ogle
ab8df8dcde
Add moveToPreviousWordBoundry to cursor.
...
Plumb it up to a command in the editor.
2013-07-19 11:16:14 -07:00
Ben Ogle
e43e8d156e
Combat against empty range; fixes tests
2013-07-17 18:22:41 -07:00
Ben Ogle
2aca31988f
Fix tests in EditSession
2013-07-17 17:56:52 -07:00
Ben Ogle
c52cf836cd
remove the f on the describe
2013-07-17 17:42:33 -07:00
Ben Ogle
3f8c120ad0
update tests to be more clear
2013-07-17 17:37:45 -07:00
Ben Ogle
365e5e8413
calcMinIndent -> minIndentLevelForRowRange
2013-07-17 17:35:05 -07:00
Ben Ogle
90e53ad3e2
Add proper indents on auto comments
2013-07-17 16:04:53 -07:00
Corey Johnson & Matt Colyer
4a67bfcf15
Remove editor.autoIndentOnPaste config option
...
Normalize paste on indent covers most use cases of autoindent when pasting.
Closes #584
2013-07-16 17:08:12 -07:00
Kevin Sawicki
17cecda23e
Use atom-shell 23dd5b4da8
...
The release past this build is causing issues with async callbacks
not firing.
2013-07-16 09:48:15 -07:00