如何在组织模式议程树视图中显示条目的完整上下文

发布于 2024-08-31 21:03:04 字数 157 浏览 5 评论 0原文

在组织模式的每日/每周议程视图中,有没有办法显示条目的完整上下文?

我对代码的解读是,它找到时间戳上方的第一个标题并显示它。然而,就我而言,该标题通常有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

盛夏尉蓝 2024-09-07 21:03:04

无法直接在议程视图中显示所有上下文,但您可以右键单击议程视图中的标题,它将在主窗口中以稀疏树上下文显示该标题。

您可能必须折叠主窗口中的所有内容才能右键单击定位以显示稀疏树视图。

这似乎与您正在寻找的非常接近。要进行检查,请执行以下操作:

  1. 创建所需的议程视图。
  2. 在主文档窗口中,将所有内容折叠为一级标题。
  3. 右键单击议程视图中所需的标题。它应该在主文档窗口的稀疏树上下文中显示标题。

除了使用上述右键单击功能之外,您还可以采取多种措施来获取有关议程视图中上下文的更好信息。

首先,您可以自行安排标题,以便为您提供更多上下文信息。例如,可以有许多标记为“任务”的第四级标题,每个标题都包括与每棵树中上面的标题相关的任务。但这不会在议程视图中提供良好的上下文信息,因为每一行的标题文本都是相同的(即“任务”)并且在上下文中没有信息。一个简单的解决方案就是使标题更加具体,例如“项目 xxxx 任务”和“项目 yyy 任务”。

在议程视图中获取更多上下文的另一种方法是使用“类别”。默认情况下,议程视图中的第一列是包含标题的文件名,但如果标题有类别,则会显示类别。要将类别分配给标题及其所有子树,您可以向主标题添加类别属性,如下所示:

 :PROPERTIES:
  :CATEGORY:Project xxx Stuff
  :END:

现在,议程视图将在第一列中显示从以下位置收集的每个议程行的“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:

  1. Create desired agenda view.
  2. In main document window collapse everything to just first level headlines.
  3. Right-click on the desired headline in the agenda view. It should show the headline in sparse tree context in the main document window.

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:

 :PROPERTIES:
  :CATEGORY:Project xxx Stuff
  :END:

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.

小矜持 2024-09-07 21:03:04

也许议程并不是您真正需要的。我会使用这个:

“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

温柔戏命师 2024-09-07 21:03:04

跟随模式 (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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文