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
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
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
193fd14e79
reduce multiple cursors/selections to the first, original, cursor/selection
2015-08-31 20:21:43 +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
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
Max Brunsfeld
7e197060bc
Merge pull request #8025 from lpommers/copy-selection-to-clipboard
...
Copy selection command to only write to clipboard if text selected
2015-08-18 09:25:59 -07:00
Luke Pommersheim
e96d6f50ad
🎨 newlines fix
2015-08-18 18:22:18 +02:00
Luke Pommersheim
fdb66fd4dc
change from essential to private, update comment
2015-08-18 17:06:34 +02:00
Luke Pommersheim
33abc6698c
move maintainClipboard into if block
2015-08-16 09:04:33 +02:00
Ben Ogle
4609be7912
Be defensive with grammar in usesSoftTabs()
2015-08-13 10:34:44 -07:00
Ben Ogle
4598e000f4
Remove duplicated bit
2015-08-12 17:33:02 -07:00
Ben Ogle
1b727c1862
Handle a grammar change for @softTabs
2015-08-12 17:32:05 -07:00
Ben Ogle
1192008479
Update the tab type when the setting changes
2015-08-12 17:21:53 -07:00
Ben Ogle
1544c117a2
Add logic that uses the editor.tabType setting
2015-08-12 17:11:12 -07:00
Luke Pommersheim
2655513673
CR: copyOnlySelectedText only works on selected text, no matter of cursor position
2015-08-04 10:30:59 +02:00
Luke Pommersheim
f5c8b04337
Add function that only copies selected text unless the cursor is at the beginning of the line.
2015-08-04 10:30:59 +02:00
Nathan Sobo
52e640156c
Defer selection merge until dragging completes
2015-08-03 21:43:43 -06:00
Nathan Sobo
c5bb4a27a5
Add option to make temporary file backups when saving
2015-07-29 11:19:16 -06:00
Antonio Scandurra
d46fea9d10
Emit did-insert-text on pasteText()
2015-07-28 10:38:11 +02:00
Ash Wilson
83e807bc9c
📝 Update docs for TextEditor.decorateMarker
2015-07-27 11:38:01 -04:00
Max Brunsfeld
a60f330628
Default maintainHistory marker option to false
2015-07-21 13:27:05 -07:00
Nathan Sobo
cd8d158a00
When splitting selection into lines, destroy original selection last
...
This avoids an assertion failure due to destroying the last selection,
so we can reduce the noise and find code paths that destroy it
incorrectly.
2015-07-17 13:16:12 -07:00
Joe Fitzgerald
b3b046aa66
Add activationHooks To package.json
...
- Trigger the `{grammar-package-name}:grammar-used` hook when grammar is set for tokenized-buffer
2015-07-09 02:33:17 -04:00
Nathan Sobo
de8d1d95d8
Add assertion about removing the last selection
2015-07-09 00:23:11 -05:00
Max Brunsfeld
8c3400c084
Emit will-insert-text event when pasting
2015-07-06 18:29:44 -07:00
Nathan Sobo
e472830063
Merge remote-tracking branch 'origin/master' into dsandstrom-add-subword-cursors-4
2015-06-30 22:55:40 -05:00
Nathan Sobo
83bddaf34e
Merge branch 'master' into add-subword-cursors-4
...
Conflicts:
spec/text-editor-spec.coffee
2015-06-30 15:43:33 -05:00
Nathan Sobo
82e25872b2
Handle indentation with mixed tabs and spaces
2015-06-30 15:31:11 -05:00
Tony Han
776eee2413
📝 fix doc for TextEditor setText
2015-06-20 17:58:31 +08:00
Max Brunsfeld
c43233892b
Merge pull request #7225 from lpommers/add-remove-cursor-when-there-are-multiple-cursors-if-cmd-clicking-on-it
...
Add remove cursor when there are multiple cursors and cmd clicking on it
2015-06-12 10:41:17 -07:00
Luke Pommersheim
9f0f4c0530
refactor getCursorAtScreenPosition to avoid temporary array
2015-06-12 08:38:25 +02:00
Luke Pommersheim
3b3dc83a38
📝 updating docs for getCursorAtScreenPosition - can also take an {Array}
2015-06-12 08:36:44 +02:00
Kevin Sawicki
7a6a48d7ea
Move getSaveDialogOptions near other save methods
2015-06-11 15:31:43 -07:00
Kevin Sawicki
a0778217df
Merge pull request #7145 from FoldingText/Item-provides-save-panel-options
...
Item provides save panel options
2015-06-11 15:28:24 -07:00