Commit Graph

12958 Commits

Author SHA1 Message Date
Antonio Scandurra
0edb69047b 🐛 Move accidentally leftover statement 2015-09-30 15:39:37 +02:00
Antonio Scandurra
496120a684 🐎 Compute lines state only once 2015-09-30 15:33:09 +02:00
Antonio Scandurra
e43e1ed22e Merge branch 'master' into as-double-reflow-measurements
# Conflicts:
#	src/text-editor-presenter.coffee
2015-09-30 12:40:55 +02:00
Antonio Scandurra
214f42b2e7 🎨 Unify ::updateScroll... and ::commitPendingScroll... 2015-09-30 12:32:07 +02:00
Antonio Scandurra
c1ef87ac8b 🎨 2015-09-30 10:35:19 +02:00
Antonio Scandurra
0f8041c611 Merge branch 'master' into as-fix-deprecations 2015-09-30 10:23:38 +02:00
Antonio Scandurra
5cb63c8b90 Add feature flag to detect logical display buffer 2015-09-30 10:16:47 +02:00
Antonio Scandurra
cc98cab917 Better rows per page calculation 2015-09-30 09:17:43 +02:00
Antonio Scandurra
5cfc5b67ae Allow listening for TextEditorElement events before attaching it
Fixes atom/wrap-guide#43

/cc: @maxbrunsfeld
2015-09-30 09:09:33 +02:00
Max Brunsfeld
17d962f428 Merge pull request #8983 from atom/mb-use-key-path-helpers
Use key-path-helpers module instead of underscore-plus
2015-09-29 09:55:26 -07:00
Antonio Scandurra
698a5ac421 💚 2015-09-29 17:37:43 +02:00
Antonio Scandurra
72093da1a7 🔥 🎉 Remove scoped character width 2015-09-29 17:32:20 +02:00
Antonio Scandurra
123594dbbf Implement ::screenPositionForPixelPosition in LinesYardstick 2015-09-29 17:13:49 +02:00
Antonio Scandurra
5dcfea0a82 💚 Fix TextEditorPresenter specs 2015-09-29 16:11:59 +02:00
Antonio Scandurra
5270a1da1c Use LinesYardstick in pixelPositionForScreenPosition 2015-09-29 15:44:05 +02:00
Antonio Scandurra
e6a72b794c Temporarily disable caching from yardstick
This will enable us to avoid worrying about cache invalidation while integrating
`LinesYardstick` into `TextEditorPresenter`.
2015-09-29 15:16:51 +02:00
Antonio Scandurra
40e5f264c5 Pass LinesYardstick to TextEditorPresenter 2015-09-29 11:47:46 +02:00
Antonio Scandurra
b481250757 Always render the longest screen row 2015-09-29 11:41:44 +02:00
Antonio Scandurra
a8bb011f89 Split presenter state in pre/post measurement 2015-09-29 11:26:11 +02:00
Antonio Scandurra
4386910e59 Decouple pending logical scroll positions 2015-09-29 10:49:28 +02:00
Antonio Scandurra
49577313e4 Remove yardstick to start with a clean slate 2015-09-29 10:25:54 +02:00
Antonio Scandurra
a49fe3140f Merge branch 'master' into as-double-reflow-measurements 2015-09-29 09:09:54 +02:00
Thomas Johansen
6166c81e4c Merge pull request #8972 from atom/tj-fix-deprecated-reference-in-docs
Update reference to deprecated method Project::getRepo
2015-09-29 08:41:15 +02:00
Antonio Scandurra
f877f3695d Revert "Temporarily un-deprecate TextEditor methods"
This reverts commit 8fb4e887df.
2015-09-29 08:25:51 +02:00
Antonio Scandurra
e648d880ed Manually set rows per page in the model 2015-09-29 08:24:28 +02:00
Max Brunsfeld
d55398b77b Use key-path-helpers module instead of underscore-plus 2015-09-28 17:27:15 -07:00
Max Brunsfeld
8fb4e887df Temporarily un-deprecate TextEditor methods 2015-09-28 10:30:01 -07:00
Antonio Scandurra
6f7b98178c Fix linting errors 2015-09-28 15:40:43 +02:00
Antonio Scandurra
3ad9bb3d21 Fix typo on TextEditorElement ::getWidth/::getHeight 2015-09-28 14:14:23 +02:00
Thomas Johansen
efda18ae73 📝 Update reference to deprecated method
GitRepository class documentation references deprecated method
Project::getRepo. This resolves that by instead using the replacement
Project::getRepositories.

