gpt4 book ai didi

emacs - 过滤不包含特定 PROPERTY 的标题

转载 作者:行者123 更新时间:2023-12-01 12:55:14 25 4
gpt4 key购买 nike

我想使用

设置自定义命令
org-agenda-custom-commands 

变量,它应该选择不包含名为“ID”的 PROPERTY 的标题。过滤表达式是什么?

最佳答案

您可以使用反向匹配来查找与 ID 匹配的标题。来自manual

A search string can use Boolean operators ‘&’ for AND and ‘|’ for OR. ‘&’ binds more strongly than ‘|’. Parentheses are currently not implemented. Each element in the search is either a tag, a regular expression matching tags, or an expression like PROPERTY OPERATOR VALUE with a comparison operator, accessing a property value. Each element may be preceded by ‘-’, to select against it, and ‘+’ is syntactic sugar for positive selection. The AND operator ‘&’ is optional when ‘+’ or ‘-’ is present. Here are some examples, using only tags.

使用与您的问题相同的查询 Matching property in agenda view ,您只需否定搜索,它将提供所有与 ID 不匹配的行。

(setq org-agenda-custom-commands
'(("c" "MY Agenda"
((tags "-ID={.+}")))))

关于emacs - 过滤不包含特定 PROPERTY 的标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10089637/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com