mirror of
https://github.com/wassname/nvatom.git
synced 2026-09-10 12:21:11 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
956c0017e4 | ||
|
|
0dd99d805b | ||
|
|
aa641ba695 | ||
|
|
6a7e04d177 | ||
|
|
5aab86660f | ||
|
|
6ec1c4c2e8 | ||
|
|
f582f741ad | ||
|
|
6fe704aad1 | ||
|
|
669839750c | ||
|
|
452c34ba36 | ||
|
|
ee5dc2a87a | ||
|
|
bd7d47474c |
@@ -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].
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -9,6 +9,10 @@
|
||||
'label': 'Toggle'
|
||||
'command': 'nvatom:toggle'
|
||||
}
|
||||
{
|
||||
'label': 'Open Interlink'
|
||||
'command': 'nvatom:openInterlink'
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
+2
-2
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user