Skip to content

toMD is a little program created so people that handwrite their notes on any digital device can have those notes into their Obsidian vault. (Or any Note Manager that handles .md files)

License

EgoAeternus/2MD

Repository files navigation

2md

Why?

I created this small script to enable me to handwrite my notes on my E-Notebook (Supernote A5 X) and then have those notes accessible in my Obsidian vault. If you wish to use it, please feel free to do so. If you want to make improvements, please go ahead. If you have any comments, please don't hesitate to let us know.

Usage Instructions:

  1. Download the Script according to your OS.
  2. Run the Script.
  3. Enter Folder's Paths.
  4. Completion (in Windows console will close automatically).

Explanation of the Code:

This Python script performs the following tasks:

  • It imports necessary modules.
  • It checks if a configuration file (config.ini) exists. If it does, it reads the log, source and destination folder paths from it. If not, it prompts the user to input these paths and saves them in the configuration file for future use.
  • It iterates through all files in the source folder.
  • For each file with a .docx extension, converts it to .txt extension files.
  • For each file with a .txt extension, converts it to .md extension files and move them to the desination folder.
    • If the file already exists on destination folder, the content will be appended on destination file.
  • After all the files are in the destination folder it will delete the .docx and .txt files from soucer folder to avoid repeated content.
  • It creates a log file with all the process that was done.

This script allows you to easily convert and move multiple .txt files to .md files while saving the folder paths for future use, making it a convenient tool for file management tasks.

About

toMD is a little program created so people that handwrite their notes on any digital device can have those notes into their Obsidian vault. (Or any Note Manager that handles .md files)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages