Paul Batcheloradded wiki index3429f3b6 years agoHistory
19 lines · 534 B · Text
RawDownload
(defn mkpage ()  #(var db (sqlite3/open "a.db"))  (var db (ww-db))  (each page      (sqlite3/eval       db       (string "SELECT key FROM wiki "               "WHERE key NOT LIKE \"@%\" "               "ORDER BY key COLLATE NOCASE;"))    (do      # handle index page differently      (if (= (get page "key") "index")        (org (string "[["                     (string webroot "/index.html")                     "][index]]"))        (ref (get page "key") (get page "key")))      (org "\n")))   #(sqlite3/close db))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t