Giter Club home page Giter Club logo

atom-notes's Introduction

Publishing

# source env vars from 1pass
nopw "$PUSER"@"$PHOST"
./publish.sh

atom-notes's People

Contributors

dependabot[bot] avatar garthk avatar geksilla avatar jonmagic avatar lexicalunit avatar lodestone avatar robwalton avatar samuelbsource avatar seongjaelee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

atom-notes's Issues

Concurrent changes and conflicts in atom-notes

Hi, in the tutorial you recommend syncing with dropbox to share notes among multiple devices. I've done that in the past with notational velocity, and it was a source of problems to no end. Even if I was the only person editing my notes, they appeared to be edited concurrently from multiple devices and therefore multiple forked copies (conflicted copies in dropbox jargon) were created, with no support for merging them. I think this is caused by dropbox only syncing at certain intervals, say hourly, thus making concurrent updates by one person possible, or at least I have no other theory. I was wondering anyone observed this with atom-notes and if there is a better solution.

Uncaught Error: ENOENT: no such file or directory, lstat '$ATOM_HOME/atom-notes/_mdwriter.cson'

[Enter steps to reproduce:]

  1. I deleted a note file from the notes directory (the empty file kept showing up on my list of notes)
  2. The error appeared shortly after I removed the file.

Atom: 1.28.2 x64
Electron: 2.0.5
OS: Mac OS X 10.13.6
Thrown From: atom-notes package 1.19.4

Stack Trace

Uncaught Error: ENOENT: no such file or directory, lstat '/Users/rsewell/.atom/atom-notes/_mdwriter.cson'

At fs.js:1661

Error: ENOENT: no such file or directory, lstat '/Users/rsewell/.atom/atom-notes/_mdwriter.cson'
    at Proxy.realpathSync (fs.js:1661:15)
    at Proxy.fs.realpathSync (ELECTRON_ASAR.js:320:29)
    at NotesStore.removeDocument (/packages/atom-notes/lib/notes-store.js:199:20)
    at /packages/atom-notes/lib/notes-store.js:103:14
    at PathWatcher.onNativeEvents (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:533:13)
    at sub.native.onDidChange.events (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:436:64)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:27:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:156:34)
    at NSFWNativeWatcher.onEvents (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:167:24)
    at handler (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:276:18)

Commands

     -9:11 editor:consolidate-selections (input.hidden-input)
     -9:11 core:cancel (input.hidden-input)
     -9:01.9.0 application:reopen-project (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-base16-tomorrow-dark-theme.theme-one-dark-ui)
     -3:41.1.0 application:open (input.hidden-input)
  3x -2:41.3.0 core:backspace (input.hidden-input)
     -1:30.5.0 markdown-preview-plus:toggle (input.hidden-input)
     -1:11.9.0 core:select-all (input.hidden-input)
     -1:11.6.0 core:backspace (input.hidden-input)
     -1:10.8.0 core:save (input.hidden-input)
     -0:59.9.0 core:select-all (input.hidden-input)
     -0:58.9.0 core:backspace (input.hidden-input)
     -0:57.9.0 core:save (input.hidden-input)
     -0:51 editor:consolidate-selections (input.hidden-input)
     -0:51 core:cancel (input.hidden-input)

Non-Core Packages

atom-notes 1.19.4 
ftp-remote-edit 0.12.12 
markdown-preview-plus 3.3.3 
markdown-writer 2.7.4 
pandoc-convert 1.1.1 
remote-sync 4.1.8 
rest-client 1.3.1 
sync-settings 0.8.6 
wordcount 3.0.0 

Optionally allow users to use Atom Notes grammar with interlink highlighting

From @lakonis:

It might be a personal perception, but loosing the highlighting on Atom Notes main feature (interlink) doesn't seem coherent with the usage people could expect. I understand interlinks will still work the same, but for users like me linking notes massively, the hightlighting is quite precious.

I think it's worthwhile to still have the Atom Notes grammar for users who wish to use it. This should be optionally available in the package configuration.

Uncaught Error: EISDIR: illegal operation on a directory, read

I am pretty new to Atom and am using atom-notes as a replacement for NvAlt. I keep getting this error message. It happens every few minutes when working with files in my note directory. However, I have not been able to relate the failure to any particular action--it just seems to happen now and then.

I have not idea if this could be related or not, but the directory where my notes are stored is also used by DevonThink as an indexed directory, meaning that DevonThink may go out and index items in the directory when changes are made.

Any ideas?

Atom: 1.25.1 x64
Electron: 1.7.11
OS: Mac OS X 10.13.4
Thrown From: atom-notes package 1.17.1

Stack Trace

Uncaught Error: EISDIR: illegal operation on a directory, read

At fs.js:682

Error: EISDIR: illegal operation on a directory, read
    at Object.fs.readSync (fs.js:682:19)
    at tryReadSync (fs.js:480:20)
    at Proxy.fs.readFileSync (fs.js:517:19)
    at Proxy.fs.readFileSync (ELECTRON_ASAR.js:505:29)
    at createDocument (/packages/atom-notes/lib/notes-store.js:34:17)
    at /packages/atom-notes/lib/notes-store.js:82:29
    at PathWatcher.onNativeEvents (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:539:13)
    at sub.native.onDidChange.events (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:464:64)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at NativeWatcher.onEvents (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:325:24)
    at handler (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:133:13)

