diff --git a/README.md b/README.md index 64c1040..95c8dea 100644 --- a/README.md +++ b/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? diff --git a/dirnotes-cli b/dirnotes-cli index 91591a2..203953b 100755 --- a/dirnotes-cli +++ b/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 = []