abe33
5a5cb869e2
💄 Replace have with has in spec description
2014-05-08 23:59:55 +02:00
abe33
56a1ecf6c1
Adds specs for multi selections clipboard handling
2014-05-07 00:13:04 +02:00
Kevin Sawicki
27b02a7981
Add initialColumn options to Workspace::open
...
This options works similarly to the existing initialLine option
2014-04-30 16:07:26 -07:00
Corey Johnson
c03dec2783
Merge remote-tracking branch 'origin/master' into cj-add-deprecation-warning-to-specs
2014-04-23 16:51:14 -07:00
Corey Johnson
38c25feee0
Remove deprecated calls to editor spec
2014-04-23 11:27:23 -07:00
Nathan Sobo
752aa9a8e9
Handle editor:page-up/down commands
2014-04-22 17:10:23 -06:00
Nathan Sobo
e4639281f8
Handle 'editor:scroll-to-cursor' command
...
Add Editor::scrollToCursorPosition in the model layer
2014-04-22 17:10:23 -06:00
Nathan Sobo
a0ff6f5325
Handle 'autoscroll' option in model when setting selected buffer range
2014-04-22 17:09:45 -06:00
Nathan Sobo
4b9871fa13
Enable advanced scroll management only when editor is used by react view
...
This preserves the original behavior of the editor model with respect
to scroll position and autoscroll unless it's being used by the react
component, which flips the ::manageScrollPosition flag to true.
2014-04-22 17:09:41 -06:00
Nathan Sobo
171631d20f
Autoscroll cursors horizontally at the model layer
...
Still need to respect the horizontal scroll position in the editor view
2014-04-22 17:09:38 -06:00
Nathan Sobo
5c9a5cdc85
Emit 'cursors-moved' from editor when one or more cursors move
2014-04-22 17:09:37 -06:00
Nathan Sobo
e472d7b038
Add autoscrolling with react editor view
...
Its implemented in the model to restrict touching of the DOM.
2014-04-22 17:09:04 -06:00
Kevin Sawicki
1afdd62a5d
Only alter indentation when it is too low
...
Previously insert newline above would use the current line's
indent level which could be the less than the proper level if the
newline should be further indented based on the increase indent
pattern being used.
2014-04-11 10:07:50 -07:00
Kevin Sawicki
6e422d5428
Move cursor to end of line when on first row
...
This line may be indented now so move the cursor to the
end of the indentation.
2014-04-04 10:47:25 -07:00
Kevin Sawicki
e464c4f047
Use current indent level for newline above
...
Previously Editor::insertNewlineAbove would put the cursor
at position 0 if there were empty lines above the current line
regarding of the indent level of the cursor's current line.
Now the indent level of the current line is always used for the newline
above when the editor.autoIndent config is enabled.
2014-04-04 10:47:25 -07:00
Kevin Sawicki
3e24d045e5
Allow backspace to beginning of word on first line
...
Previously this would fail when only whitespace was to the
left of the cursor.
2014-04-03 12:04:22 -07:00
Kevin Sawicki
7c17c99b9e
Update spec description
2014-03-19 10:05:34 -07:00
Kevin Sawicki
ff560bc3a3
Update spec to not be before whitespace
2014-03-19 10:05:34 -07:00
Kevin Sawicki
2e8c0234bb
Tweak spec description
2014-03-19 10:05:34 -07:00
Kevin Sawicki
8e62d772b3
Ignore leading whitespace when auto-indenting a newline
...
Refs atom/language-less#1
2014-03-19 10:05:34 -07:00
Kevin Sawicki
86cd7f7a01
Handle non-integer indentation level values
...
This was already occurring when using hard tabs but soft tabs still
had issues.
Refs atom/language-c#7
2014-03-10 18:45:18 -07:00
Kevin Sawicki
a79090c65a
Unfocus spec
2014-03-10 18:43:38 -07:00
Kevin Sawicki
86c720af81
Normalize all tabs, not just the first one
...
Refs atom/language-javascript#10
2014-03-10 17:57:10 -07:00
Nathan Sobo
85824c5df6
Handle last buffer line in Editor::duplicateLines
2014-03-06 14:48:52 -07:00
Nathan Sobo
20a0c27111
Rename duplicate-line to duplicate-lines (but retain deprecated method)
...
Might as well make the name accurate while it's early.
2014-03-06 14:36:25 -07:00
Nathan Sobo
aff37d1ae4
WIP: Add failing spec for duplicating folds when duplicating lines
2014-03-06 00:29:35 -07:00
Nathan Sobo
a0234d0cc6
Handle empty selections on folded lines
2014-03-06 00:07:59 -07:00
Nathan Sobo
8a77acb51e
Duplicate multiple selections and multiple lines; folds are broken
2014-03-05 23:29:28 -07:00
Nathan Sobo
690bbbd14c
💄 Fix indentation level of the last describe in editor-spec
...
I think I screwed it up in the last commit
2014-03-05 21:34:31 -07:00
Nathan Sobo
9c9bb2f192
💄 Flatten the structure of editor-spec
...
Previously there were 2 top-level describes:
"with an initial line option"
"with default options"
The default options describe contained almost all the specs, so this
commit just creates the editor again in a single spec about the
initialLine option and peels off a layer.
2014-03-05 21:32:11 -07:00
Nathan Sobo
23a40fe051
💄 Move specs for Editor::reloadGrammar to editor-spec
2014-03-05 21:23:39 -07:00
Nathan Sobo
aa04589dd2
Rename Editor::joinLine to ::joinLines
...
It acts on multiple lines, and in a quick survey of the literature I see
Sublime docs referring to it as "join lines" as well.
2014-02-27 16:16:01 -08:00
Kevin Sawicki
320acab126
Wait for activation promise
2014-02-17 14:58:55 -08:00
probablycorey
1f3ea76379
Update Editor spec
2014-02-10 15:52:33 -08:00
Kevin Sawicki
02f0c49d0e
Unfocus spec
2014-02-03 13:36:12 -08:00
Kevin Sawicki
66530eb69a
Rename remaining pasteboard occurences
2014-02-03 13:28:09 -08:00
Kevin Sawicki
70a7514f9e
Add Clipboard::readWithMetadata
...
This includes the associated metadata and Clipboard::read now returns
a String.
2014-02-03 13:20:28 -08:00
Kevin Sawicki
569ab416b8
Replace pasteboard references with clipboard
2014-02-03 13:12:33 -08:00
Kevin Sawicki
b1e99d9927
Use atom.clipboard instead of atom.pasteboard
2014-02-03 13:10:10 -08:00
Kevin Sawicki
e6565f6561
Return object from Pasteboard::read
...
Closes #1465
2014-02-03 12:19:14 -08:00
probablycorey
23d9f6e41f
Use actual indentation length when setting indentation for row.
...
Closes #1293
2014-01-16 09:27:26 -08:00
Kevin Sawicki
d95aa0aac1
Expand buffer range in Selection::selectLine
2014-01-08 16:27:09 -08:00
Kevin Sawicki
c8f3e056e9
Pluralize selections in method name
2014-01-08 15:17:06 -08:00
Kevin Sawicki
0ef6757e65
Add Editor::splitSelectionIntoLines
2014-01-08 15:17:06 -08:00
Nathan Sobo
c6770aa83e
Merge remote-tracking branch 'origin/master' into ns-remove-telepath-from-core
...
Conflicts:
package.json
src/pane.coffee
2014-01-03 17:46:45 -07:00
Nathan Sobo
821debcb85
Make Editor, DisplayBuffer, TokenizedBuffer to not use telepath
...
This commit introduces dependency on a new npm called
[reactionary](https://github.com/atom/reactionary ). It will serve as a
*much* lighter weight model framework to provide the reactive features
of telepath without the replication logic.
Specs are still failing for panes and workspace. I plan to just roll
forward and remove the telepath dependency from them as well.
2013-12-31 18:19:53 -07:00
Kevin Sawicki
6f5d85edb9
Use grammar registry from first-mate
2013-12-31 15:15:39 -08:00
Kevin Sawicki
a59c01c6be
Move editor-specific grammar specs to editor-spec
2013-12-31 15:15:39 -08:00
probablycorey
c37b884007
Add moveCursorToEnd/BeginningOfBufferLine
...
Fixes #1123
2013-12-31 08:21:35 -08:00
probablycorey
bac76784e0
cmd-left moves the cursor to column 0 on lines only containing whitespace
...
Fixes #1344
2013-12-30 13:57:34 -08:00