From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Bob Newell <bobnewell@bobnewell.net>, emacs-orgmode@gnu.org
Subject: Re: Scatter-gather idea
Date: Sat, 01 Apr 2017 18:41:21 +0000 [thread overview]
Message-ID: <CAJ51ETqxy+Erj4rN1imUCCury20uWkQWE2d8fULAxQoooLwyrA@mail.gmail.com> (raw)
In-Reply-To: <87o9wgf376.fsf@bobnewell.net>
[-- Attachment #1: Type: text/plain, Size: 2560 bytes --]
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 <bobnewell@bobnewell.net> 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
[-- Attachment #2: Type: text/html, Size: 4240 bytes --]
next prev parent reply other threads:[~2017-04-01 18:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-01 15:22 Bug: Can't execute C code block from remote directory [9.0.5 (release_9.0.5-401-g86ff11 @ /Users/xcy/src/org-mode/lisp/)] Chunyang Xu
2017-04-01 17:27 ` Scatter-gather idea Bob Newell
2017-04-01 18:41 ` John Kitchin [this message]
2017-04-01 20:12 ` Bob Newell
2017-04-03 2:48 ` Samuel Wales
2017-04-03 4:34 ` Bob Newell
2017-04-05 5:06 ` Yasushi SHOJI
2017-04-05 15:22 ` Nick Dokos
2017-04-06 18:28 ` Bob Newell
2017-04-06 19:19 ` Nick Dokos
2017-04-06 19:40 ` John Kitchin
2017-04-10 8:46 ` Daniel Clemente
2017-04-01 18:47 ` Bingo
2017-04-03 6:58 ` Bug: Can't execute C code block from remote directory [9.0.5 (release_9.0.5-401-g86ff11 @ /Users/xcy/src/org-mode/lisp/)] Chunyang Xu
2017-04-05 8:11 ` Nicolas Goaziou
2017-04-05 11:49 ` Chunyang Xu
2017-04-07 16:15 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ51ETqxy+Erj4rN1imUCCury20uWkQWE2d8fULAxQoooLwyrA@mail.gmail.com \
--to=jkitchin@andrew.cmu.edu \
--cc=bobnewell@bobnewell.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).