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
535a9da946
wip
2015-09-24 11:21:26 +02:00
Antonio Scandurra
3236c8f0f8
Let's start with deprecations!
2015-09-24 10:07:38 +02:00
Antonio Scandurra
1f81c633e0
Serialize state using logical coordinates
2015-09-24 09:01:51 +02:00
Antonio Scandurra
6f120de1a6
Bring back the visible row range API
2015-09-23 18:52:04 +02:00
Antonio Scandurra
91ef57ed29
Merge branch 'master' into as-display-buffer-logical-coordinates
...
# Conflicts:
# src/display-buffer.coffee
2015-09-23 18:46:16 +02:00
Antonio Scandurra
2112b0a302
🔥 Remove unused method
2015-09-23 17:49:41 +02:00
Antonio Scandurra
b198acc995
Fix soft wrapping when editorWidthInChars is used
2015-09-23 15:34:44 +02:00
Luke Pommersheim
1b07093cff
update comments
2015-09-23 11:01:49 +02:00
Luke Pommersheim
6697693d57
Merge remote-tracking branch 'upstream/master' into move-lines-up-and-down-with-multiple-selections
2015-09-23 08:38:37 +02:00
Nathan Sobo
04bda33c10
Don’t use Serializable mixin in TextEditor
2015-09-22 10:37:15 -06:00
Nathan Sobo
e5e79983b6
Fix typo
2015-09-22 10:37:15 -06:00
Nathan Sobo
d4afe881e9
Remove delegato dependency
2015-09-22 10:37:14 -06:00
Nathan Sobo
78cdd7cb6e
🔥 Remove theorist and TextEditor deprecations
2015-09-22 10:37:13 -06:00
Antonio Scandurra
b5a59017d5
wip
2015-09-22 16:20:15 +02:00
Ivan Žužak
abf6d40cc4
Merge pull request #8828 from atom/iz-cut-to-end-of-buffer-line
...
Add command for cutting text to the end of the cursor's buffer line
2015-09-20 10:45:45 +02:00
Nathan Sobo
c7ecad5576
Remove EditorView
2015-09-18 20:48:45 -06:00
Ivan Zuzak
7e1a295f07
Add method for cutting text to the end of the buffer line
2015-09-17 19:34:53 +02:00
Luke Pommersheim
7fa73d7396
fix for "make one selection to move down if the start row matches the next's end row"
2015-09-08 15:00:05 +02:00
Luke Pommersheim
e14b59ab43
fix for "bug that causes moveLineUp to move the wrong selections"
2015-09-08 14:59:44 +02:00
Luke Pommersheim
9cd2c111c4
bug that causes moveLineUp to move the wrong selections
2015-09-08 14:27:36 +02:00
Nathan Sobo
698e414bfb
Update selection and cursor state atomically before emitting any events
...
This ensures we correctly restore the last cursor when handling a cursor
destruction event. It fixes an exception that occurred when undoing
after splitting an editor.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com >
2015-09-02 12:20:30 -06:00
Luke Pommersheim
92881e64b3
Merge remote-tracking branch 'upstream/master' into move-lines-up-and-down-with-multiple-selections
2015-09-02 09:30:42 +02:00
Luke Pommersheim
193fd14e79
reduce multiple cursors/selections to the first, original, cursor/selection
2015-08-31 20:21:43 +02:00
Luke Pommersheim
57c17f8e56
set autoscroll to false when setting new buffer ranges
2015-08-30 11:10:24 +02:00
Nathan Sobo
e91241be52
Revert "Remove arguments subheading"
...
This reverts commit ba7af0b9cd .
2015-08-29 13:00:08 -06:00
Nathan Sobo
c0b4181b47
Merge pull request #8558 from atom/ns-simplify-page-up-down
...
Simplify page-up/page-down
2015-08-28 14:55:24 -06:00
Nathan Sobo
c7cc404c42
Simplify page-up/page-down
...
We simply move the cursor up or down by the number of whole lines that
fit on screen, allowing autoscroll to adjust the scroll position. This
causes there to be a margin under the location to which we move the
cursor, but I think it’s better to provide context and keep the
autoscroll experience consistent when using the keyboard.
2015-08-28 13:39:14 -06:00
Nathan Sobo
567199a3d2
Autoscroll the editor as a quadratic function of mouse cursor overshoot
...
This was a spike and still needs tests, but it’s going to be way better.
2015-08-28 12:17:59 -06:00
Nathan Sobo
0a87dad747
🎨
2015-08-28 09:46:18 -06:00
Nathan Sobo
bd4f5ba544
Replace Public with Essential
...
Still not sure about the value of this distinction, but let’s blend in.
2015-08-28 09:39:24 -06:00
Nathan Sobo
ba7af0b9cd
Remove arguments subheading
2015-08-28 09:39:03 -06:00
Maxim Sokolov
6076cef1f2
📝 Remove gutterName argument from TextEditor::decorateMarker
...
Decorations of `type: 'gutter'` is deprecated. Use `Gutter::decorateMarker` to
create decoration for custom gutter.
2015-08-28 16:54:15 +03:00
Maxim Sokolov
1f259a5583
📝 Update docs for TextEditor::decorateMarker
...
Decorations of `type: 'gutter'` have been renamed to `type: 'line-number'`
2015-08-28 16:54:15 +03:00
Maxim Sokolov
559251a1c8
🎨 Add section for Gutter methods
...
Need for generated docs
2015-08-28 16:54:15 +03:00
Maxim Sokolov
5f1c227feb
📝 Make Gutter event methods essential
2015-08-28 16:54:14 +03:00
Maxim Sokolov
fac979f71d
📝 Update docs for TextEditor::addGutter
...
TextEditor::addGutter should be called directly.
2015-08-28 16:54:14 +03:00
Luke Pommersheim
2b7d220dbc
scroll to top-most/bottom-most buffer position
2015-08-28 11:24:57 +02:00
Luke Pommersheim
3a5abef3af
bug fix: go through the selections in reverse order
2015-08-28 10:13:31 +02:00
Nathan Sobo
4bbc1d806e
Create a selection automatically as needed if the last one was destroyed
...
Fixes atom/bracket-matcher#102
2015-08-26 17:59:33 -06:00
Max Brunsfeld
f57da0c6f8
Suppress merging selections during undo/redo
...
Now, during undo/redo overlapping selections will be temporarily
created as markers are created via snapshots. Old selections will
immediately be destroyed though, since undo/redo now completely
replace all historied markers w/ those in the snapshot, so there
is no need to merge selections.
2015-08-25 10:51:45 -07:00
Luke Pommersheim
d03db928f8
📝 add preserveFolds documentation to setSelectedBufferRange(s)
2015-08-24 18:29:21 +02:00
Luke Pommersheim
7bb8586905
now possible to always move lines down at the end of the file
2015-08-23 19:30:10 +02:00
Luke Pommersheim
b394b2c903
preserve folds when making new selections
2015-08-23 19:29:14 +02:00
Luke Pommersheim
b29f2ae5a8
removed unnecessary + operator
2015-08-23 19:29:14 +02:00
Luke Pommersheim
e74b8b6ae2
use Point as insertion and no need to post-fix newline
2015-08-23 19:29:14 +02:00
Luke Pommersheim
5b698cfa2b
update typo in comment
2015-08-23 17:50:23 +02:00
Luke Pommersheim
0de26c306a
fix folds accidentally becoming unfolded
2015-08-20 11:09:03 +02:00