Ben Ogle
1544c117a2
Add logic that uses the editor.tabType setting
2015-08-12 17:11:12 -07: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
Luke Pommersheim
5822eb11f1
function that returns the first matched Cursor at a given screen position Point if it exists in that location
2015-06-11 13:02:14 +02:00
Jesse Grosjean
1dbfd0b5ac
Rename to getSaveDialogOptions and document in TextEditor
2015-06-08 16:20:53 -04:00
Devon Carew
786f3399ad
Update text-editor.coffee
...
Fix a type in `src/text-editor.coffee` (`adter` => `after`).
2015-06-06 22:17:14 -07:00
Nathan Sobo
de508db9b2
Implement basic large file mode for editor
...
* Don’t tokenize
* Don’t build metadata to support folds and soft wraps
Remaining issues:
* Max line length is hard coded
* Foldable indicators should be disabled
* Folding via API should be disallowed
2015-06-05 02:25:57 +02:00
Max Brunsfeld
f5895d8b0b
presenter: use 'markers-updated' event for state updates
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2015-06-03 17:58:44 -07:00
Max Brunsfeld
76c696f1a2
Merge branch 'master' into mb-optimize-marker-observation
...
Conflicts:
src/text-editor-component.coffee
src/text-editor-presenter.coffee
2015-06-03 09:12:07 -07:00
Kevin Sawicki
34591d3542
Catch read errors during deserialization
...
Prevents Atom from failing to open because of a read error with a
serialized editor.
2015-06-01 17:54:43 -07:00
Max Brunsfeld
6f553f234c
Add TextEditor::observeMarkers, use it in presenter
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2015-05-29 17:21:23 -07:00
Max Brunsfeld
9e3c2d093b
Avoid double transaction when typing
2015-05-26 17:09:59 -07:00
Nathan Sobo
2379b3803f
Revert "Revert "Merge pull request #6757 from atom/ns-less-memory-for-tokens""
...
This reverts commit 7cb0bc3bc2 .
2015-05-21 19:56:52 +02:00
Nathan Sobo
7cb0bc3bc2
Revert "Merge pull request #6757 from atom/ns-less-memory-for-tokens"
...
This reverts commit 0cd1f110b5 , reversing
changes made to d75d202d33 .
Conflicts:
package.json
2015-05-21 16:25:23 +02:00
Nathan Sobo
e694b18ae2
Merge branch 'master' into ns-less-memory-for-tokens
...
Conflicts:
spec/tokenized-buffer-spec.coffee
src/tokenized-buffer.coffee
2015-05-14 18:55:16 +02:00
Nathan Sobo
27b30303e1
Avoid tokens shim in isBufferRowCommented
2015-05-14 17:39:35 +02:00
Max Brunsfeld
19d905606b
Avoid double computation of screen lines when opening files
...
Previously, instantiating a TextEditor would always compute compute
screen lines twice: once when the DisplayBuffer was instantiated,
and once when the 'invisibles' property was set on the DisplayBuffer.
2015-05-13 19:59:25 -07:00
Lee Dohm
08a615eec3
Fix up docs with Extended tag and rewording
2015-04-29 18:40:16 -07:00
CaptSaltyJack
a8283c3c9b
Added delete-to-next/previous-word-boundary
...
This is better behavior for alt-del/backspace operations, is less
"greedy" and doesn't eat up excess characters.
Also set default key mappings to these, feel free to trash my changes
to keymaps/darwin.cson. Though I do feel this should be default
behavior, personally.
2015-04-29 16:31:07 -07:00
Nathan Sobo
d7045c3cc8
Make TextEditor params object optional
2015-04-28 20:05:24 -06:00
Jess Lin
df070e9f1f
[Gutter] Add back includeDeprecatedAPIs gate on gutter type decorations
2015-04-22 11:10:50 -07:00
Jess Lin
09d1b977de
[Gutter] Convert ! to 'not', && to 'and'
2015-04-22 07:28:59 -07:00
Jess Lin
cc89f972dc
[Gutter][style] Add parentheses to some method calls for readability
2015-04-22 07:28:57 -07:00
Jess Lin
ee7625249f
[Gutter] Create event subscription methods for gutter changes
2015-04-22 07:28:57 -07:00
Jess Lin
b361e1719c
[Gutter] Add decorateMarker method to Gutter model
2015-04-22 07:28:57 -07:00
Jess Lin
58d6712b0e
[Gutter] Augment Decoration to discern the line-number gutter from custom gutters
2015-04-22 07:28:57 -07:00
Jess Lin
eb321a64c1
[Gutter] Create a line-numbers Gutter on each TextEditor
2015-04-22 07:28:56 -07:00
Jess Lin
20d3c07bf5
[Gutter] Add add/get Gutter methods to TextEditor
2015-04-22 07:28:56 -07:00
Jess Lin
fccc9ebee4
[Gutter] Rename current references to 'Gutter' -> 'LineNumberGutter'
2015-04-22 07:28:56 -07:00
vvakame
d02a67f5bb
📝 improves document consistency
2015-04-19 11:39:19 +09:00
Kevin Sawicki
4160a8c239
Merge pull request #6230 from mnquintana/coffeelint-plus
...
Lint for more styleguide errors
2015-04-08 12:07:23 -07:00
Kevin Sawicki
4b764f4a59
Move emissary require to deprecation block
2015-04-07 14:50:36 -07:00
Antonio Scandurra
cbf499243e
Use screen ranges consistently
2015-04-07 18:08:51 +02:00
Antonio Scandurra
5e5acb7432
🎨 Rename to TextEditor#mergeSelectionsOnSameRows
...
* 🔥 Delete `Selection#intersectsByRowWith`
2015-04-07 12:25:15 +02:00