Antonio Scandurra
0cd6bd19af
Implement isWrapBoundary for DisplayLayer
...
So that we can correctly soft wrap CJK characters.
2016-03-18 18:30:35 +01: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
Antonio Scandurra
bf5a0d8c8c
Adjust assertions based on the new soft-wrap logic
2016-03-17 15:11:27 +01:00
Antonio Scandurra
43f27780fd
Fix specs related to the produced HTML line output
...
This verifies that with the new DisplayLayer the produced output is
cleaner when tags interleave.
2016-03-17 14:56:23 +01:00
Antonio Scandurra
5efb969a63
💚 Start fixing TextEditorComponent specs
2016-03-17 11:33:17 +01:00
Antonio Scandurra
f57fb3176a
Add back lineIdForScreenRow
2016-03-17 11:19:05 +01:00
Antonio Scandurra
23ddeb7f08
🔥 Put back commented out LOC
2016-03-17 10:38:23 +01:00
Antonio Scandurra
708da39355
Avoid using tokenizedLineForScreenRow in TextEditorPresenter specs
2016-03-17 10:35:54 +01:00
Antonio Scandurra
661417e362
Update lines in TextEditorPresenter.prototype.getPostMeasurementState()
...
Calling ::updateHorizontalDimensions might cause the editor vertical
coordinates (e.g. height, scroll top) to change, so we need to fetch
lines again from `DisplayLayer`.
2016-03-17 09:42:36 +01:00
Antonio Scandurra
670123a9f7
More fixes in FakeLinesYardstick
2016-03-17 09:28:48 +01:00
Antonio Scandurra
2e41e9ead4
Reset DisplayLayer every time config changes
2016-03-16 19:19:00 +01:00
Antonio Scandurra
4c8f43f41b
Use new APIs in FakeLinesYardstick
2016-03-16 15:15:48 +01:00
Nathan Sobo
e56c2addea
Pass softWrapHangingIndent option
2016-03-14 20:13:00 -06:00
Nathan Sobo
8888203005
Drop marker-index dependency
2016-03-14 17:14:27 -06:00
Antonio Scandurra
e513ed3a11
WIP: Always enable soft-wrapping
2016-03-14 18:43:27 +01:00
Antonio Scandurra
8c3ab52b64
Pass showIndentGuides config to DisplayLayer
2016-03-10 19:17:28 +01:00
Antonio Scandurra
40beb0bd1e
Use new TextBuffer APIs
2016-03-10 16:00:56 +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
Antonio Scandurra
4b017759c9
Ensure project.serialize is called with atom.saveState options
...
This is because we have made the `project.serialize(options)` parameter optional
for backwards compatibility (i.e. #11111 ), and we want to make sure we don't
make the mistake of not passing it internally.
2016-03-10 09:41:50 +01:00
Antonio Scandurra
e19ab2197f
Merge pull request #11111 from mehcode/patch-1
...
Default the options parameter to an empty object
2016-03-10 09:39:54 +01:00
Lee Dohm
ac35fec0cd
⬆️ tree-view@0.203.0
2016-03-09 17:26:47 -08:00
Josh Abernathy
c364943a7f
Merge pull request #11115 from atom/update-nodegit
...
Update nodegit
2016-03-09 14:40:58 -05:00
Thomas Johansen
a04c552fb7
⬆️ language-text
2016-03-09 19:22:23 +01:00
joshaber
129139f03a
⬆️ nodegit@0.11.9
2016-03-09 12:43:28 -05:00
Damien Guard
37a29957df
Merge pull request #11103 from damieng/master
...
Make cli atom --wait work on Cygwin
2016-03-09 09:36:19 -08:00
Lee Dohm
4a51c46737
Merge pull request #11077 from RodrigoEspinosa/rec-fix-unfold-all-scroll-to-cursor
...
Scroll to cursor on unfold all
2016-03-09 09:05:04 -08:00
Ryan Leckey
152e370a15
Default the options parameter to an empty object
2016-03-09 02:16:10 -08:00
Nathan Sobo
bf5dea0a27
⬆️ fuzzy-finder
2016-03-08 19:27:19 -07:00
Damien Guard
52d6fbde1b
More reliable to just call atom.cmd for Cygwin
2016-03-08 12:12:52 -08:00
Josh Abernathy
c8dd4f3209
Merge pull request #11101 from atom/emit-status-changes-when-anything-changes
...
Emit status changes when anything changes
2016-03-08 13:37:32 -05:00
Daniel Hengeveld
42c6d5c2bc
:arrow_up:symbols-view@0.112.0 - adds es7 async functions to js
2016-03-08 18:47:42 +01:00
joshaber
fc62398d62
Use the new branch name.
2016-03-08 12:40:38 -05:00
joshaber
cb44450e92
Correct the spec name.
2016-03-08 12:40:29 -05:00
joshaber
f2be54bf29
But actually do it tho.
2016-03-08 12:14:42 -05:00
joshaber
2f401c7116
We should emit changes when anything changes.
2016-03-08 12:14:26 -05:00
Lee Dohm
c8cb96b609
Merge pull request #11099 from delftswa2016/fix-numbertohexstring
...
Add zero to hexadecimal numbers below F (16)
2016-03-08 08:47:32 -08:00
Rowan Bottema
b53c5a10d0
Add zero to hexadecimal numbers below F (16)
2016-03-08 10:20:37 +01:00
Damien Guard
56b23a4a10
Make cli atom --wait work on Cygwin
2016-03-07 14:01:05 -08:00
Josh Abernathy
8472f914a1
Merge pull request #11089 from atom/bump-nodegit
...
Update nodegit
2016-03-07 15:39:43 -05:00
joshaber
56d82ccac2
⬆️ nodegit@0.11.7
2016-03-07 14:44:51 -05:00
Michelle Tilley
f6d419c2f4
Merge pull request #11057 from atom/mkt-improve-pane-add-item-options
...
Move Pane::addItem 'pending' option to options object
(cherry picked from commit 53a9c22554 )
2016-03-07 10:02:49 -08:00
Antonio Scandurra
8caa9d0a95
🎨 Better wording on specs
2016-03-07 17:21:09 +01:00
Antonio Scandurra
a3bed908d7
Don't partially serialize after unloading editor window
2016-03-07 17:14:52 +01:00