如何在组织模式议程树视图中显示条目的完整上下文
在组织模式的每日/每周议程视图中,有没有办法显示条目的完整上下文?
我对代码的解读是,它找到时间戳上方的第一个标题并显示它。然而,就我而言,该标题通常有 3-4 层深度,如果没有上面的项目符号,就没有意义。似乎也没有办法可以轻松改变这一点。过滤是微不足道的,但不会改变基本的表示格式。
In org-mode's daily/weekly agenda view, is there a way to display the full context of the entries?
My reading of the code is that it finds the first heading above the timestamp and displays that. However, in my case, that heading is often 3-4 levels deep and doesn't make sense without the bullets above it. It also doesn't seem like there are hooks to easily change that. Filtering is trivial, but not changing the fundamental presentation format.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
无法直接在议程视图中显示所有上下文,但您可以右键单击议程视图中的标题,它将在主窗口中以稀疏树上下文显示该标题。
您可能必须折叠主窗口中的所有内容才能右键单击定位以显示稀疏树视图。
这似乎与您正在寻找的非常接近。要进行检查,请执行以下操作:
除了使用上述右键单击功能之外,您还可以采取多种措施来获取有关议程视图中上下文的更好信息。
首先,您可以自行安排标题,以便为您提供更多上下文信息。例如,可以有许多标记为“任务”的第四级标题,每个标题都包括与每棵树中上面的标题相关的任务。但这不会在议程视图中提供良好的上下文信息,因为每一行的标题文本都是相同的(即“任务”)并且在上下文中没有信息。一个简单的解决方案就是使标题更加具体,例如“项目 xxxx 任务”和“项目 yyy 任务”。
在议程视图中获取更多上下文的另一种方法是使用“类别”。默认情况下,议程视图中的第一列是包含标题的文件名,但如果标题有类别,则会显示类别。要将类别分配给标题及其所有子树,您可以向主标题添加类别属性,如下所示:
现在,议程视图将在第一列中显示从以下位置收集的每个议程行的“Project xxx Stuff”那个标题子树。
There is no way to display all the context directly in the agenda view, but you can right click on the headline in agenda view and it will show you that headline in the main window in a sparse tree context.
You may have to collapse everything in the main window in order for the right-click-locating to show the sparse-tree view.
That seems pretty close to what you're looking for. To check, do this:
There are several things you can do to get better information about context in agenda views, short of using the right-click function described above.
First, you can arrange your headlines themselves so that they give you more context information. It would be possible, e.g., to have numerous 4th level headlines labeled 'Tasks', each which includes tasks related to the headings above in each tree. That's not going to give good context info in agenda view, though, since each line's headline text would be the same (i.e., 'Task') and have no info in context. A simple solution would simply be to make the headlines more specific, e.g., 'Project xxxx Tasks' and 'Project yyy Tasks'.
A different way of getting more context in agenda view would be by using 'categories'. The first column in agenda view is the filename containing the headline by default, but if the headline has a category the category will be shown. To assign a category to a headline and all of its subtree you can add a category property to the main headline, like this:
Now agenda view will show 'Project xxx Stuff' in the first column for each of the agenda lines that are gathered from that headlines subtree.
也许议程并不是您真正需要的。我会使用这个:
“Mx org-sparse-tree RET D”,
然后选择日期范围并浏览结果。
华泰
Maybe an agenda is not really what you need. I would use this:
`M-x org-sparse-tree RET D'
then select the date range and navigate through the results.
HTH
跟随模式 (
Sf
) 非常接近 OP 正在寻找的内容。归功于 @armando.sano 对另一个答案的评论。Follow-mode (
S-f
) gets pretty close to what the OP is looking for. Credit to @armando.sano in a comment on another answer.