Commands

  3x -0:35.2.0 blur (input.hidden-input)
     -0:34.9.0 core:confirm (input.hidden-input)
  3x -0:34.9.0 blur (input.hidden-input)
     -0:33.7.0 vim-mode-plus:move-up (input.hidden-input)
  3x -0:33.2.0 vim-mode-plus:move-to-next-word (input.hidden-input)
     -0:31.4.0 vim-mode-plus:delete-right (input.hidden-input)
     -0:30.4.0 ex-mode:open (input.hidden-input)
  3x -0:30.4.0 blur (input.hidden-input)
     -0:30.1.0 core:confirm (input.hidden-input)
  3x -0:30.1.0 blur (input.hidden-input)
  3x -0:28.9.0 vim-mode-plus:move-to-previous-word (input.hidden-input)
     -0:27.2.0 vim-mode-plus:activate-characterwise-visual-mode (input.hidden-input)
     -0:26.5.0 vim-mode-plus:move-to-last-line (input.hidden-input)
     -0:23 vim-mode-plus:move-to-last-character-of-line (input.hidden-input)
     -0:19.5.0 fuzzy-finder:toggle-buffer-finder (input.hidden-input)
  8x -0:19.5.0 blur (input.hidden-input)

Non-Core Packages

atom-notes 1.17.1 
ex-mode 0.18.0 
github-web 1.1.0 
markdown-scroll-sync 2.1.2 
markdown-writer 2.7.3 
minimap 4.29.8 
monokai 0.24.0 
pen-paper-coffee-syntax 0.14.9 
textmate-multimarkdown-syntax 0.1.0 
tool-bar 1.1.7 
tool-bar-markdown-writer 0.3.1 
unity-ui 2.1.11 
vim-mode-plus 1.32.0 

Only the URI atom://atom-notes/toggle is currently supported.

When launching notes from outside atom with
open atom://atom-notes/toggle
It works, but I also get a toaster message "Only the URI atom://atom-notes/toggle is currently supported."
If instead I use:
open atom://atom-notes/toggle/preview
It works with no error. Not sure what's going on here.

Uncaught Error: ENOENT: no such file or directory, lstat '~/notes/.git/index.lock'

[Enter steps to reproduce:]

  1. Have notes (automatically) committed to a git repository
  2. Create and save a new note

Atom: 1.42.0 x64
Electron: 4.2.7
OS: Pop!_OS 19.10
Thrown From: atom-notes package 1.20.2

Stack Trace

Uncaught Error: ENOENT: no such file or directory, lstat '/home/mlncn/Projects/mlncn/notes/.git/index.lock'

At fs.js:115

Error: ENOENT: no such file or directory, lstat '/home/mlncn/Projects/mlncn/notes/.git/index.lock'
    at Proxy.realpathSync (fs.js:1435:7)
    at Proxy.fs.realpathSync (ELECTRON_ASAR.js:306:40)
    at NotesStore.addDocument (/packages/atom-notes/lib/notes-store.js:157:20)
    at /packages/atom-notes/lib/notes-store.js:99:14
    at PathWatcher.onNativeEvents (/usr/share/atom/resources/app/static/<embedded>:14:26758)
    at t.native.onDidChange.t (/usr/share/atom/resources/app/static/<embedded>:14:25494)
    at Function.simpleDispatch (/usr/share/atom/resources/app/static/<embedded>:11:1211760)
    at Emitter.emit (/usr/share/atom/resources/app/static/<embedded>:11:1213201)
    at NSFWNativeWatcher.onEvents (/usr/share/atom/resources/app/static/<embedded>:14:22740)
    at watcher.e (/usr/share/atom/resources/app/static/<embedded>:14:24389)

Commands

  3x -0:32.2.0 blur (input.hidden-input)
     -0:28.6.0 vim-mode-plus:reset-normal-mode (input.hidden-input)
     -0:28.2.0 ex-mode:open (input.hidden-input)
  3x -0:28.2.0 blur (input.hidden-input)
     -0:27.3.0 core:confirm (input.hidden-input)
  6x -0:27.3.0 blur (input.hidden-input)
     -0:23.9.0 atom-notes:toggle (input.hidden-input)
  3x -0:23.9.0 blur (input.hidden-input)
     -0:22.6.0 date:date (input.hidden-input)
  2x -0:19.6.0 core:backspace (input.hidden-input)
     -0:15.8.0 core:confirm (input.hidden-input)
  4x -0:15.7.0 blur (input.hidden-input)
     -0:15 vim-mode-plus:activate-insert-mode (input.hidden-input)
     -0:13.2.0 markdown-writer:insert-new-line (input.hidden-input)
     -0:13.2.0 editor:newline (input.hidden-input)
  2x -0:00.2.0 blur (input.hidden-input)

Non-Core Packages

atom-fuzzy-grep 0.17.2 
atom-ide-ui 0.13.0 
atom-notes 1.20.2 
atom-vim-like-tab 1.5.3 
busy-signal 2.0.1 
city-lights-syntax 1.1.8 
city-lights-ui 1.5.3 
date 2.6.0 
ex-mode 0.18.0 
file-templates 0.2.0 
github-url-resolver 0.1.1 
gitlab 0.1.3-7 
ide-css 0.3.3 
ide-html 0.6.0 
ide-json 0.2.1 
ide-php 0.7.18 
ide-python 1.5.0 
ide-yaml 0.6.0 
intentions 1.1.5 
linter 2.3.1 
linter-php 1.6.1 
linter-ui-default 1.8.1 
markdown-pdf 2.2.0 
markdown-writer 2.11.9 
open-terminal-here 2.3.2 
paste-table 0.1.0 
path-copy 0.14.0 
php-cs-fixer 4.1.1 
php-twig 4.0.0 
project-folder 1.5.0 
project-manager 3.3.8 
rst-preview-pandoc 0.1.12 
save-as-heading 1.3.0 
snippet-generator 0.3.2 
teletype 0.13.4 
tidy-tabs 0.4.0 
undo-tree 1.0.0 
vertical-tabs-plus 2.4.0 
vim-mode-plus 1.36.4 
Writer 0.1.0 

Unable to upgrade to 1.19.3

I get the following when trying to upgrade to 1.19.3, from 1.19.2.

Updating to “[email protected]” failed.Hide output…
Unable to download https://www.atom.io/api/packages/atom-notes/versions/1.19.3/tarball: 502 Bad Gateway GitHub API returned error: InternalServerError

Enhancement: Searching in notes content and not only in titles

I recently switched from vim where I had a comparable notes plugin to atom. On difference to atom-notes is that in the vim plugin I was able to not only search notes titles but also the content of notes which made searches significantly more successful across notes that are years old. Of cause a challenge regarding performance exists. However, at the moment I use the fuzzy-grep plugin to be able to this and it is not particularly slow

Uncaught YAMLException: can not read a block mapping entry; a multiline key may not be an implici...

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.23.1 x64
Electron: 1.6.15
OS: Mac OS X 10.12.6
Thrown From: atom-notes package 1.15.3

Stack Trace

Uncaught YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 25, column 15:
Think about it: all I had to do to get myself ...
^

At /Users/ygilad/.atom/packages/atom-notes/node_modules/js-yaml/lib/js-yaml/loader.js:171

YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 25, column 15:
    Think about it: all I had to do to get myself  ... 
                  ^
    at generateError (/packages/atom-notes/node_modules/js-yaml/lib/js-yaml/loader.js:165:10)
    at throwError (/packages/atom-notes/node_modules/js-yaml/lib/js-yaml/loader.js:171:9)
    at readBlockMapping (/packages/atom-notes/node_modules/js-yaml/lib/js-yaml/loader.js:1046:9)
    at composeNode (/packages/atom-notes/node_modules/js-yaml/lib/js-yaml/loader.js:1332:12)
    at readDocument (/packages/atom-notes/node_modules/js-yaml/lib/js-yaml/loader.js:1492:3)
    at loadDocuments (/packages/atom-notes/node_modules/js-yaml/lib/js-yaml/loader.js:1548:5)
    at load (/packages/atom-notes/node_modules/js-yaml/lib/js-yaml/loader.js:1569:19)
    at Object.safeLoad (/packages/atom-notes/node_modules/js-yaml/lib/js-yaml/loader.js:1591:10)
    at module.exports (/packages/atom-notes/node_modules/gray-matter/lib/parse.js:12:17)
    at parseMatter (/packages/atom-notes/node_modules/gray-matter/index.js:94:15)
    at matter (/packages/atom-notes/node_modules/gray-matter/index.js:46:10)
    at createDocument (/packages/atom-notes/lib/notes-store.js:33:14)
    at /packages/atom-notes/lib/notes-store.js:95:47)
    at emitTwo (events.js:106:13)
    at FSWatcher.emit (events.js:191:7)
    at /packages/atom-notes/node_modules/chokidar/index.js:196:15)
    at FSWatcher._emit (/packages/atom-notes/node_modules/chokidar/index.js:238:5)
    at FSWatcher.NodeFsHandler._handleFile (/packages/atom-notes/node_modules/chokidar/lib/nodefs-handler.js:275:10)
    at /packages/atom-notes/node_modules/chokidar/lib/nodefs-handler.js:473:21)
    at FSReqWrap.oncomplete (fs.js:112:15)

Commands

Non-Core Packages

atom-clock 0.1.15 
atom-notes 1.15.3 
atom-python-run 0.9.5 
python-debugger 0.2.0 
python-tools 0.6.9 
scroll-through-time 0.3.0 
which-key 0.3.3 

Uncaught TypeError: doc.keywords.join is not a function

[Enter steps to reproduce:]

  1. update to v1.15.1
  2. restart Atom with opened tabs with atom-notes

Atom: 1.22.1 x64
Electron: 1.6.15
OS: Ubuntu 16.04.3
Thrown From: atom-notes package 1.15.1

Stack Trace

Uncaught TypeError: doc.keywords.join is not a function

At /home/nicolas/.atom/packages/atom-notes/lib/notes-store.js:112

TypeError: doc.keywords.join is not a function
    at NotesStore.addDocument (/packages/atom-notes/lib/notes-store.js:112:30)
    at /packages/atom-notes/lib/notes-store.js:95:35)
    at emitTwo (events.js:106:13)
    at FSWatcher.emit (events.js:191:7)
    at /packages/atom-notes/node_modules/chokidar/index.js:196:15)
    at FSWatcher._emit (/packages/atom-notes/node_modules/chokidar/index.js:238:5)
    at FSWatcher.NodeFsHandler._handleFile (/packages/atom-notes/node_modules/chokidar/lib/nodefs-handler.js:275:10)
    at /packages/atom-notes/node_modules/chokidar/lib/nodefs-handler.js:473:21)
    at FSReqWrap.oncomplete (fs.js:112:15)

