Seongjae Lee
7e12c57f0b
Rename startWatcher to initWatcher to match initSearchIndex
2016-07-05 01:07:03 -07:00
Seongjae Lee
a73b308639
Fix a bug that throwing an error when enableLunrPipeline is off
...
Also, enableLunrPipeline option should match on restoring lunr.
2016-07-05 01:05:42 -07:00
Seongjae Lee
4eb6ada48a
Fix 54, uncaught error: cannot find module 'docquery'
2016-07-03 22:15:07 -07:00
Seongjae Lee
31a2b6a66e
Remove unnecessary code from note-cache.coffee
2016-07-03 11:06:53 -07:00
Seongjae Lee
68c8b47ffb
Fix a note-watcher error during deactivation
2016-07-03 10:44:32 -07:00
Seongjae Lee
b22d94450c
Use note watcher's save/load functionality
2016-07-03 01:31:40 -07:00
Seongjae Lee
f0b1fcd075
Replace docquery to note-watcher, which supports lunr search index loading
...
NoteWatcher holds NoteCache, which caches recent notes and file modified time to help search index recovery.
2016-07-02 23:20:41 -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
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
669839750c
Fix the double padding problem in the search window
2015-10-16 23:49:20 -07:00
Seongjae Lee
2d2a070d1e
Fix a bug that utility.isNote does not handle symlinks properly
2015-10-07 07:55:36 -07:00
Seongjae Lee
6ae37437be
Load nvatom grammar on atom
2015-09-28 21:42:23 -07:00
Seongjae Lee
51f769a017
Apply the interlink extended grammar only on valid notes
...
To do so, we need to activate the package on Atom startup.
2015-09-28 01:14:39 -07:00
Seongjae Lee
ca7c14e3b7
Rename notelink to interlink
2015-09-27 10:45:51 -07:00
Seongjae Lee
c5eca919ed
Add tests for notelinks
2015-09-27 10:39:03 -07:00
Seongjae Lee
6c55f58774
Fix uncaught reference error for not including utility
2015-09-26 07:52:03 -07:00
Seongjae Lee
9c5c4e43da
Add interlink highlight and jump features
2015-09-26 00:16:36 -07:00
lexicalunit
61d071c15a
Normalize nvatom.directory so that ~/... works correctly.
2015-09-24 18:36:59 -05:00
Seongjae Lee
0fffc6a6b1
Avoid using regexp for searching title
...
Fixes #28 .
2015-09-16 19:56:00 -07:00
Seongjae Lee
547617f485
Refactor code based on CoffeeScript style guide
...
https://github.com/polarmobile/coffeescript-style-guide
2015-09-12 12:14:56 -07:00
Seongjae Lee
a31f490a70
Fix a bug on warning messages
...
Ruby-style string interpolation is only with double-quoted strings.
2015-09-12 10:49:44 -07:00
Seongjae Lee
27f2a5bb8d
Delete an empty note when closing a pane
...
Close #18 . This is against nvALT, but I think this is more intuitive way.
2015-09-12 10:47:29 -07:00
Seongjae Lee
5e4345f719
Make autosave also consider nvatom.extensions
2015-09-12 10:16:52 -07:00
Seongjae Lee
bd19c270b3
Support other extensions than ".md"
...
Close #13 .
2015-09-12 01:58:59 -07:00
Seongjae Lee
a3f5d445c0
Make lunr pipeline feature optionable
...
If we have a note "Atom", and if the user types "a" or "at", then lunr pipeline ignores searching them because they are stop words. However, turning off this feature might not be a good idea when we have tons of body texts. So we turn it on as a default, but provide a way to turn it off as an option.
2015-09-12 01:04:11 -07:00
Seongjae Lee
abb7339a6e
Improve autoselect/autocomplete logic
...
Say we have two notes "Mark" and "Markdown". When the user type "Markd", then it will autocomplete to "Markd[own]". Say the user presses backspace key twice to make it to "Mark". In this case, we want to autoselect "Mark".
2015-09-12 00:54:56 -07:00
Seongjae Lee
4ddc133920
Refactor schedulePopulateList
2015-09-12 00:42:11 -07:00
Seongjae Lee
bca1646f8f
Refactor filter
2015-09-12 00:40:21 -07:00
Seongjae Lee
40e785ef57
Remove unnessary whitespaces
...
Refer https://github.com/polarmobile/coffeescript-style-guide#whitespace-in-expressions-and-statements .
2015-09-11 22:51:03 -07:00
Seongjae Lee
273d506f38
Make the searching query to be the non-selected text, not the full text
...
For example, if we have two notes "Car" and "Care", when we type "Ca", then it automatically fills "Care" and drops "Car". (Assume "Care" comes ahead of "Car"). However, we still want to search with "Ca".
2015-09-11 22:46:06 -07:00
Seongjae Lee
09d0efc06f
Make the first found item to be automatically selected
...
This is a regression caused by docquery integration (56821bccbc ). indexof always returns -1. Since the selected item is always the first filtered item, we can safely set it to 1.
2015-09-11 22:43:09 -07:00
Seongjae Lee
bdf384f158
Fix #26 causing DocQuery loading error on case sensitive OS
2015-09-11 14:05:57 -07:00
Seongjae Lee
1e1aa06e3c
Remove debug code
2015-09-10 23:56:17 -07:00
Seongjae Lee
6c9752ae25
Rename notational-velocity to nvatom, copy notational-velocity settings/notes on initialization
2015-09-10 22:10:34 -07:00
Seongjae Lee
5f26638a78
Fix #25 so that it ensures the note directory does not nest within the package directory
2015-09-10 00:32:22 -07:00
Seongjae Lee
56821bccbc
First attempt with DocQuery
2015-08-30 21:52:20 -07:00
Seong Jae Lee
11a6c37c70
Revert to 03654ac, since the current one gives an error on OSX
2015-08-28 23:41:41 -04:00
Jonathan Hoyt
c15e7e0f96
First attempt with DocQuery
2015-05-24 23:09:50 -07:00
Seongjae Lee
3679cf0a71
Fix #14 so that it can create lowercase/uppercase notes as the user wants
2015-05-16 22:49:55 -07:00
Jonathan Hoyt
1f91f4d6b5
Remove console.log
2015-05-09 14:34:49 -07:00
Jonathan Hoyt
0f269c9216
Debounce the save so the editor doesn't slow down
2015-05-09 14:27:21 -07:00
Jonathan Hoyt
e94430630c
Save in editor.onDidStopChanging
...
Temporarily disables whitespace package so that you can create
newlines without getting them removed on autosave.
2015-05-09 13:49:47 -07:00
Seongjae Lee
49c081ed6e
Introduce autosave feature
...
Fix #8 .
2015-04-27 22:24:43 -07:00
Seongjae Lee
6e101ea804
Add a default notebook
...
Also change the default toggle shortcut to alt-cmd-l. The original Notational Velocity uses cmd-L, but it conflicts with Atom's default shortcut.
2015-04-20 23:01:08 -07:00
Seongjae Lee
56920918f3
Do not create an empty note when search panel query is empty
2015-04-20 08:11:44 -07:00
Seongjae Lee
3eb8ff93c3
Enable creating a note via the search panel
...
Fix #6 .
2015-04-19 23:50:23 -07:00
Seong Jae Lee
2b442b79e7
Use path watcher to monitor note changes. Fix #2
...
Refactor so that the note/directory parsing is done in separate classes.
2015-04-13 22:02:35 -07:00
Seong Jae Lee
1770e9fa73
Update default config by specifying its type
2015-04-12 01:34:47 -07:00
Seong Jae Lee
67a1792d1b
Fix test failures
...
1. Setting the default directory to the root makes it to read navigate files, which takes forever. Maybe we should set a timeout, but not for now.
2. We don't want to read the directory every time we toggle on. After toggle off, the package should still be there. Yes, this will consume lots of memory, but it would be like that for now.
2015-04-12 01:13:59 -07:00
Seong Jae Lee
4d1efafea1
Fix file I/O errors
2015-04-12 00:56:06 -07:00