#meta
Proof of concept (and WIP) AI features for SilverBullet.
Currently implemented commands:
AI: Chat
(bound to Cmd-Enter/Ctrl-Enter)AI: Analyze With Prompt
(see below for an example)
#meta
Proof of concept (and WIP) AI features for SilverBullet.
Currently implemented commands:
AI: Chat
(bound to Cmd-Enter/Ctrl-Enter)AI: Analyze With Prompt
(see below for an example)export class Focalboard { | |
constructor(url, token, workspaceId) { | |
this.url = url; | |
this.token = token; | |
this.workspaceId = workspaceId; | |
} | |
async allBlocks() { | |
let result = await fetch(`${this.url}/api/v1/workspaces/${this.workspaceId}/blocks?type=view`, { | |
headers: { |
{ | |
// whatever was already there, and add: | |
modes: { | |
javascript: { | |
extensions: ["ejs"] | |
} | |
} | |
} |
#!/usr/bin/python | |
## Usage: webfs.py [rootPath] [port] | |
## rootPath defaults to $HOME | |
## port defaults to 1338 | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
import os, os.path | |
import sys | |
import cgi |
modes: { | |
markdown: { | |
handlers: { | |
preview: [ | |
"!Tools:Preview" | |
"Github:Markdown:Preview" | |
] | |
} | |
} | |
} |