Commands

Non-Core Packages

atom-notes 1.15.1 
autocomplete-bibtex 1.1.0 
broadcast 0.4.0 
git-plus 7.10.0 
language-atom-notes 0.2.3 
language-mediawiki 2.2.0 
markdown-document 0.2.1 
markdown-folder 0.5.0 
markdown-scroll-sync 2.1.2 
markdown-toc 0.4.2 
markdown-writer 2.7.3 
nvatom 0.11.0 
pandoc-convert 1.1.1 
project-viewer 1.2.5 
spell-check-test 0.77.5 
terminal-plus 0.14.5 
tidy-markdown 3.0.1 
wordcount 2.10.4 
xml-tools 0.2.1 
Zen 0.18.0 

Missing settings and does not launch

I tried this on my work laptop this morning and it all worked OK. However, this evening on my Mac I only get the "Atom Notes Grammar" section of the Settings - I can't set the save location, for example. I also get "no match found" when I try to run "atom-notes:toggle", even after restarting Atom. Am I doing something wrong?

Recognise existing markdown notes - Feature request

Great program, kudos.

I've been keeping notes by writing markdown files. And I've set the archive folder for notes to that folder. Is there a way to search for and recognise existing notes in that folder (and subfolders)?

Toggle Atom Notes does not proceed past "Loading Notes"

When I toggle atom notes it does not display a list or allow searching. If I type in the name of an existing note and hit enter, it will open the note. If I type in the name of a non-existing note and hit enter, it will create a new note (all in the correct directory). However typing does not bring up a list of search results.

image

Notes list shows externally added files with wrong extensions and hidden files

I have the atom-ctags extension installed. This automatically creates .tags files in my notes directory which then show up in the notes view. As an experiment I also manually added files with the wrong file extension in there too and those also show up.

In the code:
notes-fs.isNote() seems to exclude these files
notes-store.setUpFileWatcher() adds all files regardless of file extension to the NotesStore

I'll make a pull request, but I'm not confident in this area of the code.

Uncaught TypeError: item.keywords.join is not a function

[Enter steps to reproduce:]

  1. just trying to list/search the atom notes with the command Atom Notes Toggle

Looks like the previous error keeps coming back.

Atom: 1.23.3 x64
Electron: 1.6.15
OS: Ubuntu 16.04.3
Thrown From: atom-notes package 1.15.5

Stack Trace

Uncaught TypeError: item.keywords.join is not a function

At ~/.atom/packages/atom-notes/lib/notes-view-list.js:112

TypeError: item.keywords.join is not a function
    at NotesViewList.elementForItem (/packages/atom-notes/lib/notes-view-list.js:112:23)
    at Object.elementForItem (/packages/atom-notes/lib/notes-view-list.js:62:38)
    at /packages/atom-notes/lib/select-list-view.js:189:33)
    at Array.map (native)
    at SelectListView.renderItems (/packages/atom-notes/lib/select-list-view.js:185:23)
    at SelectListView.render (/packages/atom-notes/lib/select-list-view.js:176:12)
    at updateSync (/packages/atom-notes/node_modules/etch/lib/component-helpers.js:107:34)
    at /packages/atom-notes/node_modules/etch/lib/component-helpers.js:72:7
    at DefaultScheduler.performUpdates (/packages/project-viewer/node_modules/etch/lib/default-scheduler.js:48:34)

Commands

  4x -3:33.8.0 editor:move-to-beginning-of-word (input.hidden-input)
  2x -3:29.8.0 editor:select-to-end-of-word (input.hidden-input)
     -3:25.1.0 editor:select-to-beginning-of-word (input.hidden-input)
     -3:24.6.0 core:select-right (input.hidden-input)
     -3:23.1.0 editor:move-to-end-of-screen-line (input.hidden-input)
  3x -3:21.6.0 editor:move-to-beginning-of-word (input.hidden-input)
     -3:19.9.0 editor:select-to-end-of-word (input.hidden-input)
     -3:18.2.0 core:backspace (input.hidden-input)
     -3:16.5.0 editor:move-to-end-of-word (input.hidden-input)
     -3:16 core:backspace (input.hidden-input)
     -3:15.5.0 editor:move-to-end-of-screen-line (input.hidden-input)
  2x -3:15.2.0 core:backspace (input.hidden-input)
  5x -2:57.4.0 editor:select-to-beginning-of-word (input.hidden-input)
     -0:16.2.0 atom-notes:toggle (input.hidden-input)
     -0:11 editor:consolidate-selections (input.hidden-input)
     -0:11 core:cancel (input.hidden-input)

Non-Core Packages

atom-notes 1.15.5 
autocomplete-bibtex 1.1.0 
broadcast 0.4.0 
git-plus 7.10.0 
language-atom-notes 0.2.3 
language-mediawiki 2.2.0 
markdown-document 0.2.1 
markdown-folder 0.5.0 
markdown-scroll-sync 2.1.2 
markdown-toc 0.4.2 
markdown-writer 2.7.3 
nvatom 0.11.0 
pandoc-convert 1.1.1 
project-viewer 1.2.5 
spell-check-test 0.77.5 
terminal-plus 0.14.5 
tidy-markdown 3.0.1 
wordcount 2.10.4 
xml-tools 0.2.1 
Zen 0.18.0 

