alphapapa / alphapapa/org-super-agenda

Add explicit :or operator for use within :and operator?

オープン
#241 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement help wanted
主要言語
Emacs Lisp
スター
1.5k
フォーク
107
PR マージ指標
30日以内にマージされた PR はありません

説明

I have a number of very intricate org-super-agenda views. I have many instances where the code could be greatly simplified if there were some way to specify a boolean OR within an :and selector. For example:

```
(:name "Stuff to do"
:and (
:tag "mustdo"
:not (:todo "ONHOLD")
:ProjectID "ClientX"
:tag "email"
)
:and (
:todo "NOW"
:not (:todo "ONHOLD")
:ProjectID "ClientX"
:tag "email"
)
:and (
:priority "A"
:not (:todo "ONHOLD")
:ProjectID "ClientX"
:tag "email"
)
)
````
Only the first item differs in each of the above :and selectors. If there were some way to specify OR within the :and selector, the above could be simplified to:
```
(:name "Stuff to do"
:and (
:or (:tag "mustdo" :todo "NOW" :priority "A")
:not (:todo "ONHOLD")
:ProjectID "ClientX"
:tag "email"
)
)
```
The above is much easier to maintain and would greatly reduce the length of my code, at least. Is this enhancement at all feasible?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。