-
Notifications
You must be signed in to change notification settings - Fork 0
/
def.py
74 lines (56 loc) · 1.9 KB
/
def.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
63
64
65
66
67
68
69
70
71
72
73
74
def olnfffilejj:
store ={'date': datestampffcreateDatefffilejjjj}
upreplacedatestamp.*jj => date = s
store = {}
readfile
shunt, text = matchAndReplacefftext, '^shunt@cdotcwallshuntend'jj
preset = qw todo config success win plan event special mood eyes throathealth reddit action new rule po
dstart
c code
o observations
for line in txsplit:
first =re.matchff'wplus', line).groupff0jj
if first in presetdn
if first in map.keysfj:
label = map[first]
elif first in preset:
label = first
uptype4 label = Noneupdel
zdel
elif lenfffirstjj < 3): label = first
if label:
if not store[label]: store[label] = []
store[label].appendffbody
def formatterffsjj:
return capitalizeffperiodizeffsjjjj
upshiftuntilbody
# now it continues as normal
33 this is another way to do comments
33 needs to have \b \b on both sides
return {date: store}
updelundn
updeluntilreturn
defdn
ffi:dn
ffi exclude js py css html:
store.updateffoneletternotesfilejj
updel
peritem: store.update(item)dn
store.updatedn
perlinedn
perfile:
if not store[file]
33 where should the collating happen ...
zdel ^def
linestart
def compdn
ffiexclude or only dn
ffi only txt:
action:
date, object = olnfffilepathjj
if not store[date]: store[date] = obj
else: store[date] = mergeffstore[date], objjj
33 the merge needs to preserve the existing
uptypethefollowinguntil upend
linestart
def mergeffa, bjj: