Re: [org-cite] request for coding help on a capf to insert citation key

2021-06-21 Thread Bruce D'Arcus
On Sat, Jun 5, 2021 at 12:13 PM Bruce D'Arcus wrote: > > I've been struggling with this for a while, and am a mediocre programmer, so > thought I'd ask for help here. I made progress on this, with one question, for Nicolas: What's the best way to constrain the capf? Idea is if a user is within

Re: [org-cite] request for coding help on a capf to insert citation key

2021-06-06 Thread Bruce D'Arcus
One other idea, Nicolas: Is there room to include a org-cite somehow, so that one had a defcustom like: (setq org-cite-complete-key-candidates my-candidates) ;; here override default with results from my package (setq my-candidates (bibtex-actions--get-candidates)) ... and default could be some

Re: [org-cite] request for coding help on a capf to insert citation key

2021-06-05 Thread Bruce D'Arcus
Round 2, which should address the "regex" todo. --8<---cut here---start->8--- (defun bibtex-actions-complete-key-at-point-oc () "Complete org-cite citation key at point. When inserting '@' in a buffer the capf UI will present user with a list of entries, fr

[org-cite] request for coding help on a capf to insert citation key

2021-06-05 Thread Bruce D'Arcus
I've been struggling with this for a while, and am a mediocre programmer, so thought I'd ask for help here. I started out writing this generate capf to insert citation keys, but have decided to make it specific to org-cite. Here's the commented function. TIA. Note the "candidates" variable acce