Although, it seems as if that will be removed in v2.0, so perhaps we should
update this to instead using the async Project::getDirectories method, coupled
with Project::repositoryForDirectory?

/cc @atom/feedback

Fixes #8971
2015-09-28 13:34:36 +02:00
Antonio Scandurra
47b6f043e9 Merge branch 'master' into as-double-reflow-measurements
# Conflicts:
#	src/text-editor-presenter.coffee
2015-09-28 11:19:56 +02:00
Antonio Scandurra
1e4a1723c9 🎨 Some refactoring before updating from master 2015-09-28 11:05:43 +02:00
Antonio Scandurra
575d79acce Merge pull request #8604 from lpommers/pressing-esc-on-multiple-cursors-returns-to-original-cursor-or-selection
Pressing esc on multiple cursors returns to original cursor or selection
2015-09-28 10:01:42 +02:00
Wliu
7c0a656036 🔥 Remove hardcoded Makefile tab behavior 2015-09-26 15:54:51 -04:00
Antonio Scandurra
f17767a2bc Merge pull request #8905 from atom/as-display-buffer-logical-coordinates
Use logical coordinates in DisplayBuffer
2015-09-26 18:05:10 +02:00
Max Brunsfeld
ff8203460a Merge branch 'master' into mb-adjust-app-name-by-channel
Conflicts:
	build/Gruntfile.coffee
2015-09-25 14:47:58 -07:00
Antonio Scandurra
74deceb037 🎨 2015-09-25 18:03:07 +02:00
Antonio Scandurra
7316eb4d52 🔥 Drop deprecated methods from the public API 2015-09-25 17:27:14 +02:00
Antonio Scandurra
7cd318f55a 🔥 2015-09-25 13:28:18 +02:00
Antonio Scandurra
a0277728d6 🔥 Remove deprecated methods 2015-09-25 12:58:23 +02:00
Antonio Scandurra
bded7e4fb0 💚 2015-09-25 12:04:25 +02:00
Antonio Scandurra
051baebd9c Shim ::setHeight and ::getHeight to TextEditorElement 2015-09-25 11:15:41 +02:00
Antonio Scandurra
33a67ad3c9 Shim ::setWidth and ::getWidth to TextEditorElement 2015-09-25 11:05:41 +02:00
Antonio Scandurra
ce714b9852 🎨 Rename to ::onDidRequestAutoscroll 2015-09-25 10:57:09 +02:00
Antonio Scandurra
b0d70a63c6 Prevent default event for actions that won't lead to scrolling 2015-09-25 10:55:03 +02:00
Antonio Scandurra
0e72593a0c Enforce a 'last scroll wins' model for batched scrolls 2015-09-25 10:43:20 +02:00
Antonio Scandurra
d65b5d1793 Revert "Maintain scroll history"
This reverts commit 2e6bb53303.
2015-09-25 10:31:48 +02:00
Max Brunsfeld
7a0fa8ecdc Merge pull request #8897 from ssorallen/lowercase-optional
Use lowercase 'optional' keyword used by docs
2015-09-24 11:26:07 -07:00
Antonio Scandurra
2e6bb53303 Maintain scroll history 2015-09-24 16:25:58 +02:00
Antonio Scandurra
365a586466 Ensure realScroll... is up to date with scroll... 2015-09-24 15:16:40 +02:00