Mouse scroll of search box

This is a minor issue

  • at least on Windows and atom notes 1.23.0
  • if a search term yields a number of items that is greater than the number of lines in the search box, it is possible to scroll to lower items using the keyboard, but any attempt to do so with the mouse (via the scroll bar -- which is shown) simply results in the search box closing.

Uncaught TypeError: Cannot read property 'toLocaleDateString' of undefined

Started a search on an existing directory of markdown notes after switching the default notes directory.

Atom: 1.26.1 x64
Electron: 1.7.11
OS: Mac OS X 10.13.4
Thrown From: atom-notes package 1.19.0

Stack Trace

Uncaught TypeError: Cannot read property 'toLocaleDateString' of undefined

At /Users/rc305/.atom/packages/atom-notes/lib/notes-view-list.js:104

TypeError: Cannot read property 'toLocaleDateString' of undefined
    at NotesViewList.elementForItem (/packages/atom-notes/lib/notes-view-list.js:104:43)
    at Object.elementForItem (/packages/atom-notes/lib/notes-view-list.js:70:36)
    at listItems.items.map (/packages/atom-notes/lib/select-list-view.js:221:31)
    at Array.map (native)
    at SelectListView.renderItems (/packages/atom-notes/lib/select-list-view.js:217:35)
    at SelectListView.render (/packages/atom-notes/lib/select-list-view.js:201:12)
    at updateSync (/packages/atom-notes/node_modules/etch/lib/component-helpers.js:119:34)
    at /packages/atom-notes/node_modules/etch/lib/component-helpers.js:84:7
    at DefaultScheduler.performUpdates (/packages/atom-notes/node_modules/etch/lib/default-scheduler.js:48:34)

Commands

     -0:33.4.0 settings-view:open (input.hidden-input)
     -0:18.3.0 core:close (input.hidden-input)
     -0:16.7.0 atom-notes:toggle (input.hidden-input)

Non-Core Packages

atom-markboard 2.1.3 
atom-notes 1.19.0 
markdown-writer 2.7.3 
marked 0.1.10 

Use markdown-writer keymappings in atom-notes

When trying to use markdown-writer shortcuts such as 'cmd-i' for italics, atom-notes turns up this error:

default

Is it possible to integrate markdown-writer functions into atom-notes without switching the grammar? ('cmd-i' works fine when grammar is switched to markdown or pandoc-markdown)

Uncaught TypeError: Cannot read property 'substring' of undefined

[Enter steps to reproduce:]

  1. Toggle Atom Notes.
  2. Start typing and the uncaught error appears.

This happens inconsistently but often enough to make the package completely unusable. When it happens, the Atom Notes toggle palette stops working (not reacting to typing events, not reacting to arrow keys, not clickable).

Atom: 1.19.7 x64
Electron: 1.6.9
OS: Mac OS X 10.12.6
Thrown From: atom-notes package 1.11.1

Stack Trace

Uncaught TypeError: Cannot read property 'substring' of undefined

At /Users/omegak/.dotfiles/atom/atom.symlink/packages/atom-notes/lib/notes-view-list.js:287

TypeError: Cannot read property 'substring' of undefined
    at highlight (/packages/atom-notes/lib/notes-view-list.js:287:52)
    at NotesViewList.elementForItem (/packages/atom-notes/lib/notes-view-list.js:83:25)
    at Object.elementForItem (/packages/atom-notes/lib/notes-view-list.js:60:38)
    at /packages/atom-notes/node_modules/atom-select-list/src/select-list-view.js:185:33)
    at Array.map (native)
    at SelectListView.renderItems (/packages/atom-notes/node_modules/atom-select-list/src/select-list-view.js:181:23)
    at SelectListView.render (/packages/atom-notes/node_modules/atom-select-list/src/select-list-view.js:172:12)
    at updateSync (/packages/atom-notes/node_modules/etch/lib/component-helpers.js:99:34)
    at /packages/atom-notes/node_modules/etch/lib/component-helpers.js:72:7
    at DefaultScheduler.performUpdates (/packages/multi-wrap-guide/node_modules/etch/lib/default-scheduler.js:48:34)

Commands

     -0:48.4.0 pane:show-previous-item (input.hidden-input)
  2x -0:47.7.0 core:move-down (input.hidden-input)
     -0:47.3.0 core:move-up (input.hidden-input)
     -0:46.8.0 core:move-right (input.hidden-input)
     -0:46.4.0 editor:select-to-previous-word-boundary (input.hidden-input)
  4x -0:46 core:move-right (input.hidden-input)
     -0:45.2.0 editor:newline (input.hidden-input)
     -0:44.6.0 core:backspace (input.hidden-input)
     -0:43.5.0 core:paste (input.hidden-input)
  3x -0:42.5.0 core:move-left (input.hidden-input)
     -0:42 intentions:highlight (input.hidden-input)
     -0:41.8.0 atom-notes:interlink (input.hidden-input)
     -0:07.4.0 atom-notes:toggle (input.hidden-input)
     -0:03.9.0 editor:delete-to-previous-word-boundary (input.hidden-input)
     -0:03.3.0 editor:consolidate-selections (input.hidden-input)
     -0:03.3.0 core:cancel (input.hidden-input)

Non-Core Packages

