Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


This is a web-based note viewer. I use this in conjuction with a script bound to an F-key that starts an emacsclient with a timestamped text file in a note directory. This allows me to quickly make one-off notes by pressing a single key, then close the emacsclient window and continue with what I was doing before. However, since I deliberately don't include filenames or the like - to make note-taking as quick and low-investment as possible - viewing the notes in a text editor isn't very nice. So this is a Flask application that displays them on a simple web interface.

Feature Creep

I've already added automatic linking of URLs, editing in the browser, and am working on including non-text files. For example, I'd like to have a similar keybinding to take a screenshot and stick it in the same directory.


I integrate notedir using werkzeug's DispatcherMiddleware like so:

from notedir import app as notedir_app
notedir_app.config["NOTEDIR_DIRECTORY"] = "/home/akg/var/notes"
app = DispatcherMiddleware(app, {
    # ...
    "/notes": notedir_app,

Recent activity

Adam Gomaa

Commits by Adam Gomaa were pushed to adamkg/Notedir

281d028 - Don't show images on page load, causes IO spike when viewing a bunch of screenshots. Click to show instead.
Adam Gomaa

Commits by Adam Gomaa were pushed to adamkg/Notedir

c9b71b2 - Add history, rework dispatch based in request.method in preparation for doing deletes
Adam Gomaa

Commits by Adam Gomaa were pushed to adamkg/Notedir

89db8de - Reindent the main JS file, use a more RESTful pagination scheme, remove IE-targeting caret position code (I'm only targeting webkit, really)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.