From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Some minor suggestions to Tab Bar Date: Wed, 17 Mar 2021 23:31:42 +0100 Message-ID: <20210317223142.2xx5fb5ofu6iyumm@Ergus> References: <87o8fhekvx.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6236"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gabriel , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 17 23:33:15 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMej4-0001WQ-NK for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Mar 2021 23:33:14 +0100 Original-Received: from localhost ([::1]:35646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMej3-0002LU-Pz for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Mar 2021 18:33:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMei4-0001uE-Rv for emacs-devel@gnu.org; Wed, 17 Mar 2021 18:32:12 -0400 Original-Received: from sonic311-14.consmr.mail.bf2.yahoo.com ([74.6.131.124]:37874) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMei1-0006QS-VO for emacs-devel@gnu.org; Wed, 17 Mar 2021 18:32:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1616020328; bh=lK7BdhO4LoLR2lNiP3iEdlsRzV3w+GI8eojAEfKWyPg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=KZWcw07/xLqumZRFVb/xLimpYzEKVKA/1ijM5AOOUJKJEqhxEXr/VMDYyrYMFHED5pXlNAt+wkR77ai/G3j3vgeDAPrBy0J7bZ2CVJXUdesXBQIuaaQ0ZIbkqE/ICkAQyAkIPwe5cXbyQ0UA51PPLvAwLrFFDTbgZI+W9KXiwAf8YJbCeucnKaUW4HKbQmjqwZPRSbGrQNwOHckyE7Vtz2AjThDKfoNddIIzYvIc2MaB5LCXdl5+J/Ga5rt7VrjDcT0//kCTZC+6IxULen4wqBE0y3/Qio+YqJ84CSXgE+3dXKLGtuisS+4HyriofMnHhTbrvPx1CPbQiRhp/3mV7Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1616020328; bh=aWVSrU1BxDN0QWjL9MuNbIqURABbt5THI8hBQ1hJ6R1=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=UcaEnQq1niqWL9A5Ll6AwrS6UAsRypXhyQ6IO0pgAOmGLimmv3fH3h2chi80bfsfRQCvXYAEEF094XSA/zWTieLD8HpKX1IAvo/SNBgiX4JXx1yiynFtFmkCGvbzYK3u7KOZRxhz4SS6lounh1CQaDHbOTtMAqwswJWOs9eTc8xJqhwBllsJOpyUfGDWIiwhc+kYkTVA6zHFOdVcqEQz1Bj+qChJCwtQOsbnC3hbS9Rzj8rir9GjY2CYRaBoysNsv/GwjPr6RcNGKiu0JY9FE26v+I2Rw92/Qe2uGIyaldmnjwKZ/kzS7SX1+S3Y3lVwsdyg3OOHArZKFvCQZI2ODQ== X-YMail-OSG: LYazZjAVM1kAHr1d6oVtJB.9e4VzNptZl9MEolC.0PMQ8w8bUMBdGd99heLUHc0 JLwxSRbKTlwOg4l.0ahsKKjrqNq71pkSd3BF.xeX7FrK4M.t2Ic8WgaDT982qm5.8PLZqWsjC4Mm wrgx17htAr5.O3k6wXBaXD_mTPyZJvkRR925S.RoUmV5QqMQiMD8c5kPdX1v9zAA..fV7PneR000 sfN1rdOhzDSxd6jfvmETtlk63BqOBYQDW46hYM4t0K6hE9eHHYxz9nHZkwwgydIv6lgbtKgcZ.lo bEM2XcI.q7gu05066Ag.a5y6WUWa02Zq4.PCN93QdutvvQs.IH_rlHjet2.uwGmeUuApRAk8CBd4 JvvFxRyuykNIC4aNbjc00r0zhSeuwIGkVauwzPUqDGOeJ4PyZu1MNHQSG69caV5Y2NQEVlx1Rfiy Oi0X7B0vQzxytKeqnT2KqB3B7v1scj96yxwYLGYlU6G7_vFDMBYlQEg7Ry4gkO7tWQYOqxwLx.Ij W_OROiV4np3uNOVR5q.zOPAI1BuxtLR7CjQV7.ekl2Sr4bktgLzxkGfnzB1ucEH0_M5a65xZBQzl dKHZtfgpL_Zyr4jv2JAcJ8u5WCfx3VXFJUmI.JvLyNfamcocY_aTuLR_HkphomEbvbIvulB08VJV DZiPcC1G5sux2TLpJvhLTjRjiWiAiwW1jhoHNWLUiWy78i54fKbJe2N8r4PiLo8aLAG6775ywsYH VIWoD4ecqlXubBCKRVG9KB989IrlAt668rrar6IURUKPdkUGCKx9zKdudCfcSV2PxyjWb24k54OH FCF0Vl02Bm8AvwS8QFfTABqycPyrm_FmdpEHFFDnbf X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Wed, 17 Mar 2021 22:32:08 +0000 Original-Received: by smtp424.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d9c071206349efec9a7734662931bd13; Wed, 17 Mar 2021 22:32:01 +0000 (UTC) Content-Disposition: inline In-Reply-To: <87o8fhekvx.fsf@mail.linkov.net> X-Mailer: WebService/1.1.17936 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.9.1) Received-SPF: pass client-ip=74.6.131.124; envelope-from=spacibba@aol.com; helo=sonic311-14.consmr.mail.bf2.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:266536 Archived-At: Hi Juri: Just a question. I have seen the new groups in tabs-bar, but I sadly don't understand what a group means and how to use this feature as a final user. I evaluated: (setq tab-bar-format '(tab-bar-format-history tab-bar-format-tabs-group tab-bar-separator tab-bar-format-add-tab)) And just a + appears in the tab-bar. So maybe you could explain some basic steps about how to use the groups? Best, Ergus. On Wed, Mar 17, 2021 at 07:46:30PM +0200, Juri Linkov wrote: >> 2. Add new faces for group tabs. The idea is to differentiate these 2 >> cases: >> 2.1. Tabs from the current group X tabs from other groups >> 2.2. Regular tabs X collapsed group tabs >> >> It's not possible to know which tabs belongs to the current group or >> which tabs represent another group, since all inactive tabs use the same >> face 'tab-bar-tab-inactive'. I did a slight modification to >> 'tab-bar-tab-name-format-default' and 'tab-bar-tab-group-format-default' >> to add two new faces: >> >> In the example above (please desconsider the styles I used), we can see >> that: >> * [1], [2] and [8] are tabs that do not belong to any group (ungrouped) >> * [3] is a collapsed group tab of a group named "group1", where tab >> [4] belongs to the same group and is hidden >> * [5] and [7] are tabs that belongs to the current group (same group) >> * [6] is the current active tab > >As a first stab at tab faces, now there are 3 new faces: > >- tab-bar-tab-group-current >- tab-bar-tab-group-inactive >- tab-bar-tab-ungrouped > >and two new options: > >- tab-bar-tab-face-function >- tab-bar-tab-group-face-function > >The latter can be used for color-coding, e.g. by assigning a distinctive >color to each group of tabs. > >I'm striving to make only minimal changes in the core library >and to provide enough knobs for easy customization. > >Please try this to see if there is still anything missing. >