alphapapa / alphapapa/org-ql

Nil queries should match nothing

Offen
#224 3 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @alphapapa Auf GitHub ansehen
Vorherrschende Sprache
Emacs Lisp
Sterne
1.6k
Forks
120
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hello,
I've some commands that run on org-agenda-finalize-hook that I don't want to run when I execute `org-ql-search`.
The way I'm thinking of doing this is something like this

```elisp
(add-hook 'org-agenda-finalize-hook
(lambda()
(unless (org-ql-view)
(my-custom-agenda-modifications))))
```

I've just started exploring this project so it is most likely a miss, in reading the code, at my end.

I only see these local variables that can possibly be used for the purpose
```elisp
(defvar-local org-ql-view-buffers-files nil)
(defvar-local org-ql-view-query nil)
(defvar-local org-ql-view-sort nil)
(defvar-local org-ql-view-narrow nil)
(defvar-local org-ql-view-super-groups nil)
(defvar-local org-ql-view-title nil)
```
Is there any simpler and more direct way of achieving this?

Thank you :)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.