oberblastmeister / neuron.nvim

Make neovim the best note taking application
MIT License
398 stars 34 forks source link

Fix fake output on std_error #46

Open protex opened 2 years ago

protex commented 2 years ago

This should filter out the "fake" errors that neuron prints that are actually debug/info logs. I also re-enabled the error logging in the one place it had been disabled. I tried to think of a more generic way to filter them (maybe check for color?) but a map of fake errors was the best I could come up with.

Fixes #44 which was related to this. I think the error logging had been disabled in new_edit but not in new_and_callback. So, if you tried to make a new zettel by using the find_zettels command, you would see errors even though everything worked properly.

protex commented 2 years ago

Any chance this is useful, or should I just delete this PR?