Răsfoiți Sursa

added questions to the README.md
moved the imports into the "common code" area

Pat Beirne 2 ani în urmă
părinte
comite
938a023a11
2 a modificat fișierele cu 14 adăugiri și 2 ștergeri
  1. 13 1
      README.md
  2. 1 1
      dirnotes-cli

+ 13 - 1
README.md

@@ -271,4 +271,16 @@ Perhaps the default locations should be in the user directory?
 
 4. Does anybody have a better edit-window for CURSES?
 
-5. Is anyone interested in the MacOS version?
+5. What about storing the database _per directory_. That's what MacOS does (the .DS_Store file)
+
+    - PRO  
+        - copy of an _entire directory_ will transport the database with it  
+        - database stored on a remote directory (sshfs, nfs, etc) will work properly  
+        - the database only needs to store the basename, not the entire path name
+        - if a removable drive is remounted on a different mount point, it'll still work
+
+    - CON  
+        - won't work on directories where the user doesn't have write permission  
+        - so, for example, the user can't add comments to /usr/bin/\*
+
+6. Is anyone interested in the MacOS version?

+ 1 - 1
dirnotes-cli

@@ -3,7 +3,7 @@
 
 VERSION = "0.4"
 
-import os, sys, argparse, xattr, json, sqlite3
+import os, sys, argparse, json, sqlite3
 
 # global mutables 
 answer_json = []