Coder Social home page Coder Social logo

egoaeternus / 2md Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 33.26 MB

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: GNU General Public License v3.0

Python 100.00%
eink-devices notes notetaking notetaking-applications obsidian

2md's Introduction

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.

2md's People

Contributors

egoaeternus avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.