Installation
npm install -g lumos
If you want your file lists to sort correctly you have to compile Node.js with libicu i18n support.
./configure --with-icu-path=deps/v8/third_party/icu46/icu.gyp
make
sudo make install
nodejs/node-v0.x-archive#6371 nodejs/node-v0.x-archive#4689
The make install
installs files to these locations:
/usr/local/bin/node
/usr/local/lib/dtrace/node.d
/usr/local/share/systemtap/tapset/node.stp
/usr/local/share/man/man1/node.1
/usr/local/include/node/*
/usr/local/lib/node_modules/*
Keep the source directory, as you could need it later for node-gyp.
Installation of the lumos command
Make sure that you have the lumos
command and that /usr/local/bin
is in your PATH.
ln -s $(pwd)/bin/lumos /usr/local/bin
~/.zshrc
alias lm=lumos
/etc/launchd.conf
setenv PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Configuration of Sublime Text
Make sure that you have a subl
command:
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/
~/Library/Application Support/Sublime Text 3/Packages/Users/Lumos.sublime-build
{
"cmd": ["lumos", "view", "--base-path", "${project_path:${folder}}", "$file"],
"selector": "text.html.markdown"
}
*.sublime-project
{
"folders":
[
{
"follow_symlinks": true,
"path": "."
}
],
"settings":
{
"draw_indent_guides": true,
"save_on_focus_lost": true,
"tab_completion": false,
"show_panel_on_build": false,
"translate_tabs_to_spaces": false,
"trim_trailing_white_space_on_save": false,
"gutter": false
}
}
Sublime Text packages
SmartMarkdown
Shortcut | Description |
---|---|
Command + Shift + . | Increase heading level |
Command + Shift + , | Decrease heading level |
Shift + Tab | Global folding |
Tab (Inside a heading) | Fold content |
Shift + Enter (Inside a heading) | New line |
Ctrl + c, Ctrl + n | Next headline |
Ctrl + c, Ctrl + p | Previous headline |
Ctrl + c, Ctrl + f | Next headline (same level) |
Ctrl + c, Ctrl + b | Previous headline (same level) |
MarkdownEditing
{
// "color_scheme": "Packages/MarkdownEditing/MarkdownEditor-Dark.tmTheme",
"color_scheme": "Packages/MarkdownEditing/MarkdownEditor-Yellow.tmTheme",
"wrap_width": 100,
"translate_tabs_to_spaces": false,
"mde.list_indent_auto_switch_bullet": false
}
Install nginx (OS X)
Install nginx (make sure /opt/local/sbin/
is in your PATH)
sudo port install nginx
Autostart nginx /Library/LaunchDaemons/org.macports.nginx.plist
(Alternative method, Method 3, Method 4).
sudo port load nginx
Execute these commands:
cd /opt/local/etc/nginx
sudo cp nginx.conf.default nginx.conf
sudo cp mime.types.default mime.types
sudo mkdir sites-enabled
/opt/local/etc/nginx/nginx.conf:
http {
include /opt/local/etc/nginx/sites-enabled/*;
}
/opt/local/etc/nginx/sites-enabled/notes.conf:
server {
listen 80;
server_name notes;
location / {
proxy_pass http://127.0.0.1:9000;
}
}
Advice
Make sure that you whitelist the domain that this server is running on in your AdBlock Plus (ABP) settings to improve page load speeds. ABP injects 20.000 CSS rules into every page that's loaded.
When installing chokidar/fsevents: Error: "pre" versions of node cannot be installed
npm install chokidar --nodedir=~/node
Tools
- OS X services
- SearchLink
- Markdown Service Tools
- Links – Flip Link Style (Control + ⌘ + L)
- Tables – Cleanup (Control + ⌘ + T)
- Scripts
- Apps
Design guidelines
-
Don't repeat yourself
-
Alternative to note-taking tools like Evernote, OneNote, Simplenote, Google Keep, Apple Notes, OSX Stickies, etc.
-
Powerful enhancement possibilites (replaceable Markdown parser and search provider)
-
Built for speed
-
Zero JavaScript (on the client side), just HTML
-
No configuration necessary
-
Use the file system (synchronization between devices, versioning, search, ...)
-
Use system-provided search features like Apple's Spotlight. It's just text.
-
In the directory listing you just see other directories and markdown files, but you can link to anything
Known problems
-
It does not have the notion of multiple users, or authentication. It's just an extension of the file system.
-
No good solution for mobile access, since this is a locally-hosted server (how does the node process run? who provides the search and the syncing?)
- In theory it's possible to have the server run on the network (instead of locally) and to provide an app that connects to that server's API for editing, but that's a little more complicated
Inspired by
Theme
- OneNote
- maxvoltar
- warpedvisions
Functionality