Commit Graph

333 Commits

Author SHA1 Message Date
Nathan Sobo
5292767084 Use DisplayLayers for position translation and clipping in editor
Markers are still translating via the DisplayBuffer, but that will
change when display markers are moved into DisplayLayers.
2016-01-13 12:17:01 -07:00
Nathan Sobo
d5b204226f Correctly pass tabLength to addDisplayLayer 2016-01-13 12:17:01 -07:00
Nathan Sobo
924d880fa8 WIP: Start rendering lines from DisplayLayers 2016-01-13 12:17:01 -07:00
Yuya Tanaka
d4c8770176 Add copy project path command to text-editor 2016-01-10 19:35:34 +09: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
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
afd05f391f Don't prompt to save when a window close is requested
Fixes #942
2015-12-07 14:50:34 +01:00
Douwe Maan
a9bf2a73a5 Improve TextEditor::getLongTitle 2015-11-17 23:34:31 +01: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
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
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
Nathan Sobo
1ee6384332 Add TextEditorMarkerLayer 2015-11-09 00:35:31 -07:00
Nathan Sobo
b1a5b58fa2 Rename Marker to TextEditorMarker to resolve ambiguity w/ TextBuffer API
We expose both kinds of markers in Atom, and the docs were actually
wrong when we refer to Markers from TextBuffer because it linked to the
TextEditor layer’s Marker implementation. This will clarify the
difference.
2015-11-09 00:35:30 -07:00
Nathan Sobo
78513f4528 Remove duplicated method definition 2015-11-09 00:35:28 -07:00
Nathan Sobo
a3ff0ad75a 🎨 Rename method 2015-11-09 00:35:28 -07:00
Nathan Sobo
acf142863c Add TextEditor::decorateMarkerLayer 2015-11-09 00:35:27 -07:00
Nathan Sobo
92ed7c8b15 Don’t return Decoration objects from model to view
Preparation for LayerDecorations, in which individual decoration objects
won’t exist for every marker.
2015-11-09 00:35:27 -07:00
Max Brunsfeld
cdaac9dfcc wip 2015-11-09 00:35:18 -07:00
Max Brunsfeld
b58752da38 Keep model's logical scroll position up to date
* Remove scrollRow and scrollColumn properties from the presenter
* Assign presenter's scrollTop and scrollLeft based on model's first visible
  screen row and column, once the presenter has the required measurements.
2015-11-06 11:16:56 -08:00
Max Brunsfeld
7d46fe6c28 🔥 Unused properties on TextEditor.prototype 2015-11-06 09:56:58 -08:00
abe33
5b192ea295 🎨 Fix typo in moveLineUp comment 2015-11-05 20:36:22 +01:00
abe33
80553028c1 🐛 Fix top of a wrapped line not visible when moving it up 2015-11-04 19:14:44 +01:00
abe33
aa7f87bd62 🐛 Fix auto indent no longer applied when moving lines 2015-11-04 18:56:13 +01:00
Max Brunsfeld
3412251963 Merge pull request #9104 from joseramonc/master
autoindent lines with moveLineUp/moveLineDown
2015-11-03 10:41:29 -08:00
abe33
dacd08badf 🐛 Fix moving multiple selection with folds creates new folds 2015-11-03 00:48:22 +01:00
abe33
668a2dd6cf 🐛 Fix moving a multiple selection with a fold creating new folds 2015-11-02 23:43:43 +01:00
abe33
9d21c773c1 🐛 Fix moving single selection intersecting a fold 2015-11-02 21:46:02 +01:00
abe33
57556ffc42 Merge branch 'master' of github.com:atom/atom into cn-move-lines-up-and-down-with-multiple-selections 2015-11-02 18:39:04 +01:00
Nathan Sobo
152a479909 Merge pull request #9024 2015-11-02 11:26:21 -06:00
Antonio Scandurra
5fc521fedc Add deprecated method to TextEditor 2015-10-20 08:37:15 +02:00
Antonio Scandurra
b03aa4bf40 Merge branch 'master' into as-cjk-soft-wrap
# Conflicts:
#	spec/display-buffer-spec.coffee
2015-10-16 10:23:44 +02:00
Antonio Scandurra
4766c98bbe Treat Korean characters as different kinds of chars 2015-10-15 21:02:21 +02:00
Antonio Scandurra
c616e86a00 Take into account half width chars as well 2015-10-15 19:24:00 +02:00
Antonio Scandurra
4c66341624 Measure double width char widths 2015-10-15 18:08:35 +02:00
Nathan Sobo
f9a269ed99 Prompt about checking out head revision in TextEditor, not GitRepository
This allows us not to inject confirm or ApplicationDelegate into
Project, GitRepositoryProvider, and GitRepository.
2015-10-13 19:11:55 -06:00
abe33
45a3dbca4e 🐛 Fix folds not preserved when moving multiple selections down
When two or more selections span the rows immediately before a fold,
the `did-change` event dispatched on the deletion will trigger a merge
of the selections, which in turn trigger an unfold at the buffer
position of the new selection, which is now the position of the fold.
Consolidating the selections at the begin of the transaction will
prevent the merge and will keep the fold untouched.
2015-10-12 22:05:25 +02:00
abe33
4d44016eb1 🎨 Remove unnecessary branching 2015-10-12 19:40:23 +02:00
abe33
9ee89a1f31 🎨 Fix bad indentation 2015-10-11 18:15:22 +02:00
abe33
09ffa8bec9 🐛 Fix moving multiple selections down locked at wrapped line 2015-10-11 18:15:06 +02:00