gtd的todo.txt支持脚本。

todo.txt-gtd的Python项目详细描述


todo.txt gtd

我的定制todo.txt环境的方法 Getting Things Done

Installing

脚本

清除脚本

给定文件~/dropbox/todo/todo.txt中的以下文本:

Get an oil change @errands +CarMaintenance
Get a Haircut @errands +Grooming
Check the car battery water level @home +CarMaintenance

…运行tdtcleanup脚本会将该文件转换为以下内容:

# CarMaintenance
#

Get an oil change @errands +CarMaintenance
Check the car battery water level @home +CarMaintenance

# Grooming
#

Get a Haircut @errands +Grooming

# _None
#

现在todo.txt可以作为一个全面的项目文件处理。任务是 按项目组织,可以添加与项目相关的任意文本 作为评论。

由单个单词组成的“”注释是一个项目标题,定义 以下任务的默认项目。最后的_none项目是特殊的- 它收集使用各种todo.txt应用程序添加的任务。

在随后的运行中,tdtcleanup将执行以下操作:

  • 按项目名称按字母顺序对项目节排序
  • 将“+”项目标记添加到项目节中尚未包含的任何任务。任务在此定义为包含“@”上下文的文本行。此处理不会在\u none部分中发生。
  • 将任务移动到适当的项目部分(如果它们还不存在的话)。如果需要,将使用项目标题创建节。

上下文列表脚本

tdtlist脚本按上下文列出todo.txt中的任务。

如果您通过tdtlist处理上述任一todo.txt文件,它将输出以下内容

@errands

Get an oil change @errands +CarMaintenance
Get a Haircut @errands +Grooming

@home

Check the car battery water level @home +CarMaintenance

列表以文本和libreoffice“.odt”格式保存。它可以是可选的 创建后自动打开。

项目脚本

tdtproj脚本支持使用单个项目或一组项目。它打开一个 只使用todo.txt文件中指定的项目节编辑会话,并替换它 会话完成后的部分。

如果从编辑会话中删除了所有行,则不会对原始行进行任何更改 TOdo.txt文件。如果只保留标题行,则从原始行中删除所有其他行。

使用“-l”选项运行tdtproj以获取当前项目列表。

有一个bash完成脚本,它用适当的项目响应tab完成 列表。

备份脚本

tdtbackup是用于对todo.txt文件进行旋转备份的实用程序脚本。

使用gtd todo.txt

始终向任务添加“@”上下文,将它们放在正确的gtd列表中,并将它们标识为tdtcleanup

将“+”项目名称添加到各个任务,或将它们实际移动到相应的项目部分。

根据需要添加注释,以完整记录每个项目。

每周回顾:

  • 运行tdtcleanup
  • 删除已完成的任务
  • 根据需要更新多步骤任务的“@~”->;“@”上下文
  • 根据需要添加任务和“+”项目标记
  • 再次运行tdtcleanup

我发现运行“for proj in `tdtproj -l`; do tdtproj $proj; done”是一种清除思想障碍的方法 完成这个。

< H1>配置现有todo.txt应用程序

筛选“@”,将任务列表限制为仅包含任务。对于由于上一步未完成而无法执行的任务,我使用“~”作为特殊上下文标志(例如“@~差事”)。如果选择此约定,则可能还需要从列表中筛选出“@~”。

避免“存档”操作。这通常会删除todo.txt中的重复行。这会对格式设置造成严重破坏,消除文件中的空白和空注释行。

gtd的特定todo.txt应用程序

我成功地使用了经典的todo.txt CLI。如前所述,避免存档操作。

我更喜欢ToPydo,因为它支持 共threshold dates and recurrance。注意,它需要一个small change来避免删除空行。确保使用'-a'选项在任务完成时禁用自动存档。

SimpleTask在android上运行良好。使用“列表”选项卡制作一个“当前任务”筛选器,该选项卡包含一个选中的“反转筛选器”框,加上选中的“-”和所有要消除的上下文(例如“某天”)。

运行'tdtlist-l'可打印待办事项列表,供脱机使用。

当然,与todo列表交互的主要方式是直接编辑todo.txt文件。

my.bashrc支持todo.txt:

alias vitodo='vim ~/Dropbox/todo/todo.txt; tdtcleanup'
alias cdtodo='cd ~/Dropbox/todo/'
alias todo='topydo -a -t ~/Dropbox/todo/todo.txt'

我的亲信:

0 2 * * * tdtbackup; tdtcleanup; tdtlist

Installing

The Deb package

sudo apt-get update
sudo dpkg -i tdtgtd*.deb
sudo apt-get -f install

pip安装:

pip install todo.txt-gtd

用法

$ tdtcleanup -h
usage: tdtcleanup [-h] [-f FILE]

Clean up the todo.txt file in a GTD fashion

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  the todo.txt file location (defaults to
                        ~/Dropbox/todo/todo.txt)

$ tdtlist -h
usage: tdtlist [-h] [-f FILE] [-l] [TERM [TERM ...]]

List the tasks in todo.txt, by @category

positional arguments:
  TERM                  search terms to filter the reported tasks

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  the todo.txt file location (defaults to
                        ~/Dropbox/todo/todo.txt)
  -l, --launch          open the task list, after creating

Process the todo.txt file, and save tasks lists, by context, in text and
LibreOffice formats. The lists are saved in the same directory as todo.txt.
Optionally, the LibreOffice list can be automatically opened.

$ tdtproj -h
usage: tdtproj [-h] [-f FILE] [-l] [TERM [TERM ...]]

Work with one or more GTD projects in todo.txt

positional arguments:
  TERM                  search terms to filter the project(s) to use

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  the todo.txt file location (defaults to
                        ~/Dropbox/todo/todo.txt)
  -l, --list            just list the projects in the current todo.txt file

Edit one or more isolated projects in a todo.txt file (todo.txt projects are
denoted by a a leading "+"). If the entire project is deleted during the edit
session, the original project is preserved in todo.txt. If just the Project
Header line is kept, then the project is deleted in the original. The default
text editor, set by 'update-alternatives', is used. This can be overridden by
setting the 'EDITOR' environment variable.

$ tdtbackup -h
usage: tdtbackup [-h] [-f FILE] [-b BACKUPDIR] [-n NUM]

Back up the todo.txt todo.txt file

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  the todo.txt file location (defaults to Dropbox)
  -b BACKUPDIR, --backupdir BACKUPDIR
                        the backup location (defaults to "todo/backup" in
                        Dropbox)
  -n NUM, --num NUM     the number of backup files to keep (defaults to 14)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何设置apache camel groovy脚本组件的属性   java理解如何在if语句条件内创建对象   java使用访问者和复合模式构建过滤流   游戏框架上的java生成管理区(CRUD)   是java中的toString()方法。util。日期与地区无关?   java是否可以扩展AppIUMFieldCorator类以使其接受自定义注释?   内存管理java jvm最大和最小堆选项   JavaSpringMVC:正确的异常处理   java保存拖放图像按钮的位置   java如何使用replaceAll()替换算术(即0+1)   java获取方法调用方的方法名   java在JOptionPane输出上打印一行中的10组素数   java Spring/Hibernate如何访问私有成员?   java单例EJB在EJB容器外部的行为应该相同,但不相同   多线程处理一个“不可能”的null返回使用Java IO读取文件   java如何从axis web服务返回复杂对象   java ImageView在安卓中不起作用   java如何在安卓中使用带正则表达式的SpannableString?