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
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
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
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
Antonio Scandurra
f81843d465
Merge branch 'master' into as-block-decorations
2016-01-14 09:30:06 -07:00
Antonio Scandurra
2af5d395dd
📝 Include info for preceding/following block decorations
2016-01-13 09:38:28 -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
joshaber
07be6d5c6e
Merge branch 'master' into dh-async-repo
2016-01-11 14:14:19 -05:00
Katrina Uychaco
8d3b86acb5
Serialize pending state for editor
2016-01-10 12:53:39 -08:00
Yuya Tanaka
d4c8770176
Add copy project path command to text-editor
2016-01-10 19:35:34 +09:00
Katrina Uychaco
364205ca56
✅ Ensure terminate handler is invoked only once
2016-01-09 18:10:28 -08:00
Nathan Sobo
db74f4a8f0
Merge pull request #10178 from atom/ku-pending-editor
...
Open file in pending state on single click
2016-01-08 14:45:14 -07:00
Katrina Uychaco
cee41a2fb0
Remove new line
2016-01-05 10:42:07 -08:00
joshaber
449c1e6a69
Merge branch 'master' into dh-async-repo
2016-01-04 11:15:01 -05:00
Kevin J
876928f7f6
Update function documentation for scrollToScreenPosition
2016-01-02 16:05:21 -05:00
Katrina Uychaco
7f57b0ada4
Change event to 'did-terminate-pending-state'
2015-12-24 18:02:07 -08:00
Katrina Uychaco
cca9ea4b60
Rename onDidConfirmPendingState for clarity
...
Now it is called onDidTerminatePendingState.
2015-12-24 17:56:18 -08:00
Katrina Uychaco
b24250289e
Add pending status to text editors
...
Add event methods for 'did-confirm-pending-state'.
2015-12-24 01:10:42 -08:00
Antonio Scandurra
dfb095b754
🔥 Remove TextEditor.prototype.addBlockDecorationForScreenRow
2015-12-19 13:00:47 +01:00
Antonio Scandurra
8c1f0b0e21
Merge branch 'master' into as-block-decorations
...
# Conflicts:
# spec/fake-lines-yardstick.coffee
# spec/lines-yardstick-spec.coffee
# spec/text-editor-presenter-spec.coffee
# src/lines-yardstick.coffee
# src/text-editor-component.coffee
# src/text-editor-presenter.coffee
2015-12-18 09:59:12 +01:00
joshaber
f3cfb5d069
Merge branch 'master' into dh-async-repo
2015-12-09 15:44:45 -05:00
Antonio Scandurra
afd05f391f
Don't prompt to save when a window close is requested
...
Fixes #942
2015-12-07 14:50:34 +01:00
Antonio Scandurra
b6b2958e67
📝 TextEditor::addBlockDecorationForScreenRow
2015-12-04 15:33:18 +01:00
joshaber
3a06953820
Merge branch 'master' into dh-async-repo
2015-11-30 11:44:20 -05:00
Antonio Scandurra
da1fd69a1f
Start implementing BlockDecorationsComponent
2015-11-30 15:48:09 +01:00
Antonio Scandurra
89d9a2ce83
🎨 Create block decorations in TextEditor
...
This is just an experiment, although I like that we can hide some information
(irrelevant to the user) behind a clean API.
2015-11-26 15:40:08 +01:00
Douwe Maan
a9bf2a73a5
Improve TextEditor::getLongTitle
2015-11-17 23:34:31 +01:00
joshaber
41d73db7e5
Merge branch 'master' into dh-async-repo
2015-11-17 11:39:22 -08:00
Nathan Sobo
af22a149bd
Replace getLongTitle with getUniqueTitle
2015-11-16 13:47:23 -08:00
Max Brunsfeld
4c3d355298
👕 Add missing space after comma
2015-11-11 08:44:36 -08:00
Max Brunsfeld
0c72500b9e
Set firstVisibleScreenRow property before emitting event
2015-11-10 16:29:39 -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
joshaber
bfbbbf16cb
Merge branch 'master' into dh-async-repo
2015-11-10 15:23:54 -05: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
Daniel Hengeveld
e2a1337b84
Merge branch 'master' into dh-async-repo
2015-11-09 13:08:23 +01:00
Nathan Sobo
533146bc6a
Document new APIs
2015-11-09 00:35:32 -07:00
Nathan Sobo
9714f2e729
Emit decoration events synchronously in legacy spec environment
...
This is needed to keep a bunch of package tests passing that expect
synchronous decoration updates.
2015-11-09 00:35:31 -07: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