mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Snippets matching the cursor's word prefix are inserted on 'tab' events
This commit is contained in:
@@ -32,6 +32,12 @@ class Buffer
|
||||
getPath: ->
|
||||
@path
|
||||
|
||||
getExtension: ->
|
||||
if @getPath()
|
||||
@getPath().split('/').pop().split('.').pop()
|
||||
else
|
||||
null
|
||||
|
||||
setPath: (path) ->
|
||||
@path = path
|
||||
@trigger "path-change", this
|
||||
|
||||
Reference in New Issue
Block a user