如何在 emacs 组织模式中结束待办事项列表 [英] how to end TODO lists in emacs org-mode

查看:18
本文介绍了如何在 emacs 组织模式中结束待办事项列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 TODO 项目列表,我试图在同一个文件中包含 2 个 TODO 列表,但似乎无法结束第一个.

I have a list of TODO items, and I'm trying to have 2 TODO lists in the same file, but can't seem to end the first one.

FIRST LIST: TODAY
* TODO Item 1
  Description
* TODO Item 2
  Description


SECOND LIST: TOMORROW
* TODO Item 3
  Description
* TODO Item 4 
  Description

不幸的是,SECOND LIST: TOMORROW 现在是 TODO Item 2 描述的一部分.我的意思是,当我点击 shift-tab 时,我不再看到文本 SECOND LIST: TOMORROW,因为它折叠在 TODO Item 2 下.我看到的是..

Unfortunately, SECOND LIST: TOMORROW is now part of the description of TODO Item 2. By this, I mean that when I hit shift-tab, I no longer see the text SECOND LIST: TOMORROW because it folds under TODO Item 2. What I see is..

FIRST LIST: TODAY
* TODO Item 1
* TODO Item 2
* TODO Item 3
* TODO Item 4 

虽然我想看到的是...

While what I'd like to see is...

FIRST LIST: TODAY
* TODO Item 1
* TODO Item 2


SECOND LIST: TOMORROW
* TODO Item 3
* TODO Item 4 

我怎样才能退出描述模式并开始一个新的、独立的列表?

How can I escape out of the description mode and start a new, independent list?

EDIT/UPDATE 我在列表之间添加了空格以响应评论.从这里,'一个列表在每个项目结束时结束,这意味着在任何比项目缩进少或相等的行之前在顶级.它也在两个空行之前结束'---由此,我怀疑必须有一种方法可以在 .org 文件中包含多个列表.但是,在我的示例中,我注意到 2 个空行并未结束列表,而是继续作为描述.

EDIT/UPDATE I added spaces in between the lists in response to comments. From here, 'A list ends whenever every item has ended, which means before any line less or equally indented than items at top level. It also ends before two blank lines'---From this, I suspect there must be a way to have more than one list in a .org file. However, in my example, I notice 2 blank lines is not ending the list, but continues on as if a description.

这是一个以某种方式成为议程而不是简单列表的特征吗?我知道以下列举的/does/另一方面结束了列表:

Is this a feature of it being somehow an agenda rather than a plain list? I know that the following enumerated /does/ end the list on the other hand:

FIRST LIST: TODAY
1. Item 1
   Description
2. Item 2
   Description


Second LIST: Tomorrow
1. Item 3
   Description
2. Item 4
   Description

我真的没有任何不尊重你的 emacs 向导(让我惊讶)的意思,因为我一直坚持找到一种方法来做到这一点,我知道这个工具有很多我还不明白的力量.但我希望在一个 .org 文件中有 2 个独立的非枚举待办事项列表,这样我就可以快速(对我而言)从今天到明天将未完成的任务洗牌,而无需深入设置依赖项和截止日期.

I really don't mean any disrespect to you emacs wizards (who amaze me) in that I keep insisting on finding a way to do this, and I understand there's a lot of power to this tool I don't understand yet. But I would like to have 2 independent non-enumerated todo lists in one .org file, so I can quickly (for me) shuffle unfinished tasks from today to tomorrow without going into depth setting dependencies and due dates.

推荐答案

您不能在单个文件中执行此操作.Org 将标题下的所有内容视为属于它,直到您到达同一级别的另一个标题.除了开始一个新的标题之外,没有办法结束一个标题.

You cannot do so within a single file. Org treats all content under a headline as belonging to it until you reach another headline of the same level. There is no way to end a headline short of starting a new one.

这确实有一些缺点,如果您想要一个子标题,则必须使用空白标题,然后在没有任何新标题的情况下返回父级.这意味着唯一不属于标题的文本是第一个标题之前的文本,这本质上相当于摘要.

This does have a few shortcomings in that you have to use blank headlines if you want a sub-heading and then to return to the parent level without any new headline. This means the only text that does not belong to a headline is the text before the first heading, which essentially is the equivalent of an abstract.

我能想到的两个解决方案是

The two solutions I can think of would be

  1. 使用 daramarak 提供的解决方案

  1. Use a solution such as the one offered by daramarak

使用 2 个单独的组织文件,然后使用议程作为跟踪独立列表中多个 TODO 的方式,这些列表仍然可以放在一起以查看概览.

Use 2 separate Org files then use the Agenda as a way of keeping track of the multiple TODOs in independent lists that can still be put together to see an overview.

这篇关于如何在 emacs 组织模式中结束待办事项列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