I use a notes directory with multiple flat text files named in some brief but sensible way.
I alias a command ('showNotes') to open the directory in sublime and use sublime's search to search my text files or edit/add files as appropriate.
I use to just stick to plain text and code snippets but have started using markdown for newer notes.