From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gabriel do Nascimento Ribeiro Newsgroups: gmane.emacs.devel Subject: Some ideas to improve Tab Bar Date: Wed, 25 Nov 2020 00:35:59 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32406"; mail-complaints-to="usenet@ciao.gmane.io" To: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 25 03:06:46 2020 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 1khkCk-00089x-Kf for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Nov 2020 03:06:46 +0100 Original-Received: from localhost ([::1]:59150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khkCZ-0004SP-H8 for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Nov 2020 21:06:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khj1a-0007Dt-VK for emacs-devel@gnu.org; Tue, 24 Nov 2020 19:51:10 -0500 Original-Received: from mail-oln040092003010.outbound.protection.outlook.com ([40.92.3.10]:52610 helo=NAM02-BL2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khj1W-0006bm-1L for emacs-devel@gnu.org; Tue, 24 Nov 2020 19:51:10 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FuQEAy8Ly2bBrCsv44DP/Y6bfPcJhnlLryJtGJZnzwnUkmdqTz4PHDSR3/VXmFkUL7lgW11icb40n5vbkC8OH8QOQS7MQ3MN/7dnkTZnr27shkEHUIrd0wqjeJcsmwy7Rh7GRrsDY+87l2oStRfpYb9c1htWbbfy/dfD3oKBnANbOkxpdJv5WQf3/5CFM7aC7qgLt1cYfSVOOQeR7p5DTt+zzxfYX0QSkxQfqMMhGJeHhmWnqOJCKdm3f3FPaBHK9pIJAs3nxo1KqtysC19uN1bBHDxIuOUGGbmGB03gyf9H5LRJoibhm2wW+2clDkeuUsxe2O0sjEmYg6NY65OhuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wi12gZnZgGJpG9NT6DnIH0Yn+g8TFA7BJc8Fv86SCXQ=; b=h3zfHvidqlX34Fic4VO9/Jcq+zFkyaOuG6rImkOFHhAtrbIiMiymZQyHPMpQa3ipuI+sfCigDol8IekJwmjCDrYnZWdg537pD/xdYzgUc2J7ydoEfQZ/pbUh4aQFK+/ROwp0o0SVTS29cusqLNgNURUubZjksGaEI7HZOSCy+S+JU9aoog3rOyWuSKVDaE1LErEginkWeqOpU/M3aioiSzpxJaGrHR1RYIJ9NQ3CIrWg3nxfuFl5fI4VHb0TTX2Pfha4i8xHT1NZZo1wsV7yDgBU3ULwCQIwMK3hEHveCChhMDsJjCPpV8DK5VIOamg174OswBTR+hlbzSXUrPgN/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wi12gZnZgGJpG9NT6DnIH0Yn+g8TFA7BJc8Fv86SCXQ=; b=db3NJOOiSjwI7/+28dlcG9jtl8bq7dED99i6Yh4T50d8o5VOLh+SkOqOkWt+GY22SQREA3rshaCY8swyKhIFD0dfHgHrhhrd2x8nM6NvS1HFI3o/MIJrzEFzuDLHpXMVFFO37thtQO7tC/+SLi4ED9lhI9lk5xBPwYKItkCEX8kM1YXKTeDN4VCcexQI+DE/pG+CDl8Sk0PflXmI4FX90T43fAQbsQpwAo8pjudssH7OzRVC/s91ZlHngroOrP9aA/DB+EBPxhNNjRjmDgI6h0x7tugotkSkwo8RwBRjpvB3ys57srW3zE5zQcaWrrhSWzqLyzKRicZGQCV23wTGDg== Original-Received: from CY1NAM02FT015.eop-nam02.prod.protection.outlook.com (10.152.74.52) by CY1NAM02HT240.eop-nam02.prod.protection.outlook.com (10.152.74.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.20; Wed, 25 Nov 2020 00:36:00 +0000 Original-Received: from CH2PR01MB5879.prod.exchangelabs.com (2a01:111:e400:7e45::52) by CY1NAM02FT015.mail.protection.outlook.com (2a01:111:e400:7e45::402) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.20 via Frontend Transport; Wed, 25 Nov 2020 00:36:00 +0000 Original-Received: from CH2PR01MB5879.prod.exchangelabs.com ([fe80::d51d:8cbe:370a:39ac]) by CH2PR01MB5879.prod.exchangelabs.com ([fe80::d51d:8cbe:370a:39ac%7]) with mapi id 15.20.3589.028; Wed, 25 Nov 2020 00:35:59 +0000 Thread-Topic: Some ideas to improve Tab Bar Thread-Index: AQHWwr5mcnRRS3C3l0WKx1YO8iiJAA== Accept-Language: en-US Content-Language: en-US x-incomingtopheadermarker: OriginalChecksum:0FC3D9954F91E9E68DE901905A4C76F54E9F5BC0B3B88AF5E18347F9F75CDC93; UpperCasedChecksum:C57F096E4DF39755EDD3443690EDA1A10BBFCDD40F816AE5EED5BF12557B332A; SizeAsReceived:6590; Count:41 x-tmn: [8WX2JOyurpN/0EMu9kBqgWS6ljKgqoui] x-ms-publictraffictype: Email x-incomingheadercount: 41 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 1adb33b2-7eef-49b7-6766-08d890da14cb x-ms-traffictypediagnostic: CY1NAM02HT240: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TtYp/97Nf8zNYAQ/RMkWw1PbxweLvES08OxoK8kt77PpvnP1XYI5hd3KwwdEPVflftrINMAc27EsqVhGJszDqU7GyV5zXZK4wtcEx2N5lCqgjQ2XJsDDNEmGpDFWgigP1F74ezkn9R8RCVDZSUZZk3Gj1jmJ+l8zY8LkbAJ8M8VNvVeiW2gv8YU6TFCzV2j3xu4GNGYWlrRFk+i3mA0z2g== x-ms-exchange-antispam-messagedata: 367+UC8GS5ESfGnp13FPv0RNYUbnWff2w1WUZUIU1GbFKg/67m1XinP04VJYA+QOyYKuDiNIS4vH5/aBziaCJ/hhIek1JAHqLcQsV1yYZrJvhGJot4LY4X5cNSBebRL7uLBClUbbAH01q55eMr7Ebg== x-ms-exchange-transport-forked: True X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: CY1NAM02FT015.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 1adb33b2-7eef-49b7-6766-08d890da14cb X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Nov 2020 00:35:59.8390 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1NAM02HT240 Received-SPF: pass client-ip=40.92.3.10; envelope-from=gabriel376@hotmail.com; helo=NAM02-BL2-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 24 Nov 2020 21:04:27 -0500 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:259759 Archived-At: Some little ideas on how Tab Bar can be further improved:=0A= =0A= 1. Options to disable `tab-bar-back-button' and `tab-bar-forward-button' wh= en `tab-bar-history-mode' is on. This will be similar to what option `tab-b= ar-close-button-show' is to `tab-bar-close-button'.=0A= =0A= 2. Trim spaces of tab bar name. The tab bar name can have additional spaces= on the right:=0A= 2.1. When tab bar name name is set explicitly with `tab-bar-rename-tab'= ;=0A= 2.2. When `tab-bar-tab-hints' is true and `tab-bar-tab-name-function' r= eturns an empty string;=0A= =0A= 3. An easier way to add more items to Tab Bar to make it act more like a ge= neral Bar. The following example was shared in Emacs Devel mailing list on = how to add a simple clock to the right of Tab Bar:=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= (advice-add 'tab-bar-make-keymap-1 :around=0A= (lambda (orig-fun)=0A= (append (funcall orig-fun)=0A= `((display-time menu-item=0A= ,(concat=0A= (propertize " " 'display '(space = :align-to (- right 5)))=0A= (format-time-string "%H:%M"))=0A= ignore))))=0A= '((name . tab-bar-display-time)))=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= =0A= 4. Maybe deprecate `winner-mode' in favor to `tab-bar-history-mode', since = these two modes have similar functions. Using `tab-bar-history-mode' with o= nly one Tab is like using `winner-mode'.=0A= =0A= Regards,=0A= Gabriel=