so many changes

This commit is contained in:
2022-10-08 11:32:53 -04:00
parent b3adcb7c79
commit 67214ba444
4 changed files with 785 additions and 626 deletions
+26 -9
View File
@@ -40,6 +40,8 @@ _s_ for sort, _M_ to change between xattr/database priority.
The **<code>dirnotes-cli</code>** has options for _-l_ list and _-c_ create a comment.
All three apps in the **dirnotes** family have the ability to copy files from the current directory.
## INSTALLATION
Each of the 3 apps in the family is self contained.
@@ -55,6 +57,7 @@ This is a JSON file, with three attributes that are important:
> * database (default: <code>~/.dirnotes.db</code>)
> * start_mode (_xattr_ or _db_ priority)
The _config_file_ should be auto-generated the first time one of the **dirnotes** apps is run.
[_not fully implemented_]
## LIMITATIONS
@@ -62,12 +65,13 @@ This is a JSON file, with three attributes that are important:
The file comments are located in two locations: a database, and in the
xattr properties of the file. Each of these storage locations has its
own benefits and limitations:
own benefits and limitations. These can be summed up: **_xattr_** comments
follow the iNode, **_database_** comments follow the file name.
### xattr
Comments stored in the xattr properties can be copied/moved with the file, if you
use the correct options for <code>**cp**</code>. The <code>**mv**</code> utility
use the correct options: <code>**cp -p**</code>. The <code>**mv**</code> utility
automatically preserves _xattr_. Other programs can also be coerced into
perserving _xattr_ properties:
@@ -136,7 +140,7 @@ The comments are stored in an Sqlite3 database, usually located at "~/.dirnotes.
|author | the system name of the user who created the comment | patb |
The 'date' and 'size' fields reflect the file's modification date and size at the time of the last edit of the file comment, which is also 'comment_date'.
The _date_ and _size_ fields reflect the file's modification date and size at the time of the last edit of the file comment, which is stored in _comment_date_.
As comments are editted or appended, new records are added to the database. Older records are are not purged. This gives you a history of the comments, but it means that fetching the most recent comment involves something like
@@ -146,6 +150,14 @@ As comments are editted or appended, new records are added to the database. Olde
and just fetch the first record.
The database is created the first time one of the **dirnotes** apps is run.
* misc
The <code>**dirnotes**</code> gui app has a desktop icon built into the code. There is not need for an external .icon file.
There was _no_ consideration given for language translation. Email [me](mail:patb@pbeirne.com) if you want this, or can help.
### MacOS {#macos}
The **MacOS** inherently supports file comments. The Finder app manages most of the user activity. It handles file comments in a similar manner to **Dirnotes**. Comments are stored in two places:
@@ -164,12 +176,17 @@ If the Finder is used to copy/move files, the comments are moved properly to bot
## DEVELOPMENT STATUS{#status}
Each app is a standalone file. That means there is a lot of redundancy between the tthree apps. And there _may_ be some inconsistency.
Each app is a standalone file. That means there is a lot of redundancy between
the three apps. And there _may_ be some inconsistency.
2022-10-04
: All three apps are functioning and usable.
The _config_file_ is fully implemented.
Themes are not implemented.
Comments are intended to be _utf-8_, but are _strings_ in some places.
MacOS code is not written yet.
The _help_ dialogs in <code>**dirnotes-tui**</code> are meagre.
The _config_file_ is fully implemented.
Themes are not implemented.
Comments are intended to be _utf-8_, but are _strings_ in some places.
MacOS code is not written yet.
The _help_ dialogs in <code>**dirnotes-tui**</code> are meagre.
The _qt-gui_ app is working pretty well.