!rUhEinythPhVTdddsb:matrix.org

org-mode

793 Members
Digital and analog. | "Any sufficiently advanced hobby is indistinguishable from work." | https://orgmode.org115 Servers

Load older messages


SenderMessageTime
6 Nov 2024
@jwwiegley:matrix.orgJohn Wiegley
Error in post-command-hook (vertico--exhibit): (wrong-type-argument stringp nil)
Error in pre-command-hook (vertico--prepare): (wrong-type-argument stringp nil)
07:14:21
@jwwiegley:matrix.orgJohn Wiegley alphapapa: I want to give org-ql a big hug 19:45:36
@jwwiegley:matrix.orgJohn Wiegley

If there's one thing I could ask for for christmas, it would be a complete normalization of arguments to all the org-ql-* family of functions. Some want queries as arguments, some want them as keywords, some want them escaped, etc. It would save me neurons if there were "one way" for all of them.

In fact, maybe even a single org-ql entry point with a keyword to specify :select :search, etc

19:47:09
@alphapapa:matrix.orgalphapapa
In reply to @jwwiegley:matrix.org

If there's one thing I could ask for for christmas, it would be a complete normalization of arguments to all the org-ql-* family of functions. Some want queries as arguments, some want them as keywords, some want them escaped, etc. It would save me neurons if there were "one way" for all of them.

In fact, maybe even a single org-ql entry point with a keyword to specify :select :search, etc

I'm happy to talk about that if you want to open an issue on the tracker. :)

Also see org-ql-query which might be closer to what you want

19:50:13
@jwwiegley:matrix.orgJohn Wiegley

I'm trying to use org-ql-refile right now, and noticing a few odds things:

  1. (HR does not find a heading that contains "(HR)". It seems I can't use parens with any combination of escaping.
  2. heading:"HR" find items whose heading does not contain that string, and most important omits the heading with "(HR)"!
19:51:56
@jwwiegley:matrix.orgJohn Wiegley *

I'm trying to use org-ql-refile right now, and noticing a few odd things:

  1. (HR does not find a heading that contains "(HR)". It seems I can't use parens with any combination of escaping.
  2. heading:"HR" find items whose heading does not contain that string, and most important omits the heading with "(HR)"!
19:52:03
@jwwiegley:matrix.orgJohn Wiegley heading:(HR is what finds the heading I wanted 19:52:41
@jwwiegley:matrix.orgJohn WiegleyHow is it so fast? Are you sacrificing kittens to some unknown deity each time I invoke a query?20:02:23
@alphapapa:matrix.orgalphapapa
In reply to @jwwiegley:matrix.org

I'm trying to use org-ql-refile right now, and noticing a few odd things:

  1. (HR does not find a heading that contains "(HR)". It seems I can't use parens with any combination of escaping.
  2. heading:"HR" find items whose heading does not contain that string, and most important omits the heading with "(HR)"!
That's probably because the crude heuristic is mis-detecting it as a sexp query, but you're trying to use it as a string query.
20:45:31
@alphapapa:matrix.orgalphapapa
In reply to @jwwiegley:matrix.org
How is it so fast? Are you sacrificing kittens to some unknown deity each time I invoke a query?
Haha, nope, just the work I put into translating certain search predicates into regexps, and some bespoke caching for some predicates
20:46:43
@alphapapa:matrix.orgalphapapa
In reply to @alphapapa:matrix.org
That's probably because the crude heuristic is mis-detecting it as a sexp query, but you're trying to use it as a string query.
Though I don't understand item 2. Maybe worth a bug report.
20:47:37
@jwwiegley:matrix.orgJohn WiegleyI did submit another report for you21:07:23
7 Nov 2024
@alphapapa:matrix.orgalphapapa

I think you've found a bug in the link predicate for links with certain characteristics. Vertico makes it hard to see the backtrace buffer, but with a bit of fiddling you can see it, or you can use the same query on the same buffers without Vertico being involved and you should get a backtrace.

02:08:50
@alphapapa:matrix.orgalphapapa

Hm, interesting, I found a place in my Org files where I have a source block with a Bash script, and the double-bracket constructs seem to be attracting the attention of the link predicate's matching code, and it's failing there.

03:15:38
@alphapapa:matrix.orgalphapapa

Yep, found the fix.

03:16:47
@alphapapa:matrix.orgalphapapa
In reply to John Wiegley
I did submit another report for you

Easy fix, I think, please see https://github.com/alphapapa/org-ql/issues/475

03:24:45
@alphapapa:matrix.orgalphapapa

John Wiegley: Fix for that link-searching error: https://github.com/alphapapa/org-ql/commit/0e68cc9facba048d16f4cfdba0b269b7db66fe4b

03:46:27
@jwwiegley:matrix.orgJohn WiegleyI'm mentioned in the README for org-ql!!! Fame achieved.03:46:57
@alphapapa:matrix.orgalphapapa
In reply to John Wiegley
I'm mentioned in the README for org-ql!!! Fame achieved.

LOL you have it entirely backwards my friend! Now you're in my readme, so now I am famous! :D

03:47:18
@jwwiegley:matrix.orgJohn WiegleyLOL, so not how I see myself my friend03:47:31
@jwwiegley:matrix.orgJohn WiegleyI'm just a knowledge worker toiling away in the mines03:47:42
@alphapapa:matrix.orgalphapapa

Ditto. I love the humility that runs in Emacsland. :)

03:47:59
@jwwiegley:matrix.orgJohn Wiegleybtw, for my Emacs-related endeavors, you can call me johnw@gnu.org03:52:23
@jwwiegley:matrix.orgJohn Wiegleyno worries using the Gmail, just try to keep the gnu.org address visible for Emacs activities03:52:42
@jwwiegley:matrix.orgJohn Wiegley * no worries using the Gmail, I just try to keep the gnu.org address visible for Emacs activities03:52:49
@karthink:matrix.orgkarthinkJust read Sacha's writeup about your recent Org usage -- it's pretty crazy. (https://sachachua.com/blog/2024/11/excerpts-from-a-conversation-with-john-wiegley-johnw-and-adam-porter-alphapapa-about-personal-information-management/)03:54:08
@jwwiegley:matrix.orgJohn WiegleyI think our experiment may be a success, the ideas in it are rough, but they seem to come through03:54:34
@alphapapa:matrix.orgalphapapa
In reply to John Wiegley
btw, for my Emacs-related endeavors, you can call me johnw@gnu.org

Ah, will try to remember that, thanks. :)

03:56:08
@karthink:matrix.orgkarthinkI 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 duplicates03:56:40
@jwwiegley:matrix.orgJohn WiegleyYes, I use more than one whilelist now03:57:04

Show newer messages


Back to Room ListRoom Version: 1