atom-beautify 0.30.5 
atom-jinja2 0.6.0 
atom-notes 1.11.1 
blame 0.12.0 
build 0.68.0 
busy 0.7.0 
editorconfig 2.2.2 
emmet 2.4.3 
file-icons 2.1.11 
git-blame 1.2.2 
highlight-selected 0.13.1 
Hydrogen 1.21.1 
intentions 1.1.5 
language-babel 2.74.1 
language-docker 1.1.8 
language-gitignore 0.3.0 
language-haproxy 0.6.1 
language-ini 1.19.0 
language-latex 1.1.1 
language-log 1.8.0 
language-nginx 0.8.0 
language-nunjucks 4.1.0 
last-cursor-position 0.9.2 
latex 0.46.0 
line-jumper 0.14.1 
linter 2.2.0 
linter-docker 0.2.1 
linter-eslint 8.2.1 
linter-flake8 2.2.1 
linter-htmlhint 1.3.3 
linter-js-yaml 1.2.7 
linter-rubocop 2.1.1 
linter-sass-lint 1.7.6 
linter-shellcheck 1.4.6 
linter-ui-default 1.6.8 
MagicPython 1.0.12 
markdown-preview-plus 2.4.10 
minimap 4.29.6 
multi-wrap-guide 1.0.0 
package-sync 1.1.0 
pdf-view 0.59.0 
pinned-tabs 1.3.0 
project-manager 3.3.5 
ssh-config 0.12.0 
tab-control 0.6.10 
typewriter-scroll 1.0.0 

Uncaught Error: EIO: i/o error, mkdir '~/googledrive/atom-notes'

[Enter steps to reproduce:]

  1. Start Atom.

Atom: 1.29.0 x64
Electron: 2.0.5
OS: GalliumOS 2.1
Thrown From: atom-notes package 1.19.6

Stack Trace

Uncaught Error: EIO: i/o error, mkdir '/home/jason/googledrive/atom-notes'

At /home/jason/.atom/packages/atom-notes/node_modules/mkdirp/index.js:90

Error: EIO: i/o error, mkdir '/home/jason/googledrive/atom-notes'
    at Object.fs.mkdirSync (fs.js:885:18)
    at Function.sync (/packages/atom-notes/node_modules/mkdirp/index.js:71:13)
    at Proxy.makeTreeSync (/packages/atom-notes/node_modules/fs-plus/lib/fs-plus.js:385:23)
    at ensureNotesDirectory (/packages/atom-notes/lib/atom-notes.js:252:8)
    at /packages/atom-notes/lib/atom-notes.js:152:10

Commands

Non-Core Packages

atom-beautify 0.33.0 
atom-notes 1.19.6 
city-lights-syntax 1.1.8 
dark-nebula-syntax 0.1.1 
date 2.1.0 
file-icons 2.1.24 
language-hugo 0.5.1 
language-markdown 0.26.0 
nebula-syntax 0.4.5 
nebula-ui 0.9.3 
night-owl-syntax 1.0.1 
night-owl-ui 1.0.0 
nucleus-dark-ui 0.12.3 
pandoc-convert 1.1.1 
spell-check-project 0.7.0 
wordcount 3.0.0 

Interlinking not working with language-markdown enabled

When I install and enable the language-markdown package, the interlinking command stops working, that is it doesn't open the target note at all. After disabling language-markdown and restarting atom, interlinking resumes working. Since language-markdown is a popular package, this is not a minor incompatibility issue.

Versions:

  • language-markdown 0.25.1
  • atom-notes 1.19.1

Enhancement > Configure Default Grammar in Settings

I prefer the markdown language over the GFM style language preference, but I have to update the grammar for each file every time I open an atom-notes file. It would be helpful if the grammar default could be configured as a setting.

Porting notational-velocity-like atom-notes to VSCode

For some reason I've switched to vscode. The one thing I'm really missing is atom-notes. I'm looking into creating a package with the same functionality. I would of course mention atom-notes loudly in any documentation!

It would be nicer to share code with atom-notes rather than copying it; possibly by pulling the core note-handling functionality into a package. It would add some complexity to atom notes. Does the atom-notes community have any interest in this?

At first glance the code with a good ratio of functionality to atom API code is:

  • interlink.js
  • notes-fs.js
  • notes-store.js
  • notes-view-list.js

Is it possible to change the grammar of Notes?

I tried to switch from language-gfm to language-markdown as it has better rendering, or at least better parsing of markdown elements. However, this plugin always makes the source source.gfm.notes and I cannot figure out how that is forced.

Right now any file that is .md opens as scope text.md except ones opened by Atom Notes. I can manually switch the grammar after opening and get the benefit of the new rendering, but then it lacks the inner file linking.

I am not sure how to get the best of both world. If you point me the direction of how the gfm source is forced then I can see if I can fix and submit a PR

Uncaught TypeError: Cannot convert undefined or null to object

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.28.1 x64
Electron: 2.0.4
OS: Mac OS X 10.11.6
Thrown From: atom-notes package 1.19.2

Stack Trace

Uncaught TypeError: Cannot convert undefined or null to object

At /Users/gabi/.atom/packages/atom-notes/lib/notes-store.js:13

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at isEmpty (/packages/atom-notes/lib/notes-store.js:13:17)
    at NotesStore.removeDocument (/packages/atom-notes/lib/notes-store.js:196:9)
    at /packages/atom-notes/lib/notes-store.js:103:14
    at PathWatcher.onNativeEvents (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:533:13)
    at sub.native.onDidChange.events (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:436:64)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:27:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:156:34)
    at NSFWNativeWatcher.onEvents (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:167:24)
    at handler (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:276:18)

Commands

Non-Core Packages

atom-beautify 0.32.5 
atom-jade 0.3.0 
atom-jinja2 0.6.0 
atom-notes 1.19.2 
build 0.70.0 
build-markdown 1.1.1 
busy 0.7.0 
busy-signal 1.4.3 
change-case 0.6.5 
cucumber 0.6.0 
cucumber-step 0.2.0 
dash 1.7.1 
docblockr 0.13.7 
editorconfig 2.2.2 
emmet 2.4.3 
highlight-line 0.12.0 
highlight-selected 0.13.1 
html-entitize 1.1.0 
intentions 1.1.5 
language-puppet 0.23.0 
language-vue 0.23.1 
linter 2.2.0 
linter-ui-default 1.7.1 
linter-write-good 0.9.0 
minimap 4.29.8 
php-twig 4.0.0 
tabs-to-spaces 1.0.5 
wordcount 3.0.0 
xml-formatter 0.11.0 

cannot use the toggle to create a new file

Hello,

I'm a newbie and not a coder by trade. I really like the idea of using nvalt functionality with Atom. I was able to get the keymap set and am able to toggle the search for .md in my project folder, but for some reason I cannot type the proposed name of a new file in the prompt and create a new .md. (as demonstrated in the video example) When I type (for example) new-file and hit enter, nothing happens. Am I missing a step?

Thanks!

Very slow and laggy editing and file switching

I really love this package, but unfortunately, it has become unusable for me. I have a small collection of notes (45 markdown files). Whenever active, atom-notes makes editing and traversing the tree-view file hierarchy very slow. I have found using 'package-cop' that atom-notes is the offending package and verified that the same slow behavior occurs even if atom-notes is the only activated package. What can be done about this?

Uncaught TypeError: this.list.selectList.selectNone is not a function

Atom: 1.20.0-beta5 x64
Electron: 1.6.9
OS: Mac OS X 10.12.5
Thrown From: atom-notes package 1.8.1

Stack Trace

Uncaught TypeError: this.list.selectList.selectNone is not a function

At /Users/sdaza/.atom/packages/atom-notes/lib/notes-view.js:29

TypeError: this.list.selectList.selectNone is not a function
    at NotesView.show (/packages/atom-notes/lib/notes-view.js:29:26)
    at NotesView.toggle (/packages/atom-notes/lib/notes-view.js:42:43)
    at /packages/atom-notes/lib/atom-notes.js:108:88)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app/src/command-registry.js:265:35)
    at /Applications/Atom Beta.app/Contents/Resources/app/src/command-registry.js:3:65
    at Object.didConfirmSelection (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/command-palette/lib/command-palette-view.js:106:35)
    at SelectListView.confirmSelection (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/atom-select-list/src/select-list-view.js:313:26)
    at HTMLDivElement.core:confirm (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/atom-select-list/src/select-list-view.js:81:20)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app/src/command-registry.js:265:35)
    at /Applications/Atom Beta.app/Contents/Resources/app/src/command-registry.js:3:65
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom Beta.app/Contents/Resources/app/src/window-event-handler.js:100:42)
    at HTMLDocument.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/src/window-event-handler.js:3:65)

Commands

  2x -1:16.4.0 core:move-up (input.hidden-input)
     -1:15.7.0 core:confirm (input.hidden-input)
     -1:10.2.0 command-palette:toggle (div.tool-panel.tree-view)
  2x -1:07.8.0 core:backspace (input.hidden-input)
     -1:04.9.0 core:confirm (input.hidden-input)
     -1:04.9.0 markdown-preview:toggle (div.tool-panel.tree-view)
     -0:49.5.0 command-palette:toggle (input.hidden-input)
     -0:47.3.0 core:confirm (input.hidden-input)
     -0:47.3.0 markdown-preview:toggle (input.hidden-input)
     -0:30.4.0 command-palette:toggle (input.hidden-input)
     -0:28.5.0 editor:consolidate-selections (input.hidden-input)
     -0:28.5.0 core:cancel (input.hidden-input)
     -0:16.6.0 command-palette:toggle (input.hidden-input)
     -0:14.4.0 core:move-down (input.hidden-input)
     -0:14 core:confirm (input.hidden-input)
     -0:14 atom-notes:toggle (input.hidden-input)

Non-Core Packages

atom-notes 1.8.1 
autocomplete-bibtex 0.7.0 
autocomplete-python 1.10.2 
date 1.2.2 
document-outline 1.6.1 
Hydrogen 1.21.1 
language-latex 1.1.1 
language-r 0.4.2 
language-stata 0.4.0 
latex 0.46.0 
latex-completions 0.3.3 
latexer 0.3.0 
pdf-view 0.59.0 
platformio-ide-terminal 2.6.0 
print-atom 0.1.1 
project-manager 3.3.5 
python-autopep8 0.1.3 
python-indent 1.1.0 
r-exec 0.5.0 
script 3.15.0 
tasks 2.6.7 
todo-show 2.0.0 
wordcount 2.10.4 

notes disappeared

