我真的希望能够通过对每个项目的评论来记录工作,例如:
#+BEGIN: clocktable :maxlevel 3 :emphasize nil :scope file :block thisweek :properties ("COMMENT")
#+CAPTION: Clock summary at [2018-12-06 Thu 15:16], for week 2018-W49.
| Headline | Time | | COMMENT |
+----------------------------------+--------+------|-----------|
| *Total time* | *0:15* | | |
+----------------------------------+--------+------|-----------|
| task list | 0:15 | | |
| \_ First task | | 0:06 | comment 1 |
| \_ Second task | | 0:09 | comment 2 |
#+END: clocktable
* task list
** First task
:PROPERTIES: …Run Code Online (Sandbox Code Playgroud) 有时需要在一个命令中进行多次调用.一个简单的例子可能是strrep.假设您要用括号替换所有括号,所有逗号用点替换,然后删除所有双引号.然后可能需要以下伪代码:
strrep(myString, '()', '[]', ',', '.', '"', '')
Run Code Online (Sandbox Code Playgroud)
有没有办法实现这个目标?你当然可以选择:
strrep(strrep(strrep(myString, '()', '[]'), ',', '.'), '"', '')
Run Code Online (Sandbox Code Playgroud)
或者将字符串保存在单元格数组中并在for循环中使用它,但这两种解决方案都非常难看.
最理想的答案是对所有以类似方式工作的函数都是通用的.