12 Commits
Author SHA1 Message Date
Seongjae Lee 956c0017e4 Prepare 0.10.1 release 2016-06-23 19:09:31 -07:00
Seongjae Lee 0dd99d805b Fix #52 to prevent spitting an error message when whitespace package is not active 2016-06-23 19:07:40 -07:00
Seongjae Lee aa641ba695 Prepare 0.10.0 release 2016-04-25 18:47:08 -07:00
Seongjae Lee 6a7e04d177 Merge pull request #48 from jonmagic/patch-1
Update docquery to 1.1.1
2016-04-25 18:43:03 -07:00
Jonathan Hoyt 5aab86660f Update docquery to 1.1.1 2016-04-24 21:49:26 -07:00
Seongjae Lee 6ec1c4c2e8 Prepare 0.9.3 release 2015-10-17 00:14:44 -07:00
Seongjae Lee f582f741ad Merge pull request #38 from xHN35RQ/master
Add Windows/Linux keymap note
2015-10-17 00:14:13 -07:00
Seongjae Lee 6fe704aad1 Prepare 0.9.2 release 2015-10-16 23:49:32 -07:00
Seongjae Lee 669839750c Fix the double padding problem in the search window 2015-10-16 23:49:20 -07:00
Nic 452c34ba36 Add Windows/Linux keymap note 2015-10-16 23:03:11 -07:00
Seongjae Lee ee5dc2a87a Prepare 0.9.1 release 2015-10-16 22:33:32 -07:00
Seongjae Lee bd7d47474c Add interlink menu item 2015-10-16 22:33:11 -07:00
4 changed files with 21 additions and 5 deletions
+9
View File
@@ -59,6 +59,15 @@ You can also override `cmd-l` if you want to keep your muscle memory from Notati
'cmd-l': 'nvatom:toggle'
```
To set Windows and Linux key binds you can add the following lines to your keymap:
```cson
'atom-workspace':
'alt-ctrl-l': 'nvatom:toggle'
'atom-workspace atom-text-editor':
'alt-ctrl-o': 'nvatom:openInterlink'
```
## Migration
v0.1.0 under published package name `notational-velocity` had a fatal bug that sets the default value of its note directory under package directory. In that case, all notes are deleted once the user updates the package, since package directory is overwritten when the user. For more information, refer [#25][6].
+6 -3
View File
@@ -10,7 +10,7 @@ class NotationalVelocityView extends SelectListView
initialize: (state) ->
@initializedAt = new Date()
super
@addClass('nvatom from-top overlay')
@addClass('nvatom')
@rootDirectory = Utility.getNoteDirectory()
unless fs.existsSync(@rootDirectory)
throw new Error("The given directory #{@rootDirectory} does not exist. "
@@ -105,9 +105,12 @@ class NotationalVelocityView extends SelectListView
if filePath
atom.workspace.open(filePath).then (editor) ->
save = ->
atom.packages.deactivatePackage 'whitespace'
isWhiteSpaceActive = atom.packages.isPackageActive 'whitespace'
if isWhiteSpaceActive
atom.packages.deactivatePackage 'whitespace'
editor.save()
atom.packages.activatePackage 'whitespace'
if isWhiteSpaceActive
atom.packages.activatePackage 'whitespace'
debouncedSave = _.debounce save, 1000
editor.onDidStopChanging () ->
debouncedSave() if editor.isModified()
+4
View File
@@ -9,6 +9,10 @@
'label': 'Toggle'
'command': 'nvatom:toggle'
}
{
'label': 'Open Interlink'
'command': 'nvatom:openInterlink'
}
]
]
}
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "nvatom",
"main": "./lib/notational-velocity",
"version": "0.9.0",
"version": "0.10.1",
"private": true,
"contributors": [
"Seongjae Lee <seongjae@gmail.com>",
@@ -28,7 +28,7 @@
"dependencies": {
"atom-space-pen-views": "^2.0.3",
"chokidar": "^1.0.5",
"docquery": "^1.1.0",
"docquery": "^1.1.1",
"fs-plus": "2.x",
"underscore-plus": "^1.6.6"
},