From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: (Potential) new feature for Org-mode: "hidden-lines cookies" Date: Wed, 22 May 2013 16:14:03 +0200 Message-ID: <87hahvje50.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf9o9-0008Ry-7W for emacs-orgmode@gnu.org; Wed, 22 May 2013 10:14:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uf9o4-0002sg-5m for emacs-orgmode@gnu.org; Wed, 22 May 2013 10:14:25 -0400 Received: from plane.gmane.org ([80.91.229.3]:43158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf9o3-0002sc-UL for emacs-orgmode@gnu.org; Wed, 22 May 2013 10:14:20 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uf9o0-0004lG-24 for emacs-orgmode@gnu.org; Wed, 22 May 2013 16:14:16 +0200 Received: from e178191082.adsl.alicedsl.de ([85.178.191.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 May 2013 16:14:16 +0200 Received: from tjolitz by e178191082.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 May 2013 16:14:16 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi List, I implemented a new (optional and customizable) feature for 'outshine.el' (https://github.com/tj64/outshine): ,-------------------------------------------------------------------- | Behind every folded headline, a little 'cookie' shows the number of | hidden lines till the next visible headline. `-------------------------------------------------------------------- E.g., an Emacs Lisp buffer structured the 'outshine-way', with 'outline-minor-mode' and 'outshine' activated, might look like this after doing 'M-x outshine-show-hidden-lines-cookies': ,------------------------------------------------------------------------------- | ;; * navi-mode.el --- major-mode for easy buffer-navigation [#13] | ;; ** Commentary [#1] | ;; *** About navi-mode | | ;; This file implements extensions for occur-mode. You can think of a | ;; navi-buffer as a kind of 'remote-control' for an (adecuately) | ;; outline-structured original-buffer. It enables quick navigation and basic | ;; structure editing in the original-buffer without (necessarily) leaving the | ;; navi-buffer. When switching to the original-buffer and coming back after | ;; some modifications, the navi-buffer is always reverted (thus up-to-date). | | ;; Besides the fundamental outline-heading-searches (8 outline-levels) and the | ;; 5 basic keyword-searches (:FUN, :VAR, :DB, :OBJ and :ALL), all languages | ;; can have their own set of searches and keybindings (see `navi-key-mappings' | ;; and `navi-keywords'). Heading-searches and keyword-searches can be | ;; combined, offering a vast amount of possible 'views' at the | ;; original-buffer. | | ;; *** Usage [#165] | ;; *** Installation [#19] | ;; *** Emacs Version [#5] | ;; * Requires [#4] | ;; * Mode Definitions [#30] `------------------------------------------------------------------------------- 'M-x outshine-hide-hidden-lines-cookies' deletes all the cookies again. Now I wonder if such a feature already exists in Org-mode (I would not be surprised, but I'm not aware of it) and if anybody would be interested in having such a feature? I guess it would be quite easy to extract the relevant functionality from outshine.el and make it a contrib library for Org-mode (mostly renaming of definitions and maybe replacing some outline-functions by their Org-mode equivalents. On the other hand - this is new (customizable) syntax, and with the new parser and exporting framework there are probably more things to consider than just porting the code to an Org-mode library. PS Note that the appearance of the cookies can actually be completely customized by 4 customizable variables that define 'left/right delimiter' and 'left/right signal char'. -- cheers, Thorsten