Scope editor.tabLength

This commit is contained in:
Ben Ogle
2014-10-03 15:48:49 -07:00
parent 416898e278
commit 339cb02269
4 changed files with 34 additions and 18 deletions

View File

@@ -2173,12 +2173,16 @@ class TextEditor extends Model
# Essential: Get the on-screen length of tab characters.
#
# Returns a {Number}.
getTabLength: -> @displayBuffer.getTabLength()
# Essential: Set the on-screen length of tab characters.
# * `scopeDescriptor` (optional) {Array} of {String}s.
#
# * `tabLength` {Number} length of a single tab
# Returns a {Number}.
getTabLength: (scopeDescriptor) -> @displayBuffer.getTabLength(scopeDescriptor)
# Essential: Set the on-screen length of tab characters. Setting this to a
# {Number} This will override the `editor.tabLength` setting.
#
# * `tabLength` {Number} length of a single tab. Setting to `null` will
# fallback to using the `editor.tabLength` config setting
setTabLength: (tabLength) -> @displayBuffer.setTabLength(tabLength)
# Extended: Determine if the buffer uses hard or soft tabs.