Add: (org-dblock-write:org-ql) Custom column headers
This commit is contained in:
parent
992f3c2675
commit
9bdfcc1d3d
4 changed files with 85 additions and 70 deletions
69
org-ql.info
69
org-ql.info
|
|
@ -728,6 +728,9 @@ supported:
|
|||
form.
|
||||
• ‘:columns’ A list of columns, including ‘heading’, ‘todo’,
|
||||
‘priority’, ‘deadline’, ‘scheduled’.
|
||||
• Each column may also be specified as a list with the second
|
||||
element being a header string. For example, to abbreviate the
|
||||
priority column: ‘(priority "P")’
|
||||
• ‘:sort’ One or a list of Org QL sorting methods (see
|
||||
‘org-ql-select’).
|
||||
• ‘:take’ Optionally take a number of results from the front (a
|
||||
|
|
@ -742,16 +745,16 @@ in the following example).
|
|||
are to-do items with priority A or B, sorted by deadline then priority,
|
||||
with certain columns and timestamp format:
|
||||
|
||||
#+BEGIN: org-ql :query "todo: priority:A,B" :columns (todo priority deadline heading) :sort (deadline priority) :take 7 :ts-format "%Y-%m-%d %H:%M"
|
||||
| Todo | Priority | Deadline | Heading |
|
||||
|------+----------+------------------+---------------------------------------|
|
||||
| TODO | A | 2017-07-07 00:00 | Take over the world |
|
||||
| TODO | B | 2017-07-10 00:00 | Renew membership in supervillain club |
|
||||
| TODO | A | 2017-07-15 00:00 | Take over the universe |
|
||||
| TODO | B | 2017-07-21 00:00 | Internet |
|
||||
| TODO | A | 2017-08-01 00:00 | Spaceship lease |
|
||||
| TODO | A | | Skype with president of Antarctica |
|
||||
| TODO | B | | Take over Mars |
|
||||
#+BEGIN: org-ql :query "todo: priority:A,B" :columns (todo (priority "P") deadline heading) :sort (deadline priority) :take 7 :ts-format "%Y-%m-%d %H:%M"
|
||||
| Todo | P | Deadline | Heading |
|
||||
|------+---+------------------+---------------------------------------|
|
||||
| TODO | A | 2017-07-07 00:00 | Take over the world |
|
||||
| TODO | B | 2017-07-10 00:00 | Renew membership in supervillain club |
|
||||
| TODO | A | 2017-07-15 00:00 | Take over the universe |
|
||||
| TODO | B | 2017-07-21 00:00 | Internet |
|
||||
| TODO | A | 2017-08-01 00:00 | Spaceship lease |
|
||||
| TODO | A | | Skype with president of Antarctica |
|
||||
| TODO | B | | Take over Mars |
|
||||
#+END:
|
||||
|
||||
|
||||
|
|
@ -1277,29 +1280,29 @@ Node: Functions / Macros19621
|
|||
Node: Agenda-like views19876
|
||||
Node: Listing / acting-on results21281
|
||||
Node: Dynamic block25883
|
||||
Node: Links27910
|
||||
Node: Tips28597
|
||||
Node: Changelog28915
|
||||
Node: 05-pre29554
|
||||
Node: 04630536
|
||||
Node: 04530939
|
||||
Node: 04431298
|
||||
Node: 04331655
|
||||
Node: 04231850
|
||||
Node: 04132009
|
||||
Node: 0432248
|
||||
Node: 03236179
|
||||
Node: 03136556
|
||||
Node: 0336753
|
||||
Node: 02339728
|
||||
Node: 02239956
|
||||
Node: 02140224
|
||||
Node: 0240423
|
||||
Node: 0144458
|
||||
Node: Notes44559
|
||||
Node: Comparison with Org Agenda searches44721
|
||||
Node: org-sidebar45593
|
||||
Node: License45872
|
||||
Node: Links28046
|
||||
Node: Tips28733
|
||||
Node: Changelog29051
|
||||
Node: 05-pre29690
|
||||
Node: 04630672
|
||||
Node: 04531075
|
||||
Node: 04431434
|
||||
Node: 04331791
|
||||
Node: 04231986
|
||||
Node: 04132145
|
||||
Node: 0432384
|
||||
Node: 03236315
|
||||
Node: 03136692
|
||||
Node: 0336889
|
||||
Node: 02339864
|
||||
Node: 02240092
|
||||
Node: 02140360
|
||||
Node: 0240559
|
||||
Node: 0144594
|
||||
Node: Notes44695
|
||||
Node: Comparison with Org Agenda searches44857
|
||||
Node: org-sidebar45729
|
||||
Node: License46008
|
||||
|
||||
End Tag Table
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue