8000 GitHub - superus8r/porganizer: This is a simple file organizng script which creates files with a date prefix.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

superus8r/porganizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

porganizer

To make taking daily markdown notes easier and more organized, I created a simple script to create note files with a date prefix! It also provides simple customization options to define To-Dos in a note and automatically copy them in next day notes.

USAGE

python3 porganizer.py

Running this will create a file with the current date's prefix and a default suffix.

The suffix can be changed by simply updating the following paramter:

defaultSuffix = 'DailyLog'

Any note that comes after todoId will be considered as To-Dos for the next note. the todoId can also be simply modified:

todoId = '--------'

Add porganizer.py to your path. This way it can be called from any directory to create organized notes!

export path/to/porganizer.py

Organizing Folders & More

Assuming porganizer.py is in the path, it can be simply called from your notes folder.

For making notes even cleaner, a simple script in your notes folder can also call porganizer.py for you:

#!/bin/bash

year=$(date +"%Y")
month_number=$(date +"%m")
month_name=$(date +"%B" | tr a-z A-Z) # find the month name and make it all upper case
month="${month_number}_${month_name}"

mkdir -p $year
cd $year
mkdir -p $month
cd $month
porganizer.py

The above example organizes your porganizer-logs in a YEAR/MONTH order and creates the necessary folders. Once the folder exists, it runs the porganizer inside the correct folder.

Have fun porganizing! 😊

About

This is a simple file organizng script which creates files with a date prefix.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0