Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note without comments won't work #5

Open
mongrelion opened this issue Oct 26, 2017 · 2 comments
Open

Note without comments won't work #5

mongrelion opened this issue Oct 26, 2017 · 2 comments

Comments

@mongrelion
Copy link
Contributor

Steps to reproduce:

  1. Create a new note with notes foo
  2. Add whatever content to the notes but don't add any comment block. So, something like this:
    This is my note
    
  3. Save and quit.
  4. Try to print out the note notes foo

Nothing gets printed out.
It works as soon as I add a comment block to the first line of the file.

Sometimes I just have random notes that are not related to any program in specific, so they don't feature snippets or comments or anything like that. The note itself is the comment.

@bittersweet
Copy link
Owner

Interesting 👍 I think I can easily make it output the file if there are no comments for example, but the parsing into separate notes (for searchability) would be difficult.

Right now a file like this:

# subject 1
command 1

# subject 2
command 2

is parsed into 2 notes, and the explanation (# part) is colorized.

Maybe I can parse newlines as the end of 1 note, if there are no comments at all or something like that.

You could hack it right now by just using an empty comment by the way ;-)

@mongrelion
Copy link
Contributor Author

I went the temporary hack route, indeed. Just thought of bringing it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants