From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: ANN: org-sticky-header Date: Wed, 19 Apr 2017 07:46:40 +0200 Message-ID: References: <87k26itxex.fsf@alphapapa.net> <878tmxl3ix.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a1143fd7ea0795e054d7e8d31 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0iSE-00042h-SY for emacs-orgmode@gnu.org; Wed, 19 Apr 2017 01:47:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0iSD-0007kh-SF for emacs-orgmode@gnu.org; Wed, 19 Apr 2017 01:47:02 -0400 Received: from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c]:38199) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0iSD-0007kd-KR for emacs-orgmode@gnu.org; Wed, 19 Apr 2017 01:47:01 -0400 Received: by mail-it0-x22c.google.com with SMTP id e132so6953025ite.1 for ; Tue, 18 Apr 2017 22:47:01 -0700 (PDT) In-Reply-To: <878tmxl3ix.fsf@alphapapa.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Adam Porter Cc: org-mode list --001a1143fd7ea0795e054d7e8d31 Content-Type: multipart/alternative; boundary=001a1143fd7ea07958054d7e8d2f --001a1143fd7ea07958054d7e8d2f Content-Type: text/plain; charset=UTF-8 Hi Adam, thanks for adding the option to reverse the outline path. Great thinking about using a different separator for the reversed path! It mostly works - however, if the window is too narrow, the abbreviation ellipses are now applied to the most recent heading instead of to the last one shown. It would be better to reverse the outline path before sending it into org-format-outline-path, which also saves you the pain to split and rejoin the path string. Please find attached a patch that makes this change. It also removes the dependence on the string library which is, I think, not by default available in Emacs. Thanks On Wed, Apr 19, 2017 at 1:06 AM, Adam Porter wrote: > Carsten Dominik writes: > > Hi Carsten, > > > I am wondering if you would consider the possibility to show on only > > the most recent heading, but, space permitting, the outline path - > > maybe in reverse order as to keep the sticky heading itself in the > > left-most column. > > That's a great idea, I will add that. Thanks. > > > --001a1143fd7ea07958054d7e8d2f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Adam,

thanks for adding the option t= o reverse the outline path.=C2=A0 Great thinking about using a different se= parator for the reversed path!

It mostly works - h= owever, if the window is too narrow, the abbreviation ellipses are now appl= ied to the most recent heading instead of to the last one shown.=C2=A0 It w= ould be better to reverse the outline path before sending it into org-forma= t-outline-path, which also saves you the pain to split and rejoin the path = string.

Please find attached a patch that makes th= is change.=C2=A0 It also removes the dependence on the string library which= is, I think, not by default available in Emacs.

T= hanks

= On Wed, Apr 19, 2017 at 1:06 AM, Adam Porter <adam@alphapapa.net>= wrote:
Carsten Dominik <dominik@uva.nl> writes:

Hi Carsten,

> I am wondering if you would consider the possibility to show on only > the most recent heading, but, space permitting, the outline path -
> maybe in reverse order as to keep the sticky heading itself in the
> left-most column.

That's a great idea, I will add that.=C2=A0 Thanks.



--001a1143fd7ea07958054d7e8d2f-- --001a1143fd7ea0795e054d7e8d31 Content-Type: application/octet-stream; name=patch Content-Disposition: attachment; filename=patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_j1ok1pbf0 LS0tIG9yZy1zdGlja3ktaGVhZGVyLmVsLm9yaWcJMjAxNy0wNC0xOSAwNzozMzoyNi4wMDAwMDAw MDAgKzAyMDAKKysrIG9yZy1zdGlja3ktaGVhZGVyLmVsCTIwMTctMDQtMTkgMDc6NDM6MjYuMDAw MDAwMDAwICswMjAwCkBAIC00Miw3ICs0Miw2IEBACiA7OzsgQ29kZToKIAogKHJlcXVpcmUgJ2Rh c2gpCi0ocmVxdWlyZSAncykKIAogKGRlZnZhciBvcmctc3RpY2t5LWhlYWRlci1vbGQtaGxmIG5p bAogICAiVmFsdWUgb2YgdGhlIGhlYWRlciBsaW5lIHdoZW4gZW50ZXJpbmcgb3JnLXN0aWNreS1o ZWFkZXIgbW9kZS4iKQpAQCAtMTAzLDEzICsxMDIsMTAgQEAKICAgICAgICAgKCdmdWxsIChjb25j YXQgb3JnLXN0aWNreS1oZWFkZXItcHJlZml4IChvcmctZm9ybWF0LW91dGxpbmUtcGF0aCAob3Jn LWdldC1vdXRsaW5lLXBhdGggdCkgKHdpbmRvdy13aWR0aCkgbmlsCiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg b3JnLXN0aWNreS1oZWFkZXItb3V0bGluZS1wYXRoLXNlcGFyYXRvcikpKQogICAgICAgICAoJ3Jl dmVyc2VkIChjb25jYXQgb3JnLXN0aWNreS1oZWFkZXItcHJlZml4Ci0gICAgICAgICAgICAgICAg ICAgICAgICAgICA7OyBVc2luZyAi8J+QsSIgIkNBVCBGQUNFIiBhcyBzZXBhcmF0b3IgY2hhcmFj dGVyLiBJdCBuZWVkcyB0byBiZSBhIHNpbmdsZSBjaGFyYWN0ZXIsCi0gICAgICAgICAgICAgICAg ICAgICAgICAgICA7OyBvdGhlcndpc2UgaXQgY291bGQgZ2V0IHRydW5jYXRlZCBhbmQgY2F1c2Ug c3BsaXR0aW5nIHRvIGZhaWwsIGFuZCB0aGUgY2hhbmNlcyBvZiB0aGlzCi0gICAgICAgICAgICAg ICAgICAgICAgICAgICA7OyBjaGFyYWN0ZXIgYmVpbmcgaW4gYSBoZWFkaW5nIGlzIGxvdyBlbm91 Z2guLi5yaWdodD8KLSAgICAgICAgICAgICAgICAgICAgICAgICAgICgtPj4gKG9yZy1mb3JtYXQt b3V0bGluZS1wYXRoIChvcmctZ2V0LW91dGxpbmUtcGF0aCB0KSAod2luZG93LXdpZHRoKSBuaWwg IvCfkLEiKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAocy1zcGxpdCAi8J+QsSIp Ci0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChucmV2ZXJzZSkKLSAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgKHMtam9pbiBvcmctc3RpY2t5LWhlYWRlci1vdXRsaW5lLXBh dGgtcmV2ZXJzZWQtc2VwYXJhdG9yKSkpKSkpKSkKKwkJCSAgIChvcmctZm9ybWF0LW91dGxpbmUt cGF0aAorCQkJICAgIChucmV2ZXJzZSAob3JnLWdldC1vdXRsaW5lLXBhdGggdCkpCisJCQkgICAg KHdpbmRvdy13aWR0aCkgbmlsCisJCQkgICAgb3JnLXN0aWNreS1oZWFkZXItb3V0bGluZS1wYXRo LXJldmVyc2VkLXNlcGFyYXRvcikpKSkpKSkKIAogOzs7IyMjYXV0b2xvYWQKIChkZWZpbmUtbWlu b3ItbW9kZSBvcmctc3RpY2t5LWhlYWRlci1tb2RlCg== --001a1143fd7ea0795e054d7e8d31--