Note-taking shouldn't be done by an external application because then users have to switch context from their current work. Rather, the tool should be available in the command line, browser, and IDE.
I have been making and using dnote [0] for the past two years to build a personal knowledge base, and this seems to work. I could just jot down things inside my terminal or web browser within seconds and get back to work.