cogitoergosome··on Notes against note-taking systemsOrg-mode on Emacs checks all those boxes. The only issue might be the learning curve of core Emacs.