Commit Graph

269 Commits

Author SHA1 Message Date
Antonio Scandurra
bef7539e34 Refactor DisplayBuffer to DecorationManager
This commit moves all the remaining concerns not related to decorations
out of `DisplayBuffer` and into `TextEditor`. This means the
`DisplayBuffer` is now free to be renamed to `DecorationManager`.
2016-04-05 18:43:08 +02:00
Antonio Scandurra
e6cfb8d587 Use a zero-width nbsp as our fold character 2016-04-05 11:34:14 +02:00
Antonio Scandurra
fd960e9a37 Merge branch 'master' into ns-use-display-layers 2016-04-04 15:25:50 +02:00
Machiste Quintana
3b222dbee8 Don't merge selections if at start or end of line 2016-03-28 23:26:28 -07:00
Machiste Quintana
e932e3db05 Merge branch 'master' into mq-move-selected-columns 2016-03-28 22:16:31 -07:00
Antonio Scandurra
c609f6c967 Destroy DisplayLayer upon DisplayBuffer destruction 2016-03-25 10:53:02 +01:00
Antonio Scandurra
0a634a5870 💚 Fix more tests using tokenizedLineForScreenRow 2016-03-25 10:49:32 +01:00
Antonio Scandurra
27aad42644 Handle tab length retokenization in DisplayLayer
We still want to keep the tab length in TokenizedBuffer, because we need
it to understand if a certain buffer row is foldable or not (due to the
indent level)
2016-03-25 10:33:12 +01:00
Antonio Scandurra
e6cb5c8e89 🐛 Guard against unexisting screen rows 2016-03-24 15:57:24 +01:00
Antonio Scandurra
87489d4b0b Fix TextEditor cutToEndOfLine() test
…which was failing due to the different soft-wrapping rules.
2016-03-24 14:15:06 +01:00
Antonio Scandurra
4136e27d44 Fix TextEditor backspace() and delete() specs 2016-03-24 13:58:58 +01:00
Antonio Scandurra
3d9835bbbd 💚 WIP: Continue fixing TextEditor specs 2016-03-22 16:05:38 +01:00
Antonio Scandurra
326f2c6a9e Add TextEditor.prototype.tokensForScreenRow for testing purposes 2016-03-22 14:49:42 +01:00
Antonio Scandurra
3c70ff92f4 💚 Add TextEditor.prototype.screenLineForScreenRow
This is going to supplant our internal usage of
TextEditor.prototype.tokenizedLineForScreenRow().
2016-03-18 14:26:29 +01:00
Antonio Scandurra
d1306ae944 Remove invisibles handling from TokenizedBuffer 2016-03-18 14:09:52 +01:00
Antonio Scandurra
dfed7c4537 Merge branch 'master' into ns-use-display-layers
# Conflicts:
#	package.json
#	src/display-buffer.coffee
#	src/text-editor.coffee
#	src/tokenized-buffer.coffee
2016-03-10 13:53:14 +01:00
joshaber
928205a44a s/grammarName/grammar 2016-03-03 10:09:18 -05:00
joshaber
db20cecfc0 s/ignoreInvisibles/showInvisibles 2016-03-03 09:59:45 -05:00
joshaber
e1c5aad0a6 Test ignoreInvisibles and grammarName. 2016-03-01 11:43:38 -05:00
joshaber
e0d44aad5d Test getElement. 2016-03-01 11:07:55 -05:00
Nathan Sobo
7f744681c3 Simplify consolidateSelections spec to test autoscroll with events 2016-02-29 18:51:36 -07:00
Nathan Sobo
04d2474594 Merge PR #9642 (Autoscroll after consolidating selections) 2016-02-29 18:38:33 -07:00
Katrina Uychaco
1c65d0e5e4 Changed Pane and TextEditor specs to match new pending behavior 2016-02-25 16:48:16 -08:00
Alex
fff2a54258 Specs for variable tabLength
For #9198
2016-02-10 02:53:01 -06:00
Nathan Sobo
0243a345b7 Merge branch 'master' into ns-use-display-layers 2016-02-09 12:42:57 -07:00
Aaron Contreras
cbff7394c6 🐛 Reuse scroll position on text editor's copy. Fixes #8765
 Update specs to avoid regressions
2016-02-09 00:36:37 +01:00
Nathan Sobo
972fda4ef7 Start using DisplayLayer for folds 2016-01-13 12:17:01 -07:00
Max Brunsfeld
aea9c5804a Improve terminate pending state tests.
Remove argument to remove pending state listeners.
2016-01-12 18:34:32 -08:00
Katrina Uychaco
4d0b58ff46 Add spec for serialzing/deserialzing pending state for editor 2016-01-10 13:01:01 -08:00
Katrina Uychaco
364205ca56 Ensure terminate handler is invoked only once 2016-01-09 18:10:28 -08:00
Katrina Uychaco
d0be1965f2 🎨 2016-01-09 17:26:44 -08:00
Katrina Uychaco
43d933eca8 Change order of tests 2016-01-09 17:18:07 -08:00
Katrina Uychaco
5738b14eda 🎨 2016-01-08 13:39:46 -08:00
Katrina Uychaco
def62fc6c7 Fix test: modified buffer terminates pending state 2015-12-24 21:42:00 -08:00
Katrina Uychaco
217e07530f Add test: modified buffer terminates pending state
Test not yet passing. ::insertText is not triggering terminatePendingState. Not sure why...
2015-12-24 18:43:57 -08:00
Katrina Uychaco
fa86d2d156 Add tests for pending status 2015-12-24 17:57:08 -08:00
Collin Donahue-Oponski
e4e200317a Autoscroll to cursor after clearing multi-cursor selection. 2015-12-11 15:32:29 -07:00
Antonio Scandurra
1f955f0aab 🔥 💚 Remove outdated spec
This made the build fail because we were checking that a TextEditor couldn't
have been serialized when the path didn't exist. This is exactly the opposite we
want to do for restoring untitled editors, therefore I think it's safe to delete
this test.

/cc: @nathansobo for extra 👀
2015-12-07 22:03:28 +01:00
Wliu
2b694bb4b1 Merge pull request #9921 from atom/wl-update-for-js-scope-changes
Update specs for language-javascript changes
2015-12-03 17:26:17 -05:00
Max Brunsfeld
fe5b1b70e8 Fix paragraph motions in the presence of CRLF line endings 2015-12-03 12:07:15 -08:00
Max Brunsfeld
76b6ca5043 Make CRLF word-movement tests pass 2015-12-03 11:52:45 -08:00
Max Brunsfeld
71d2761c1a Merge pull request #9763 from dranzerashi/patch-1 2015-12-03 10:30:48 -08:00
Wliu
d85af0d3f4 💚 again 2015-12-02 21:39:12 -05:00
Douwe Maan
a9bf2a73a5 Improve TextEditor::getLongTitle 2015-11-17 23:34:31 +01:00
Nathan Sobo
192e804c8f Fix specs. Duh. 2015-11-17 08:53:13 -08:00
Max Brunsfeld
fefb387d3c Merge branch 'master' into mb-synchronous-scroll-position
Conflicts:
	src/text-editor-presenter.coffee
	src/text-editor.coffee
2015-11-10 16:23:39 -08:00
Max Brunsfeld
1304648361 Make getLastVisibleScreenRow a model API again 2015-11-09 11:00:38 -08:00
Max Brunsfeld
48cc5e713e Make presenter respond to external changes to model's first visible screen row 2015-11-09 10:13:09 -08:00
Nathan Sobo
9ee3d53975 Destroy the selections marker layer when editors are destroyed 2015-11-09 00:35:31 -07:00
Nathan Sobo
29bb1bb31b Add TextEditor-level marker layers and use them for selections 2015-11-09 00:35:31 -07:00