Commit Graph

28216 Commits

Author SHA1 Message Date
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
a8d6a0036d Don’t unfold buffer rows when editing 2016-03-24 13:40:24 +01:00
Antonio Scandurra
6acbbb3a5c Improve DisplayLayer management 2016-03-23 17:20:08 +01:00
Antonio Scandurra
21831a4e43 🐛 Fix inaccurate logic in moveLineDown
Instead of deleting and then inserting, it’s better to do the opposite
so that we don’t have to translate points at all.
2016-03-23 16:16:51 +01:00
Antonio Scandurra
3d9835bbbd 💚 WIP: Continue fixing TextEditor specs 2016-03-22 16:05:38 +01:00
Antonio Scandurra
756db7588b Return an invalidated range only when TokenizedBuffer has one 2016-03-22 14:59:26 +01:00
Antonio Scandurra
9abc547bfb Copy also DisplayLayer 2016-03-22 14:56:22 +01:00
Antonio Scandurra
326f2c6a9e Add TextEditor.prototype.tokensForScreenRow for testing purposes 2016-03-22 14:49:42 +01:00
Antonio Scandurra
b1e07c0cfe Use the new lineText property 2016-03-22 14:36:28 +01:00
Antonio Scandurra
27799d30f6 Use deserialized display layer when possible 2016-03-22 14:27:23 +01:00
Antonio Scandurra
4e23748660 Fix moveLineUp and moveLineDown to work with free-form folds 2016-03-22 14:02:13 +01:00
Antonio Scandurra
227670a407 Merge branch 'master' into ns-use-display-layers 2016-03-22 12:01:07 +01:00
Michelle Tilley
64308bbacb Revert "Revert "Allow pasting white space when autoIndentOnPaste is enabled""
This reverts commit 5c03894227.
2016-03-21 16:27:48 -07:00
Michelle Tilley
449abd7364 Revert "Revert "Add spec for inserting white-space-only lines""
This reverts commit fd17457c17.
2016-03-21 16:27:41 -07:00
Nathan Sobo
fd17457c17 Revert "Add spec for inserting white-space-only lines"
This reverts commit 746afb98ad.

@BinaryMuse Heads up this is the test associated with the other commit
you reverted. Had to revert it as well to get the build green. Didn’t
see a revert on beta so I’m assuming this is good enough?
2016-03-21 17:18:47 -06:00
Michelle Tilley
c5ed25a131 ⬆️ apm 2016-03-21 15:32:42 -07:00
Michelle Tilley
439825ea37 ⬆️ settings-view 2016-03-21 14:32:45 -07:00
Michelle Tilley
32a1d21a0d ⬆️ apm 2016-03-21 14:03:25 -07:00
Antonio Scandurra
8f2ebe8b79 🔥 2016-03-21 17:46:58 +01:00
Michelle Tilley
5c03894227 Revert "Allow pasting white space when autoIndentOnPaste is enabled"
This reverts commit 0088053de4.
2016-03-20 22:22:33 -07:00
Nathan Sobo
5aba734a41 Remove specialTokens object from TokenizedLine 2016-03-18 19:21:12 -06:00
Nathan Sobo
b0c5870425 Remove dead code from TokenizedLine 2016-03-18 18:15:41 -06:00
Nathan Sobo
1994e3b404 Remove TokenizedLine::copy 2016-03-18 18:10:04 -06:00
Nathan Sobo
462157039b Drop indentLevel and soft wrap support from TokenizedLine 2016-03-18 18:09:23 -06:00
Nathan Sobo
d62ef599cd Replace tokens with tagCodes in DisplayLayer.prototype.getScreenLines 2016-03-18 15:57:49 -06:00
Nathan Sobo
1a2f306db3 🚿 Remove commented code 2016-03-18 15:57:03 -06:00
Antonio Scandurra
0cd6bd19af Implement isWrapBoundary for DisplayLayer
So that we can correctly soft wrap CJK characters.
2016-03-18 18:30:35 +01:00
Josh Abernathy
39592599b1 Merge pull request #11201 from atom/bf-async-await
Remove an unnecessary call to then().
2016-03-18 13:29:11 -04:00
Michael Bolin
bb8f114dcb Remove an unnecessary call to then().
I see that this file has a little use of async/await and many uses of `then()`.
Things would be much less verbose and much more linear if async/await were used throughout.
Would Atom be open to a PR that changes this?

For bonus points, we could also replace `'use babel'` with `/* @flow */` at the top of the file :)
2016-03-18 09:56:33 -07:00
Antonio Scandurra
bbcbe9e809 Implement ratioForCharacter 2016-03-18 14:58:13 +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
d666e4c008 Fix lastScreenRowForBufferRow
…which was mistakenly translating screen positions to buffer positions,
and not vice versa.
2016-03-18 11:48:52 +01:00
Antonio Scandurra
5fc699f791 Use intersecting folds when duplicating lines 2016-03-18 11:44:23 +01:00
Antonio Scandurra
d86309e46b Use DisplayLayer.prototype.foldBufferRange in Selection.prototype.fold 2016-03-18 11:33:29 +01:00
Antonio Scandurra
83da3ca440 Fix moveLineUp and moveLineDown 2016-03-18 11:24:22 +01:00
Antonio Scandurra
1d1bdf5872 Improve folds behavior when duplicating lines
Now we will select the entire screen line (which could contain some
free-form fold), and we duplicate its contents preserving the structure
of the existing folds.
2016-03-18 11:04:30 +01:00
Wliu
74407fc025 Merge pull request #11194 from fruchtose/destory-typo
Fix typo: destory -> destroy
2016-03-17 22:50:11 -04:00
Josh Abernathy
eb72a23039 Merge pull request #11188 from atom/bump-status-bar
Bump status-bar
2016-03-17 22:45:22 -04:00
joshaber
dd5886e135 ⬆️ line-ending-selector@0.4.1 2016-03-17 22:19:48 -04:00
joshaber
543015af97 ⬆️ incompatible-packages@0.26.1 2016-03-17 22:19:38 -04:00
Robert Fruchtman
1c5ad8db0f destory -> destroy 2016-03-17 19:11:07 -07:00
joshaber
145396a73f Hwoops 2016-03-17 22:05:15 -04:00
joshaber
85526198f7 ⬆️ line-ending-selector@0.4 2016-03-17 22:03:26 -04:00
joshaber
7863ffbac7 ⬆️ incompatible-packages@0.26 2016-03-17 22:03:16 -04:00
Michelle Tilley
4e9fa72fd1 ⬆️ about 2016-03-17 13:24:59 -07:00
joshaber
ffe13db768 Revert "Revert "⬆️ status-bar@1.2.0""
This reverts commit acbd349312.
2016-03-17 15:51:33 -04:00