3 Commits
Author SHA1 Message Date
Seongjae Lee cc8a780436 Prepare 0.8.2 release 2015-09-24 21:25:23 -07:00
Seongjae Lee 431b929208 Merge pull request #33 from lexicalunit/normalize_directory
Normalize nvatom.directory so that ~/... works correctly.
2015-09-24 21:22:32 -07:00
lexicalunit 61d071c15a Normalize nvatom.directory so that ~/... works correctly. 2015-09-24 18:36:59 -05:00
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ class NotationalVelocityView extends SelectListView
@initializedAt = new Date() @initializedAt = new Date()
super super
@addClass('nvatom from-top overlay') @addClass('nvatom from-top overlay')
@rootDirectory = atom.config.get('nvatom.directory') @rootDirectory = fs.normalize(atom.config.get('nvatom.directory'))
unless fs.existsSync(@rootDirectory) unless fs.existsSync(@rootDirectory)
throw new Error("The given directory #{@rootDirectory} does not exist. " throw new Error("The given directory #{@rootDirectory} does not exist. "
+ "Set the note directory to the existing one from Settings.") + "Set the note directory to the existing one from Settings.")
+1 -1
View File
@@ -85,7 +85,7 @@ module.exports =
@autosave(paneItem) for paneItem in atom.workspace.getPaneItems() @autosave(paneItem) for paneItem in atom.workspace.getPaneItems()
ensureNoteDirectory: -> ensureNoteDirectory: ->
noteDirectory = atom.config.get('nvatom.directory') noteDirectory = fs.normalize(atom.config.get('nvatom.directory'))
packagesDirectory = path.join(process.env.ATOM_HOME, 'packages') packagesDirectory = path.join(process.env.ATOM_HOME, 'packages')
defaultNoteDirectory = path.join(packagesDirectory, 'nvatom', 'notebook') defaultNoteDirectory = path.join(packagesDirectory, 'nvatom', 'notebook')
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "nvatom", "name": "nvatom",
"main": "./lib/notational-velocity", "main": "./lib/notational-velocity",
"version": "0.8.1", "version": "0.8.2",
"private": true, "private": true,
"contributors": [ "contributors": [
"Seongjae Lee <seongjae@gmail.com>", "Seongjae Lee <seongjae@gmail.com>",