Change files extension to .md

This commit is contained in:
Ivan R. 2022-10-02 15:10:19 +05:00
parent 838389ba1e
commit d261197ab3
No known key found for this signature in database
GPG key ID: 67AA0CE744B974B8
2 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -11,8 +11,8 @@ tree ~/.local/share/histd
# /home/user/.local/share/histd # /home/user/.local/share/histd
# └── 2022 # └── 2022
# └── 08 # └── 08
# ├── 18.txt # ├── 18.md
# └── 19.txt # └── 19.md
``` ```
## Usage ## Usage