【发布时间】:2016-07-14 15:49:12
【问题描述】:
我使用远程同步包,我想要的是在我打开它时自动下载任何文件。理论上使用'remote-sync:download-file'命令应该可以解决问题,但我不确定如何在init.coffee中使用它,我尝试了以下但没有任何反应,所以我想我做错了什么:
atom.workspace.observeTextEditors (editor) ->
atom.commands.dispatch(editor, 'remote-sync:download-file')
有人有什么建议吗?
【问题讨论】:
标签: coffeescript init atom-editor