From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8dF7Flkm/WCf8AAAgWs5BA (envelope-from ) for ; Sun, 25 Jul 2021 10:52:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sDuoEVkm/WArNQAA1q6Kng (envelope-from ) for ; Sun, 25 Jul 2021 08:52:41 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9F91D6679 for ; Sun, 25 Jul 2021 10:52:40 +0200 (CEST) Received: from localhost ([::1]:36462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7ZsF-0000PS-19 for larch@yhetil.org; Sun, 25 Jul 2021 04:52:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7Zrm-0000PJ-Pp for emacs-orgmode@gnu.org; Sun, 25 Jul 2021 04:52:10 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:42712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7Zrl-00044M-EK for emacs-orgmode@gnu.org; Sun, 25 Jul 2021 04:52:10 -0400 Received: by mail-ej1-x62b.google.com with SMTP id e19so10413523ejs.9 for ; Sun, 25 Jul 2021 01:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=U7k3cViZawbYnYkQrtnHm1NCzoi3A0k5rKmBipJEhxk=; b=Oq/XtNcWY+X2vWEKZKYDZ1bIPLhr5EIhUVWs+x663DFH9rETLfiDWOboTgWvGloUTz kQHtPE3JruKd8fqzQcZmkWQ11RlIPjyP7F0EIrQksf4WnLkh5sOcl+weADMt25iw1uES rjLbPkX3M0R5PfagjBxaWK1Kodttq+9vRh+uUo7aP1bDdD6rucnTiGMdY8GnUUu08VQM JWXWDdwIaQg+bS5El1MmHpMXKIHKVq5MMShskUZT0zKM4FZJA8sVnvtDOWpxelFsNWvD CjGbgjk3SfaI+74eRPIx1gqHLaXpRRna+0yomNJCRRwrhSzxsLmKUPIVYrhQbCXtHYtt NvRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=U7k3cViZawbYnYkQrtnHm1NCzoi3A0k5rKmBipJEhxk=; b=nTLtUKOgLMK6KVyf/CSGxPmvhoc4zqgNeasZKxgrA2MsjGjCQ/spT7PVMH5oWazhEF OOTactRw7OYzPcT0YoHyOzt94eCN/iCVIRhHLx5cBoagoMQop+69D//8D1l+A6mpSR3L WN+ZJeust7M3bYek2QjZJT64XdZYX8Itf/FlcxvUPBE0M3VZyMWzf8bNnP6bC7tizw6D SMQVNB0zq6ck2F0QRC/iq3bmDMo7MQ8G2XC6vaI8Asb/Ys9o4bFl4SsWl8sgVmpdMVfO vvNizmQApJAq9y0ndn9wuaTsuNsTD0nj3mUbmVfqO+RrodJN7kLhl1mvDhEiPQVZ6xOp 2qbw== X-Gm-Message-State: AOAM531veDCziJFgPh1JGMVhrP0Rp4yXVG3dTVYkZTUA4HBVFnWTZFc+ RZyeHNgVPqcU41gPp0rzojg= X-Google-Smtp-Source: ABdhPJy0gsY6ldbw0GLruHglQ1dSAuZYDNzB/V6ld1G8Mo8edn5ZzinONpfWbWt41l9sFJgMkjB1iA== X-Received: by 2002:a17:906:4d94:: with SMTP id s20mr1371508eju.152.1627203127502; Sun, 25 Jul 2021 01:52:07 -0700 (PDT) Received: from localhost ([158.255.2.9]) by smtp.gmail.com with ESMTPSA id eg5sm17637956edb.38.2021.07.25.01.52.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jul 2021 01:52:07 -0700 (PDT) From: Ihor Radchenko To: Karl Voit Subject: Re: Dynamic block tables: adding prefix of "id:" to %ID In-Reply-To: <2021-07-23T10-42-47@devnull.Karl-Voit.at> References: <2021-07-23T10-42-47@devnull.Karl-Voit.at> Date: Sun, 25 Jul 2021 16:51:58 +0800 Message-ID: <87v94yojwx.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=yantar92@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627203160; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=U7k3cViZawbYnYkQrtnHm1NCzoi3A0k5rKmBipJEhxk=; b=mqfm6BbEkx2Bprh7dzvch4pU7Hlaz2h+6ajRiDmX4uyKANTe5Ysw7SZJsmDryPU39Uh4jO THWkLyWIxd4mn8vQYTpCq+vbKCYBmmkJ5fZHCUYvS88BS/AvRqchhS2F+Fb3+d8ORaqkRC z+n33Ln4Me7uouONT8UiXeBbU2c41bnLWw2YCCWPwbSBNMmBx2TNnaZuDPo5XwA/wETZhi yfrt52Qg4aZQT1sMTlw9Px/kjKGmQivy58UVx44jz+BmU0XJ7JTPAS/LtKgmI/dEiCNXzu sz7eUZkP4kdJVTApq/liBdk0azyI2+RQl+i7YAiq/KHtoxhOMMLypR53Kvj6pQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627203160; a=rsa-sha256; cv=none; b=ZnKqPSwxEIYlH6fqmDLVCoi+NDXZclei27sOzZ1VXpbnNjVULs+3UGQIl+CIkGcoppc7Mq Nz5d0j/zXErXm6JRiRps/4sHihpnCxrt5lMvE34yLh3l02Hp2GAAxGOho30OJOhSdc73jw i0Ws+QEkXMQ4LblXfTXtTp2TKbAeNbmUcxUPXQEfxZvsLXKlrmTM/OI5RuPaAlMgMQzq1B Oj9Uoiw0OhJrVjFvISUdE8TE/8hvgR5Lie8IvZh/ywt8j1msvsMOTL5cPtG63lnQNmbCOT AGc5D5F8pSa925mEQF4VZVa2Va1mcGQZ3Asfqw+NnY4mw9PydeGHsbv5Aj3/wg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="Oq/XtNcW"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="Oq/XtNcW"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 9F91D6679 X-Spam-Score: -2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: zgESbQwJbC+r Karl Voit 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