For some reason I had to reinstall most of my atom packages. After that, when I toggle atom-notes shows an empty list. I configured it to use the right directory and there are three files in there. Suggestions?

"Loading notes" slow with lots of notes

I've been using this for a while and have quite a lot of notes. When I search the first time after startup it takes ~30s to index available notes. I think this wait would be better removed with a cached index, or pushed the background a few seconds after startup.

Can't use markdow preview

when I have a note opened and I try to preview it using the default Markdown preview package nothing happens. I try using the command palette and also from the package menu but both doesn't work for some reason, ass soon as I try on a normal .md that is not bind to atom-notes it works.

Uncaught TypeError: Cannot read property 'getPath' of undefined

[Enter steps to reproduce:]

  1. Install atom-notes (I used apm install atom-notes)
  2. ctrl-shift-p and choose "Atom Notes: Interlink"
  3. Note I did no setup of the package preferences.

Atom: 1.19.0-beta6 x64
Electron: 1.6.9
OS: "Fedora release
Thrown From: atom-notes package 1.0.4

Stack Trace

Uncaught TypeError: Cannot read property 'getPath' of undefined

At /home/aflanagan/.atom/packages/atom-notes/lib/interlink.js:14

TypeError: Cannot read property 'getPath' of undefined
    at Object.openInterlink (/packages/atom-notes/lib/interlink.js:14:48)
    at /packages/atom-notes/index.js:30:41)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom-beta/resources/app/src/command-registry.js:265:35)
    at /usr/share/atom-beta/resources/app/src/command-registry.js:3:65
    at Object.didConfirmSelection (/usr/share/atom-beta/resources/app/node_modules/command-palette/lib/command-palette-view.js:106:35)
    at SelectListView.confirmSelection (/usr/share/atom-beta/resources/app/node_modules/atom-select-list/src/select-list-view.js:313:26)
    at SelectListView.didClickItem (/usr/share/atom-beta/resources/app/node_modules/atom-select-list/src/select-list-view.js:228:16)
    at ListItemView.onclick (/usr/share/atom-beta/resources/app/node_modules/atom-select-list/src/select-list-view.js:168:37)
    at ListItemView.didClick (/usr/share/atom-beta/resources/app/node_modules/atom-select-list/src/select-list-view.js:361:16)

Commands

     -5:49.8.0 atom-notes:toggle (atom-pane.pane)
     -4:54.6.0 intentions:highlight (input.hidden-input)
     -4:51.8.0 markdown-preview:toggle (input.hidden-input)
     -1:23.8.0 atom-notes:toggle (input.hidden-input)
     -1:12 intentions:highlight (input.hidden-input)
     -1:11.1.0 markdown-preview:toggle (input.hidden-input)
     -0:21 command-palette:toggle (div.markdown-preview.native-key-bindings)
     -0:17.4.0 atom-notes:interlink (div.markdown-preview.native-key-bindings)

Non-Core Packages

advanced-open-file 0.16.6 
atom-beautify 0.30.4 
atom-keyboard-macros 0.10.0 
atom-live-grammar-reload 0.8.0 
atom-notes 1.0.4 
atom-ternjs 0.18.3 
autoclose-html 0.23.0 
autocomplete-paths 1.0.5 
autocomplete-python 1.9.1 
busy-signal 1.4.3 
clipboard-plus 0.5.1 
custom-folds 1.9.4 
disable-keybindings 0.6.0 
django-templates 0.5.0 
editorconfig 2.2.2 
export-html 3.1.0 
file-icons 2.1.9 
flex-tool-bar 0.12.0 
go-plus 5.5.5 
grammar-mode 1.1.0 
Hydrogen 1.19.0 
hyperclick 0.1.3 
intentions 1.1.5 
js-hyperclick 1.11.0 
jumpy 3.1.3 
language-babel 2.68.0 
language-forth 0.2.3 
language-generic-config 1.3.0 
language-javascript-jsx 0.3.7 
language-markdown 0.25.1 
language-mips 0.3.0 
language-powershell 4.0.0 
language-svg 0.9.2 
last-cursor-position 0.9.2 
linter 2.2.0 
linter-coffeescript 1.0.0 
linter-eslint 8.2.1 
linter-gcc 0.7.1 
linter-jsonlint 1.3.0 
linter-less 2.6.0 
linter-phpcs 1.6.7 
linter-pycodestyle 2.0.2 
linter-pydocstyle 0.4.7 
linter-shellcheck 1.4.4 
linter-ui-default 1.6.3 
linter-xmllint 1.4.3 
MagicPython 1.0.11 
minimap 4.29.3 
minimap-git-diff 4.3.1 
minimap-linter 2.0.2 
open-unsupported-files 1.0.20 
php-integrator-annotations 1.2.0 
php-integrator-autocomplete-plus 1.6.0 
php-integrator-base 3.0.1 
php-integrator-navigation 1.2.1 
php-integrator-refactoring 1.4.1 
php-integrator-symbol-viewer 0.6.4 
postcss-sorting 2.10.0 
project-manager 3.3.5 
python-isort 0.0.7 
python-snippets 1.9.0 
python-tools 0.6.9 
python-yapf 0.14.0 
pythonic-atom 0.2.1 
script 3.15.0 
shell-it 0.2.1 
slickedit-select 1.6.2 
sort-lines 0.14.0 
split-diff 1.4.3 
terminal-plus 0.14.5 
tool-bar 1.1.0 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.