Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import asyncio, websockets, json, time, subprocess, re
regex_table = {
"krita": re.compile(r"\*? ?-? \[([^\(]+)")
}
async def send_message(pname, title, filename):
async with websockets.connect("ws://localhost:42870/manictime-document/") as websocket:
j = json.dumps({
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->