删除截止日期快捷方式?
Remove deadline shortcut?
有没有简单的方法(使用键盘快捷键)在不实际关闭任务的情况下删除截止日期或日程表?
快捷键:C-u C-c C-s
.
为什么这有效
要查找所有有时间表的方法,请执行 C-h a
,输入 "schedule"。好像只有
org-schedule is an interactive compiled Lisp function in
‘../elpa/org-9.0.9/org.el’.
(org-schedule ARG &optional TIME)
Insert the SCHEDULED: string with a timestamp to schedule a TODO item.
With one universal prefix argument, remove any scheduling date from the item.
With two universal prefix arguments, prompt for a delay cookie.
With argument TIME, scheduled at the corresponding date. TIME can
either be an Org date like "2011-07-24" or a delta like "+2d".
所以你需要调用org-schedule
"with one universal prefix argument"。参见 https://www.gnu.org/software/emacs/manual/html_node/elisp/Prefix-Command-Arguments.html。通用前缀参数只是 C-u
。在代码中,这是在 org.el
in org--deadline-or-schedule
:
处处理的
(pcase arg
(`(4)
(when (and old-date log)
(org-add-log-setup (if deadline? 'deldeadline 'delschedule)
nil old-date log))
(org-remove-timestamp-with-keyword keyword)
(message (if deadline? "Item no longer has a deadline."
"Item is no longer scheduled.")))
PS:Emacs 极客住在 https://emacs.stackexchange.com。
有没有简单的方法(使用键盘快捷键)在不实际关闭任务的情况下删除截止日期或日程表?
快捷键:C-u C-c C-s
.
为什么这有效
要查找所有有时间表的方法,请执行
C-h a
,输入 "schedule"。好像只有org-schedule is an interactive compiled Lisp function in ‘../elpa/org-9.0.9/org.el’. (org-schedule ARG &optional TIME) Insert the SCHEDULED: string with a timestamp to schedule a TODO item. With one universal prefix argument, remove any scheduling date from the item. With two universal prefix arguments, prompt for a delay cookie. With argument TIME, scheduled at the corresponding date. TIME can either be an Org date like "2011-07-24" or a delta like "+2d".
所以你需要调用
处处理的org-schedule
"with one universal prefix argument"。参见 https://www.gnu.org/software/emacs/manual/html_node/elisp/Prefix-Command-Arguments.html。通用前缀参数只是C-u
。在代码中,这是在org.el
inorg--deadline-or-schedule
:(pcase arg (`(4) (when (and old-date log) (org-add-log-setup (if deadline? 'deldeadline 'delschedule) nil old-date log)) (org-remove-timestamp-with-keyword keyword) (message (if deadline? "Item no longer has a deadline." "Item is no longer scheduled.")))
PS:Emacs 极客住在 https://emacs.stackexchange.com。