]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
WIP csv script
authorEdward Delaporte <edward@delaporte.us>
Sun, 28 Jun 2026 03:52:45 +0000 (22:52 -0500)
committerEdward Delaporte <edward@delaporte.us>
Sun, 28 Jun 2026 19:15:07 +0000 (14:15 -0500)
bin/clerk [new file with mode: 0755]

diff --git a/bin/clerk b/bin/clerk
new file mode 100755 (executable)
index 0000000..0fa3bb4
--- /dev/null
+++ b/bin/clerk
@@ -0,0 +1,20 @@
+#!/usr/bin/python
+
+import os
+
+DATA_DIR=os.path.expanduser('~/Journal/2026/data')
+
+data_files = {}
+os.path.expanduser('~/Journal/2026/data')
+for root, _, files in os.walk(DATA_DIR):
+    for file in files:
+        name, ext = os.path.splitext(file)
+        if ext == '.csv':
+            data_files[name] = os.path.join(root, file)
+
+print(data_files.keys())
+choice = input()
+
+file = data_files[choice]
+
+print(file)