Commit Graph

68 Commits

Author SHA1 Message Date
Linus Eriksson
0e2501d6e4 Rename all the things 2018-10-18 17:48:54 +02:00
Linus Eriksson
67fd0e6349 Add a command to log the syntax tree 2018-10-17 18:09:26 +02:00
Max Brunsfeld
d937f14265 Fix off-by-one error that was masked by TextMateLanguageMode
TextMateLanguageMode.isRowCommented would return `undefined` instead of 
`false` for out-of-bounds rows.
2018-08-24 09:34:58 -07:00
Ash Wilson
291bf4d835 Pass maxDigits to labelFn 2018-07-24 12:27:33 -04:00
Ash Wilson
fdf5d50196 Support custom onMouseDown and onMouseMove event handlers 2018-07-24 12:20:30 -04:00
Ash Wilson
c064c87188 Add a custom CSS class to the Gutter's root element 2018-07-24 10:52:50 -04:00
Ash Wilson
6880ac9ff6 Missed a "kind" 2018-07-24 10:03:03 -04:00
Ash Wilson
795c3b27aa Use type instead of kind 2018-07-24 09:53:14 -04:00
Ash Wilson
e832c0b8dd Support multiple kind: line-number gutters 2018-07-24 09:38:11 -04:00
Ash Wilson
dbace171df Add a kind property to Gutters 2018-07-24 09:37:23 -04:00
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