From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Newell Subject: Scatter-gather idea Date: Sat, 01 Apr 2017 07:27:41 -1000 Message-ID: <87o9wgf376.fsf@bobnewell.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuMoY-000743-P8 for emacs-orgmode@gnu.org; Sat, 01 Apr 2017 13:27:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuMoV-00038X-Ik for emacs-orgmode@gnu.org; Sat, 01 Apr 2017 13:27:50 -0400 Received: from mail-pg0-x22c.google.com ([2607:f8b0:400e:c05::22c]:36860) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cuMoV-00036y-BR for emacs-orgmode@gnu.org; Sat, 01 Apr 2017 13:27:47 -0400 Received: by mail-pg0-x22c.google.com with SMTP id g2so90629615pge.3 for ; Sat, 01 Apr 2017 10:27:45 -0700 (PDT) Received: from localhost (udp226603uds.hawaiiantel.net. [72.235.47.4]) by smtp.gmail.com with ESMTPSA id s21sm17240410pgg.65.2017.04.01.10.27.43 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 01 Apr 2017 10:27:43 -0700 (PDT) In-Reply-To: (Chunyang Xu's message of "Sat, 01 Apr 2017 23:22:42 +0800") 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: emacs-orgmode@gnu.org Org-mode has nearly everything that other outlining tools have, and generally much, much more. But one thing that is missing (and there's been sporadic traffic about this) is convenient scatter-gather. BrainStorm WFO has this; it's not like I'm going to start using it as an alternative, but such a feature might be nice in org-mode. The Emacs way is to write it yourself, and I'm thinking about that. But I wanted to try out the concept and see if it's of interest, or for that matter, more trouble than it's worth. You can do something like this on the Agenda screen, but that's not a general solution at all. What about an "ordinary" org mode file. So here's the flow I envision. 1. You "mark" a series of headline entries with, say, 'org-sg-mark'. Perhaps it would look like this when marked: ** ! interesting headline Yes, this disturbs the existing text. But the marking has to be somehow visual. 2. You give a command like 'org-sg-gather' and the marked headlines are gathered up, moved (just like archiving) to a file (for which you're prompted) or maybe, optionally to the top or bottom of the current buffer. The marks are then cleared. 3. 'org-sg-clear' clears a single mark; 'org-sg-clear-all' clears them all. Potential problems: 1. As mentioned, text is disturbed at least temporarily. 2. Incomplete operation sequences leave marks in place, when they might be useless. 3. If the gathered headlines are at different levels, the resulting gathered outline will not be sensible and will require manual fixing. Comments welcome. This doesn't look especially difficult to code, but does it make sense and is it of any use? -- Bob Newell Honolulu, Hawai`i * Via Gnus/BBDB/Org/Emacs/Linux *