3 Commits
Author SHA1 Message Date
Seongjae Lee 1f005a3025 Prepare 0.11.0 release 2016-06-23 22:43:51 -07:00
Seongjae Lee 2cbf6a63d7 Update changelog 2016-06-23 22:43:25 -07:00
Seongjae Lee 3c36f51fe6 Add an option to enable/disable autosave, resolving #50
It would be more efficient if we can subscribe/unsubscribe autosave whenver this parameter is changed, but I don't think the current implementation would be that expansive.
2016-06-23 22:38:00 -07:00
3 changed files with 12 additions and 2 deletions
+4
View File
@@ -1,3 +1,7 @@
## 0.11.0
- Make autosave a selectable feature
- Fix the bug that shows an error message on save when whitespace package is disabled
## 0.9.0
- Add an interlink feature
+7 -1
View File
@@ -23,7 +23,11 @@ module.exports =
description: 'Lunr pipeline preprocesses query to make search faster. However, it will skip searching some of stop words such as "an" or "be".'
type: 'boolean'
default: true
enableAutosave:
title: 'Enable Autosave'
description: 'Enable saving the document automatically whenever the user leaves the window or change the tab.'
type: 'boolean'
default: true
activate: (state) ->
@rootDirectory = @ensureNoteDirectory()
@@ -64,6 +68,7 @@ module.exports =
@notationalVelocityView
autosave: (paneItem) ->
return unless atom.config.get('nvatom.enableAutosave')
return unless paneItem?.getURI?()?
return unless paneItem?.isModified?()
uri = paneItem.getURI()
@@ -81,6 +86,7 @@ module.exports =
return true
autosaveAll: ->
return unless atom.config.get('nvatom.enableAutosave')
@autosave(paneItem) for paneItem in atom.workspace.getPaneItems()
ensureNoteDirectory: ->
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "nvatom",
"main": "./lib/notational-velocity",
"version": "0.10.1",
"version": "0.11.0",
"private": true,
"contributors": [
"Seongjae Lee <seongjae@gmail.com>",