I'm using Atom (http://atom.io) with MaPerWiki extention for this with private personal github repo for storage.
That's an interesting direction. For example for VIM users there is https://github.com/vimwiki/vimwiki
However this direction has a few important drawbacks:
* lock-in into a specific IDE / editor and syntax; (even if all claim to use "Markdown", in fact they add "extensions" that prevent migration from one wiki to another;)
* its not exportable / editable from a browser;
And the last one is what I miss from my current setup: the ability to export (parts of) my notes on the web, and the ability to edit them when I'm on the go and don't have my laptop.