This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
formatter.py
62 lines (54 loc) · 1.83 KB
/
formatter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
from extendedformatter import formatter, extformat
from prefs import prefs, keys
import misc
import dates
import twtr
import maze
import weather
import wikipedia
import news
import stocks
import myhomework
# Tab /=\|\./l1r1r0l0
formatter.extend_env(
misc = misc,
dates = dates,
twtr = twtr,
weather = weather,
news = news,
hrule = misc.hrule,
thinhrule = misc.thinhrule,
center = misc.center,
right = misc.right,
left_pad = misc.right,
align = misc.align,
fill = misc.fill,
format_left = misc.format_left,
hm = misc.hoursminutes,
shell = misc.shell,
today = dates.today_date,
now_hm = dates.now_hm,
iso_date = dates.iso_date,
events = dates.events,
countdown = dates.today_countdowns,
todo = dates.today_todos,
work = dates.today_work,
classes = dates.today_classes,
twitter = twtr.last,
twitter_bot = twtr.bot,
maze = maze.from_prefs,
forecast = weather.today_forecast,
tmrw_forecast = weather.tomorrow_forecast,
conditions = weather.conditions,
tmrw_conditions = weather.tomorrow_conditions,
weather_graph = weather.graph,
sun = weather.suntimes,
moon = weather.moon,
wikipedia = wikipedia.random,
headlines = news.headlines,
rss = news.headlines,
headline = news.headline,
stocks = stocks.stocks,
homework = myhomework.due,
)
formatter.width = prefs['width']