Change files extension to .md
This commit is contained in:
parent
838389ba1e
commit
d261197ab3
4
histd.py
4
histd.py
|
@ -33,8 +33,8 @@ def edit_note(base_dir: str, note_date: date):
|
||||||
workdir = os.path.join(base_dir, year, month)
|
workdir = os.path.join(base_dir, year, month)
|
||||||
os.makedirs(workdir, exist_ok=True)
|
os.makedirs(workdir, exist_ok=True)
|
||||||
|
|
||||||
# Open file (base_dir/year/month/day.txt) with default editor
|
# Open file (base_dir/year/month/day.md) with default editor
|
||||||
filename = f'{note_date.day:02}.txt'
|
filename = f'{note_date.day:02}.md'
|
||||||
path_to_file = os.path.join(workdir, filename)
|
path_to_file = os.path.join(workdir, filename)
|
||||||
editor = os.environ.get('EDITOR', 'nano')
|
editor = os.environ.get('EDITOR', 'nano')
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue