Handle OrgDoc's ID.
This commit is contained in:
parent
9b550ed2ea
commit
cfce08eed0
@ -1571,6 +1571,16 @@ class OrgDoc:
|
|||||||
map(lambda hl: parse_headline(hl, self, self), headlines)
|
map(lambda hl: parse_headline(hl, self, self), headlines)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def id(self):
|
||||||
|
"""
|
||||||
|
Created by org-roam v2.
|
||||||
|
"""
|
||||||
|
for p in self.properties:
|
||||||
|
if p.key == 'ID':
|
||||||
|
return p.value
|
||||||
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def path(self):
|
def path(self):
|
||||||
return self._path
|
return self._path
|
||||||
|
Loading…
Reference in New Issue
Block a user