From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8BAHIHwTUmGsdwAAgWs5BA (envelope-from ) for ; Mon, 27 Sep 2021 20:54:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8KudG3wTUmFxUQAAB5/wlQ (envelope-from ) for ; Mon, 27 Sep 2021 18:54:52 +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 3FE692B148 for ; Mon, 27 Sep 2021 20:54:51 +0200 (CEST) Received: from localhost ([::1]:44976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUvm6-0005Yy-CX for larch@yhetil.org; Mon, 27 Sep 2021 14:54:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUvl3-0005WG-UE for emacs-orgmode@gnu.org; Mon, 27 Sep 2021 14:53:45 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:35408) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUvl1-0003QG-9n; Mon, 27 Sep 2021 14:53:45 -0400 Received: by mail-wm1-x335.google.com with SMTP id z184-20020a1c7ec1000000b003065f0bc631so1475691wmc.0; Mon, 27 Sep 2021 11:53:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Qjbng6e/iRx9y+23MlxRzHu+AoZr05cy3Ou88V+XfVY=; b=NQgR1HRbH8KQ5Sv/81EaHmBDTDpq7JhLJq4IEIGxIEtSHKZZ4dkOMJLjs5fbgf89BY r8vfzu3OM2UuhZomaTd01RyrxmyIjKD8APUy1cjzyfzvQuBvQBXPC2UHrMeYbCIcNH1i 5RjnZUQHLn7kVcSU1C6nEPoBSR1JeqqCjKKKbjjpdopDzbgoJwso50+iFFHW6TXvsuaa 93Ox2nWJmtslRhZjNrCc09I2Vk4gWAs9uOqGaavdpuo7dQw/jNcseRb9Pn1a3aL5IdQY tIZ4j+4MJQ8KlCmESl0WIAUcK4t1U9MdVXd8pk3/vqu8WVQwrHidsTuktgxFywEcb1+I 9xGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Qjbng6e/iRx9y+23MlxRzHu+AoZr05cy3Ou88V+XfVY=; b=rRo07h27x9SEVjpCiCPFO+RiF4TzaZxPncVQJnK+rc52OTAJu3kOVuPiJsvO94Np7B Hn+TIY4e+sMTPbWC0wi5G65x5ZWfulFmgRHvqxvQkRw/N5g3Whxr3N1dW6RwLkRhE1xc xGEzb1Cr304Le79TKfjKO1uswJdSoKzXskjyiy46lDA8emX0NSzCN+3oRMk+KH0pprvJ haYxqcFG/OWsoND25RqpRx3iPbLEXgfVuXZyqX18W4YTVhshGZorBbxeeRFcB1nRB2Z3 cF+Jmm9CVUohMuJ7S7niPlMYTXmIBB9UzdGx/0oOslIcVhQhvDRI3HqlFJtssapp23HD Nh9w== X-Gm-Message-State: AOAM532n2Tjt8CcubhzTrX5J2lq6tmeySk2Jcv2QZGEhOcLFVSHDGwf+ f7XZdmHBdrlgxbINVc3JqEQ= X-Google-Smtp-Source: ABdhPJwzQreyJTx/51xF8mlr85nEpIcbOXQ3/2YTr3eW0w3ANOADEihIchBLqIFauB8afC50r6lHdQ== X-Received: by 2002:a05:600c:4fc6:: with SMTP id o6mr598121wmq.147.1632768819777; Mon, 27 Sep 2021 11:53:39 -0700 (PDT) Received: from aspire-5942 (p200300d8672bbe00d4c7901c6dfa7cf3.dip0.t-ipconnect.de. [2003:d8:672b:be00:d4c7:901c:6dfa:7cf3]) by smtp.gmail.com with ESMTPSA id o17sm14147402wrs.25.2021.09.27.11.53.38 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Sep 2021 11:53:39 -0700 (PDT) From: Marco Wahl To: Bastien Subject: Re: shrink table in columnmode view (poor man's issue system) References: <87czowrgeu.fsf@mat.ucm.es> <878rzjlkc7.fsf@gmail.com> <87wnn3nzdw.fsf@mat.ucm.es> <87sfxqe3hu.fsf@gmail.com> <87pmsu2eh1.fsf@mat.ucm.es> <874ka63rcf.fsf@gnu.org> Date: Mon, 27 Sep 2021 20:53:25 +0200 In-Reply-To: <874ka63rcf.fsf@gnu.org> (Bastien's message of "Mon, 27 Sep 2021 18:39:44 +0200") Message-ID: <87y27hvoii.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=marcowahlsoft@gmail.com; helo=mail-wm1-x335.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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: Uwe Brauer , Org Mode List 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=1632768891; 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=Qjbng6e/iRx9y+23MlxRzHu+AoZr05cy3Ou88V+XfVY=; b=UK27/T9Qh0DSIhPW817zLvQcdmZ66zLcK7vKQilCNCb+p4vcohcfzyZJihzmPNpK2yNQpN jlu2E5G8wgcJWEf0zpdP5rLSewxDYucpumB2483ScGF8K/BPWnr6mb84laCKqySfWGo8Ti z53HCK3CdCdbsszzkkd0eEKZkUaxjTXDdnTphzNTQJsfudMFBsfsSEZ5oaVQjgyJ2dO8QH gzCKjuB5lv+MHa7QgABfF0kaVjmXTg+jgMeXlflnrzhYlEcdNfQX4NDlRlkQNqVUgAmVrp BspdWwx5kDevzG/+vw4bF4MzJOoEMWvaRWRf/i7ftIVxdIZDc75tQmFuaUVyIg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632768891; a=rsa-sha256; cv=none; b=RAM/FnCTkx8ivXNU8d7fH9hz3C7syWvXxLDMBvR7evPzKyKweL4AXKoI5fVvtP/9oI3qzH 75jp7p6Bl6jwMZPD/5QezoQV1WHD6NfJ8ezXpgjy2b4j4/Is9yX4z3SZuod4Ywoho+MkkM M9xQdfbDlbsGohtMtIX2PLffPbkq1Ds4UFevGfXDGfAPV66tvLRHM9NhG5n4HBXD5ozAkp bmcVoAN4nyC0qIpNla20UTEHAPqnkGU/ReTfHfRBUyPY1xmK/yTjYbGTMA9rVGt0p2Uzzz TDAlVCYHNmGZZpn4gjlk+FtBkzLnmMgz7AlA7wFRiiLqzavNSClIdRTwNFyYRQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NQgR1HRb; 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: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NQgR1HRb; 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: 3FE692B148 X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: wAxQcgFTk+r4 Hi all! Bastien > Uwe Brauer writes: >> Thank you for the code! As I said, your code should be included. If you >> have write access please push it. Thanks Uwe. > It's up to the maintainers to decide for pushing changes, and to > regular contributors, for areas they feel confident they can push, > like Marco does regularily (thanks). Thanks Bastien. > I don't see any patch in this thread - am I missing something? There is no patch yet. But I think the idea of Uwe is worthy to be discussed. Let me present the idea of Uwe with his columnview dynamic block example (a little bit simplified.) With the current state in Org one could get the following columnview block in a respective Org file. #+BEGIN: columnview :format "%10ITEM(Problem) %5Is(Issue)" | Problem | Issue | | Issues | | | Why is this item soooooooooooooooooooooooo wide ? | 9 | #+END: The idea is to add a line with width indicators taken from the column format. Here (it is the first table line): #+BEGIN: columnview :format "%10ITEM(Problem) %5Is(Issue)" | <10> | <5> | | Problem | Issue | | Issues | | | Why is this item soooooooooooooooooooooooo wide ? | 9 | #+END: This would allow to use the C-c TAB feature to control the widths of the columns. We realized this using a newly defined personal dynamic block as described in (info "(org) Dynamic Blocks"). Concretely: (defun org-dblock-write:columnview2 (params) "Write the column view table. Like org-dblock-write:columnview but write a line with shrink widths taken from the column view format. PARAMS is the same as in `org-dblock-write:columnview'." (insert (format "|%s|\n" (mapconcat (lambda (x) (concat "<" (number-to-string x) ">")) (mapcar (lambda (x) (nth 2 x)) (org-columns-compile-format (plist-get params :format))) "|"))) (org-dblock-write:columnview params)) I think the idea is good. But possibly the extra line is too much for some people. Further I'm sure that the code can be improved and I don't feel 100% confident in this dynamic block area. Best regards!