Antonio Scandurra
f9fb93f214
🎨
2016-03-25 16:37:01 +01:00
Antonio Scandurra
e6cb5c8e89
🐛 Guard against unexisting screen rows
2016-03-24 15:57:24 +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
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
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
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
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
5efb969a63
💚 Start fixing TextEditorComponent specs
2016-03-17 11:33:17 +01:00
Nathan Sobo
2ad2f161fa
Merge pull request #11078 from wvanlint/opt_in_registration
...
Add TextEditors to the registry only when opting in
2016-03-11 15:37:07 -07:00
Willem Van Lint
466e554ee1
Add TextEditors to the registry on opt-in only
2016-03-10 22:51:51 -08: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
Rodrigo Espinosa Curbelo
42a696cf28
🐛 Scroll to cursor when unfold all
...
Fixes #11066
2016-03-05 21:28:09 -03:00
joshaber
dba1fbd408
De-lint.
2016-03-03 10:15:13 -05:00
joshaber
928205a44a
s/grammarName/grammar
2016-03-03 10:09:18 -05:00
joshaber
98c8a08ac3
s/ignoreScrollPastEnd/scrollPastEnd
2016-03-03 10:06:15 -05:00
joshaber
db20cecfc0
s/ignoreInvisibles/showInvisibles
2016-03-03 09:59:45 -05:00
joshaber
367f6db7a4
Merge branch 'master' into atom-textarea
2016-02-29 23:02:52 -05:00
Nathan Sobo
04d2474594
Merge PR #9642 (Autoscroll after consolidating selections)
2016-02-29 18:38:33 -07:00
Willem Van Lint
26cf7f081f
Registry for editors
2016-02-29 17:30:04 -05:00
joshaber
707bdf3f39
Merge branch 'master' into atom-textarea
2016-02-29 16:41:01 -05:00
Michelle Tilley
b9d40be902
Merge pull request #10959 from atom/ku-move-pending-state-from-item-to-pane
...
(WIP) Refactor pending state to live in pane instead of items
2016-02-26 14:19:23 -08:00
Katrina Uychaco
7643fa04ed
Small 🐎 when editing a TextEditor that is no longer pending
2016-02-25 17:32:17 -08:00
Katrina Uychaco
1c65d0e5e4
Changed Pane and TextEditor specs to match new pending behavior
2016-02-25 16:48:16 -08:00
Katrina Uychaco
b637366a58
Workspace#setItemNotPending ➡️ Item#onDidTerminatePendingState
...
Signed-off-by: Michelle Tilley <binarymuse@github.com >
2016-02-25 16:09:40 -08:00
joshaber
dfd3e1b948
Take autoHeight as an argument.
2016-02-25 17:11:04 -05:00
joshaber
ff0b9e30a9
Add ignoreScrollPastEnd
2016-02-25 16:59:58 -05:00
joshaber
1b6325494d
Merge branch 'master' into atom-textarea
2016-02-25 16:05:59 -05:00
joshaber
dd83619c45
Add autoHeight setting.
2016-02-25 16:05:57 -05:00
joshaber
2af53231f1
Less lint.
2016-02-25 15:21:56 -05:00
joshaber
f3ce468a70
Support specifying whether to ignore invisibles and the grammar.
2016-02-25 15:01:40 -05:00
joshaber
44dabf1e2f
Added .getElement to TextEditor.
2016-02-25 14:43:02 -05:00
Alfred UC
24865fd254
Fix a inconsistent getLineCount() use
2016-02-25 20:30:25 +09:00
Katrina Uychaco
a487110521
Refactor pending state to live in pane instead of items
...
* New public API `workspace.setItemNotPending` that
packages can use to set an item to set an item to not pending
(e.g. when the user interacts with the item)
* Pending state for newly opened items with `{pending: true}`
is now tracked by `Pane` instead of the item, and packages like
`tabs` that query this information now get it from the Pane.
2016-02-24 18:30:09 -08:00
Antonio Scandurra
bea324eae9
🔥 Use just isFoldableAtBufferRow
2016-02-17 15:05:31 +01:00
Antonio Scandurra
012fa354c4
Add TokenizedBuffer.prototype.foldableRowsForRowRange
2016-02-17 10:34:21 +01:00
Antonio Scandurra
63270f4174
Add TextEditor.prototype.cursorsForScreenRowRange
...
So that `TextEditorPresenter` can avoid to scan
through all the cursors to understand whether
they're visible on screen. This dramatically
reduces the calls to `getScreenRange` and, thus,
makes `updateCursorsState` faster for multi-cursor
edits.
2016-02-16 14:41:24 +01: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
21b1f79fab
Avoid updating screen lines in DisplayBuffer
2016-01-19 14:51:24 -07:00
Nathan Sobo
ed79413de1
Depend on DisplayLayer for more things
2016-01-19 14:39:37 -07:00
Josh Abernathy
4d740d3346
Merge pull request #9213 from atom/dh-async-repo
...
Async Git Repository class
2016-01-15 16:17:41 -05:00
joshaber
7cfb8a3207
Merge branch 'master' into dh-async-repo
2016-01-15 13:39:03 -05:00
Katrina Uychaco
4c1ebdf1b9
Merge branch 'master' into ku-pending-editor
2016-01-14 17:40:41 -08:00
joshaber
f3a6f2ed1e
Merge branch 'master' into dh-async-repo
2016-01-14 11:39:42 -05:00