All three apps updated with newest library.

Database is now at ~/.local/share/dirnotes/dirnotes.db
and the config is at ~/.config/dirnotes/dirnotes.conf
Fixed double-write in dirnotes (gui) (it was re-entering .change())
This commit is contained in:
2022-11-02 00:01:38 -04:00
parent de894e57bf
commit 62027a2729
4 changed files with 157 additions and 129 deletions
+28 -12
View File
@@ -10,7 +10,8 @@ Table of Contents
* [LIMITATIONS](#limitations)
* [PROGRAMMER NOTES](#programmer-notes)
* [MacOS](#macos)
* [DEVELOPMENT STATUS](#status)
* [DEVELOPMENT STATUS](#development-status)
* [QUESTIONS](#questions)
## SYNOPSIS
@@ -41,14 +42,20 @@ which may be handy for scripting. This all can also do maintenance on the databa
## USAGE
The <code>**dirnotes**</code> program displays usage and keystoke info when you press _F1_. The <code>**dirnotes-tui**</code> program display onscreen usage when you press the 'h' key, or _F1_.
The <code>**dirnotes**</code> program displays usage and keystoke info
when you press _F1_. The <code>**dirnotes-tui**</code> program display
onscreen usage when you press the 'h' key, or _F1_.
The <code>**dirnotes-cli**</code> program has a man page.
In short, you navigate <code>**dirnotes**</code> and <code>**dirnotes-tui**</code> by using the up/down arrow keys, <enter> to enter into a directory.
The **-tui** version accepts _e_ for edit,
_s_ for sort, _M_ to change between xattr/database priority.
In short, you navigate <code>**dirnotes**</code> and
<code>**dirnotes-tui**</code> by using the up/down arrow keys,
<enter> to enter into a directory.
The **-tui** version accepts _e_ for edit, _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.
The **<code>dirnotes-cli</code>** has options
for _-l_ list and _-c_ create a comment. See also <code>dirnotes-cli.1</code>
man page.
All three apps in the **dirnotes** family have the ability to
copy/move files from the current directory, keeping the comments intact.
@@ -76,7 +83,8 @@ This is a JSON file, with three attributes that are important:
> * database (default: <code>~/.local/share/dirnotes/dirnotes.db</code>, sensible alt: <code>/var/lib/dirnotes.db</code>)
> * start_mode (_xattr_ or _db_ display priority)
The _config_file_ should be auto-generated the first time one of the **dirnotes** apps is run.
The _config_file_ should be auto-generated the first time one of
the **dirnotes** apps is run.
## LIMITATIONS
@@ -210,7 +218,7 @@ There was _no_ consideration given for language translation. Email [me](mail:pat
All these apps only accomadate a single line comment. An embedded newline will
cause unpredictable behaviour.
### MacOS {#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:
@@ -222,11 +230,15 @@ The **MacOS** inherently supports file comments. The Finder app manages most of
The user can examine the file comments by opening the GetInfo dialog, and scrolling down to "Comment"
If the Finder is used to copy/move files, the comments are moved properly to both destinations. If you use the os to copy/move the files, you can ask that the xattr properties get moved, but the .DS-Store file will not be updated. That means the Finder will not see file comments on the destination file.
If the Finder is used to copy/move files, the comments are moved properly
to both destinations. If you use the os to copy/move the files,
you can ask that the xattr properties get moved, but the .DS-Store
file will not be updated. That means the Finder will not see
file comments on the destination file.
**MacOS** has AppleScript, by which you can ask the Finder to perform the file copy/move. In this case, the comments are moved properly.
## DEVELOPMENT STATUS{#status}
## DEVELOPMENT STATUS
Each app is a standalone file. That means there is a lot of redundancy between
the three apps. And there _may_ be some inconsistency.
@@ -241,7 +253,7 @@ the three apps. And there _may_ be some inconsistency.
The _qt-gui_ app is working pretty well.
QUESTIONS:
## QUESTIONS:
There are several open-ended questions that need to be answered.
Does anyone have an opinion?
@@ -250,9 +262,13 @@ Does anyone have an opinion?
2. Is it ok to put the config file and database file buried in ~/.config and ~/.local?
These directories exist on computers with a gui/windowing system installed, but don't neccessarily exist on headless servers. Perhaps the default locations should be in the user directory? (~/.dirnotes.conf and ~/.dirnotes.db)
These directories exist on computers with a gui/windowing system installed,
but don't neccessarily exist on headless servers.
Perhaps the default locations should be in the user directory?
(~/.dirnotes.conf and ~/.dirnotes.db)
3. Who needs translations?
4. Does anybody have a better edit-window for CURSES?
5. Is anyone interested in the MacOS version?