7 Nov 2024 |
John Wiegley | I should also whitelist property keys | 03:57:10 |
John Wiegley | making a note to do that... | 03:57:14 |
John Wiegley | at the beginning of my Org file, if I have a :TAGS_ALL: file property, then all tags in that file must be a member of this list | 03:57:47 |
alphapapa |
In reply to
karthink
I love your idea of strict linting with custom rules -- I'd appreciate even something basic like whitelisting allowed tags, that should catch the usual offenders like singular/plural and abbreviated/full-version duplicates
The singular/plural tag thing… it still plagues me to a minor extent. org-ql does have regexp-based tag matchers to work around that, though… | 03:57:51 |
karthink | I don't know haskell and couldn't write a parser to save my life, but perhaps I can dd some custom org-lint rules for personal usage | 03:57:57 |
John Wiegley | If you can give me an anonymized file, maybe I can see how difficult it would be to extend the parser to handle it | 03:58:17 |
John Wiegley | but you'd probably want to be able to write your own linting rules too.... | 03:58:32 |
karthink | * I don't know haskell and couldn't write a parser to save my life, but perhaps I can add some custom org-lint rules for personal usage | 03:58:37 |
karthink | In reply to @alphapapa:matrix.org
The singular/plural tag thing… it still plagues me to a minor extent. org-ql does have regexp-based tag matchers to work around that, though… org-ql is the only way I can even use Org any more, with decade old, 20k+ line files | 03:59:14 |
alphapapa |
In reply to
John Wiegley
If you can give me an anonymized file, maybe I can see how difficult it would be to extend the parser to handle it
My unpackaged.el library has a function to anonymize buffer content, FYI. | 03:59:18 |
alphapapa |
In reply to
karthink
In reply to @alphapapa:matrix.org
The singular/plural tag thing… it still plagues me to a minor extent. org-ql does have regexp-based tag matchers to work around that, though… org-ql is the only way I can even use Org any more, with decade old, 20k+ line files
Sounds like your usage is similar to John's in some ways. :) | 03:59:41 |
John Wiegley | I have only 3 Org files longer than 20K lines | 04:00:43 |
karthink | In reply to @jwwiegley:matrix.org but you'd probably want to be able to write your own linting rules too.... Yeah, I think I'll start with a simple solution that I completely understand before outsourcing it to a library I don't | 04:01:27 |
karthink | In reply to @alphapapa:matrix.org
Sounds like your usage is similar to John's in some ways. :) It's mostly because of fear of archiving -- the structure is lost and I'm afraid I won't be able to find or restore them again | 04:02:15 |
karthink | In reply to @alphapapa:matrix.org
Sounds like your usage is similar to John's in some ways. :) * The large file sizes are mostly because of fear of archiving -- the structure is lost and I'm afraid I won't be able to find or restore them again | 04:02:31 |
John Wiegley | I had that same archive worry for a long time, but at long last I gave up on it and went all the way with archiving and relying on archive context being stored in properties. To date it has never gotten in my way. I can find what needs to be found. | 04:02:57 |
karthink | Often the ARCHIVE_OLPATH property in the archived entry does not point to a path that exists anymore, since I reorganize or move project headings around | 04:03:57 |
John Wiegley | I only use structure to browse very active things; things that are inactive for any length of time are only accessed via filtering or searching — simply because I forget their place in the hierarchy after a time | 04:04:00 |
John Wiegley | yes, context can get stale | 04:04:33 |
John Wiegley | but oh well, all data gets stale | 04:04:37 |
alphapapa |
In reply to
karthink
Often the ARCHIVE_OLPATH property in the archived entry does not point to a path that exists anymore, since I reorganize or move project headings around
I feel the same way to some extent. I wonder if we need to "fix" or extend the archiving features to use entry IDs more… | 04:05:03 |
John Wiegley | that's a lovely idea. ARCHIVE_OLID! | 04:05:35 |
John Wiegley | now I really need the archive hook I mentioned above; I'll need to PR this one | 04:05:56 |
karthink | John Wiegley: I'm yet to check out the org-context.el file you shared | 04:07:05 |
karthink | Perhaps that'll help with archive hesitancy | 04:07:27 |
John Wiegley | I'll definitely add this support to org-context.el, but I also need org-archive to record the outline parent ID, and for that I need a hook that's not currently available... | 04:07:47 |
John Wiegley | but I'll PR the hook along iwth a new save-context-info key | 04:08:18 |
John Wiegley | ids are The Way | 04:08:32 |
karthink | Will you make org-context an Emacs package? | 04:12:22 |
karthink | It's hard to track updates otherwise | 04:12:34 |