Karl Voit <[email protected]> writes:
> I do have a dynamic block table like this:
> ...
> | NEXT | [0/0] proj bar | bar | :bar:project: |
>
> Is there a way to get the ID column with working ID links such as:
> ...
> | NEXT | [0/0] proj bar | id:bar | :bar:project: |
You may customise org-columns-modify-value-for-display-function:
(defun yant/org-columns-custom-formatter (column-title value)
"Format column values for columns with ID-LINK title as proper Org mode id:
link."
(pcase column-title
("ID-LINK"
(format "[[id:%s][%s]]"
value
(org-with-point-at (org-id-find value 'marker)
(org-get-heading t t t t))))
(_ nil)))
(setq org-columns-modify-value-for-display-function
#'yant/org-columns-custom-formatter)
Then, you can use the following dblock. Note that I renamed the column
name to "ID-LINK"
#+BEGIN: columnview :id global :match "+project-focus/!+STARTED|+NEXT|+WAITING"
:format "%TODO(State) %ITEM(What) %ID(ID-LINK) %TAGS(Tags)"
#+END:
Best,
Ihor