Max Brunsfeld
d36c102ca0
Don't scroll in unfoldAll if there were no folds
2018-04-25 12:57:59 -07:00
Ash Wilson
a0c68ec70b
👕 restore missing break
2018-04-12 14:43:13 -04:00
Ash Wilson
48a622cc74
Increment the version of the readOnly serialization key
2018-04-12 14:23:17 -04:00
Ash Wilson
4e9544583b
Can't use the same name for the property and method
2018-04-12 14:07:17 -04:00
Ash Wilson
1def646e09
Return the property we're actually setting
2018-04-12 13:35:30 -04:00
Ash Wilson
0a48c3cece
Separate TextEditor keyboard enablement from readOnly state
2018-04-12 11:50:11 -04:00
Jason Rudolph
72b664dc88
📝 Document deprecation for undo option
...
Refs #16956
2018-04-05 19:55:05 -04:00
Ash Wilson
ebb7647903
Mutation methods are no-ops in production. Throw in dev or spec mode
2018-03-21 14:25:50 -04:00
Ash Wilson
8fee5f8fb2
Merge remote-tracking branch 'origin/master' into aw/no-really-read-only
2018-03-21 11:55:52 -04:00
Ash Wilson
d405039581
Pass {bypassReadOnly} to selection.cut()
2018-03-21 11:53:36 -04:00
Ash Wilson
56a3f1bc41
Fill in missing ensureWritable() calls caught by the specs
2018-03-21 09:29:36 -04:00
t9md
b35cfaed20
Pass selectionsMarkerLayer on transact, undo and redo
...
To restore selections of change initiated editor on undo/redo.
2018-03-21 14:25:59 +09:00
Ash Wilson
1f866bd592
Add options.bypassReadOnly on methods that modify the underlying Buffer
2018-03-20 16:38:15 -04:00
Ash Wilson
08ca84e587
📝 Convert code samples to js
2018-03-20 09:37:47 -04:00
Max Brunsfeld
2100f90cf4
Provide a default scope descriptor if language mode doesn't provide them
2018-02-21 14:55:58 -08:00
Wliu
1e1884ef27
📝
...
[ci skip]
2018-01-17 18:03:48 -05:00
Max Brunsfeld
6998c2df8c
Merge branch 'master' into mb-tree-sitter-parsers
2018-01-03 14:53:06 -08:00
Max Brunsfeld
733d6381cc
Fix handling of {undo: 'skip'} in TextEditor.insertText
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2018-01-03 13:00:53 -08:00
Max Brunsfeld
aed6248b7b
Merge branch 'master' into mb-tree-sitter-parsers
2017-12-29 16:21:54 -08:00
Max Brunsfeld
0b6e994ac6
Merge branch 'master' into mb-tree-sitter-parsers
2017-12-27 12:35:51 -08:00
Ford Hurley
b5189e4e4a
Delint
2017-12-27 15:16:13 -05:00
Ford Hurley
f96a0d922e
Ensure that new editors get unique ids
...
This restores the behavior from when TextEditor was written in
coffeescript, and extended the Model class.
2017-12-27 13:42:40 -05:00
Mark Lee
2c2d9597a7
💚 remove trailing whitespace from text editor docs
2017-12-24 12:10:29 -08:00
Wliu
4ed59b3ee7
📝 Update TextEditor::scopeDescriptorForBufferPosition docs
...
[ci skip]
2017-12-21 21:20:31 -05:00
Max Brunsfeld
f4fa7f910e
Merge branch 'master' into mb-tree-sitter-parsers
2017-12-15 09:45:21 -08:00
Damien Guard
ca53cf9ec1
Remove the texteditor isModified/isReadOnly handling intended for unsavable edit buffers as causes issues with vim-mode-plus
2017-12-13 09:17:30 -08:00
Max Brunsfeld
f712de65d0
Fix nesting level calculation for children of partially-folded nodes
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2017-12-07 15:30:48 -08:00
Max Brunsfeld
725d7db7ae
Merge branch 'master' into mb-tree-sitter-parsers
2017-12-06 14:56:09 -08:00
Katrina Uychaco
b3cee41f28
Merge remote-tracking branch 'origin/master' into ku-add-readonly-editor-attribute
2017-12-05 14:02:39 -08:00
Damien Guard
70e773fa7b
Ensure read-only text editors are not considered 'modified'. Also clear read-only flag on successful save.
2017-12-04 13:12:08 -08:00
Justin Ratner
d4dd08da22
Use buildIndentString method instead of hard-coding spaces
2017-12-04 12:51:01 -07:00
Max Brunsfeld
203c38ca45
Add select-{larger,smaller}-syntax-node commands
2017-11-30 15:17:14 -08:00
Max Brunsfeld
273d708a48
Add preference for using Tree-sitter parsers
2017-11-30 14:21:53 -08:00
Katrina Uychaco
aeb9af63df
Store readOnly state on the TextEditor model
2017-11-28 21:14:40 -08:00
Max Brunsfeld
607ed74e7b
Rename TokenizedBuffer to TextMateLanguageMode
2017-11-28 16:57:06 -08:00
Max Brunsfeld
61ac366491
Replace TokenizedBuffer.setVisible with simpler .startTokenizing
...
We will still wait to tokenize a buffer until it is visible in *some*
tab, but we no longer enable and disable tokenization as different
editors become visible.
2017-11-28 12:12:40 -08:00
Max Brunsfeld
d1468fddd9
Implement .setGrammar in terms of .setLanguageMode
2017-11-22 16:27:29 -08:00
Max Brunsfeld
59ed55e898
Don't deprecate old TextEditorRegistry methods yet
2017-11-22 16:11:39 -08:00
Max Brunsfeld
cbdae916dd
Don't deprecate setGrammar yet
2017-11-22 11:18:09 -08:00
Max Brunsfeld
bd4cc42daf
Set the visible state on newly-assigned language modes
2017-11-22 09:35:39 -08:00
Max Brunsfeld
19aeabf312
Set the language mode when constructing a TextEditor w/ no buffer
2017-11-21 11:04:51 -08:00
Max Brunsfeld
aa1f5dde83
Fix TextEditor tests
2017-11-20 16:49:56 -08:00
Max Brunsfeld
8a52fd1237
Get TokenizedBuffer tests passing
2017-11-20 13:33:09 -08:00
Max Brunsfeld
503d239bc3
Make the language mode the source of nonWordCharacters
2017-11-20 09:48:00 -08:00
Nathan Sobo
ad1328db5a
Revert "Merge pull request #16092 from atom/autoscroll-after-fold-or-unfold"
...
This reverts commit 6227ecebed , reversing
changes made to 311055c575 .
2017-11-14 12:17:50 -07:00
Max Brunsfeld
de27d4e0dc
Pass tabLength to getFoldableRangeContainingPoint
2017-11-06 17:18:53 -08:00
Max Brunsfeld
70cca84599
Pass tabLength to suggestedIndent methods for now
2017-11-06 17:18:53 -08:00
Max Brunsfeld
fe6b385c97
Move largeFileMode logic to TokenizedBuffer
2017-11-06 17:07:23 -08:00
Max Brunsfeld
3d36455885
Make getNonWordCharacters take a position
2017-11-06 17:07:23 -08:00
Max Brunsfeld
17c90ea464
Serialize text editors' tab lenghts
2017-11-06 09:37:03 -08:00