From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Scatter-gather idea Date: Sat, 01 Apr 2017 18:41:21 +0000 Message-ID: References: <87o9wgf376.fsf@bobnewell.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f403045f13886bf2d9054c1f46a4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuNy0-0006Ki-6a for emacs-orgmode@gnu.org; Sat, 01 Apr 2017 14:41:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuNxv-0001mF-Oi for emacs-orgmode@gnu.org; Sat, 01 Apr 2017 14:41:40 -0400 Received: from mail-wr0-f179.google.com ([209.85.128.179]:36571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cuNxv-0001im-FN for emacs-orgmode@gnu.org; Sat, 01 Apr 2017 14:41:35 -0400 Received: by mail-wr0-f179.google.com with SMTP id w11so124147488wrc.3 for ; Sat, 01 Apr 2017 11:41:33 -0700 (PDT) In-Reply-To: <87o9wgf376.fsf@bobnewell.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: Bob Newell , emacs-orgmode@gnu.org --f403045f13886bf2d9054c1f46a4 Content-Type: text/plain; charset=UTF-8 You don't need those temporary marks I think. Just store the positions in a variable or use overlays or text properties. You could even make a speed key to run the mark command. It could be implemented from a helm command pretty easily too. You can easily make multiple selections with helm. Point 3 is a tough one. You might provide a numeric prefix arg that makes all levels the same. That may be easier to manually adjust. On Sat, Apr 1, 2017 at 1:28 PM Bob Newell wrote: > 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 * > > -- John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu --f403045f13886bf2d9054c1f46a4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You don't need those temporary marks I think. Just store the posit= ions in a variable or use overlays or text properties. You could even make = a speed key to run the mark command.=C2=A0

It coul= d be implemented from a helm command pretty easily too. You can easily make= multiple selections with helm.=C2=A0

Point 3 is a= tough one. You might provide a numeric prefix arg that makes all levels th= e same. That may be easier to manually adjust.=C2=A0


On Sat, Apr 1, 2017 at 1:28 PM Bob N= ewell <bobnewell@bobnewell.ne= t> wrote:
Org-mode has nearl= y 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 tha= t
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,
=C2=A0 =C2=A0'org-sg-mark'. Perhaps it would look like this when ma= rked:

=C2=A0 =C2=A0** ! interesting headline

=C2=A0 =C2=A0Yes, this disturbs the existing text. But the marking has to b= e
=C2=A0 =C2=A0somehow visual.

2. You give a command like 'org-sg-gather' and the marked headlines= are
=C2=A0 =C2=A0gathered up, moved (just like archiving) to a file (for which = you're
=C2=A0 =C2=A0prompted) or maybe, optionally to the top or bottom of the cur= rent
=C2=A0 =C2=A0buffer. 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
=C2=A0 =C2=A0be useless.

3. If the gathered headlines are at different levels, the resulting
=C2=A0 =C2=A0gathered 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 *

--
John

---= --------------------------------
Professor John Kitchin=C2=A0
Doherty= Hall A207F
Department of Chemical Engineering
Carnegie Mellon Univer= sity
Pittsburgh, PA 15213
412-268-7803
--f403045f13886bf2d9054c1f46a4--