From: Andrew Hyatt <ahyatt@gmail.com>
To: Bastien <bzg@altern.org>
Cc: Org Mode <emacs-orgmode@gnu.org>,
Marcelo de Moraes Serpa <celoserpa@gmail.com>
Subject: Re: [OT] Xiki - could something like that be done with emacs+orgmode?
Date: Tue, 18 Sep 2012 23:37:47 -0400 [thread overview]
Message-ID: <CAM6wYY+ob+hm6PU7xxJRz=dQCMZ-eK4+V6Lyaw42KvJ3x77+Ag@mail.gmail.com> (raw)
In-Reply-To: <87vcfbaapy.fsf@bzg.ath.cx>
The xiki video is interesting, and I immediately thought of babel.
However, babel sh-mode doesn't have support for execution yet. Even if
it did, it wouldn't be a really good alternative, due to babel's
verbosity.
One idea is to have a babel subtree (or buffer) that is keyed to a
specific language, so that everything under it is assumed to be an
executable statement. Something like:
* Project A
** Shell
:PROPERTIES:
:BABEL-TYPE: sh
:END:
ls
- file1
- file2
- file3
run_server
ouput-buffer
** Next thing
Where the files and output-buffer are linked. The interaction within
the BABEL-TYPE heading would be similar to the *scratch* buffer, just
execute and it gives you the result immediately below. Except the
result should work be org-output, and linked when appropriate.
Babel would be handling this, but it wouldn't need the boilerplate for
each command, or each output.
The idea to use [[shell:ls]] and things like that is also useful, but
right now the output goes to a different buffer, and is not otherwise
tied in with org-mode. This is why I think babel might be a better
fit for this type of functionality.
On Tue, Sep 18, 2012 at 2:23 AM, Bastien <bzg@altern.org> wrote:
> Hi Marcelo,
>
> Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:
>
>> http://www.youtube.com/watch?v=bUR_eUVcABg&feature=youtu.be
>>
>> I'm wondering it something like that could be done with emacs (and
>> possibly integrating orgmode to add the outlining features)?
>
> * [[shell:ls -l]]
>
> * shell:pwd
>
> ... etc etc.
>
> I think pretty all the features described here are already available
> with some elisp.
>
> The basic idea is that the command prompt and the results are of the
> same kind: text you can edit, and that can produce an output... that you
> can further reuse as a command. Which is the core idea of Org.
>
> If there is any specific feature displayed in the video that seems
> useful for Org, let us know.
>
> My 2 cents,
>
> --
> Bastien
>
next prev parent reply other threads:[~2012-09-19 3:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-18 1:17 [OT] Xiki - could something like that be done with emacs+orgmode? Marcelo de Moraes Serpa
2012-09-18 6:23 ` Bastien
2012-09-19 3:37 ` Andrew Hyatt [this message]
2012-09-19 6:27 ` Sean O'Halpin
2012-09-19 21:49 ` Andrew Hyatt
2012-09-20 0:32 ` Torsten Wagner
2012-09-20 0:59 ` Eric Schulte
2012-09-18 9:54 ` Eden Cardim
2012-09-18 15:06 ` Marcelo de Moraes Serpa
2012-09-18 15:49 ` Luis Anaya
2012-09-19 6:40 ` Bastien
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='CAM6wYY+ob+hm6PU7xxJRz=dQCMZ-eK4+V6Lyaw42KvJ3x77+Ag@mail.gmail.com' \
--to=ahyatt@gmail.com \
--cc=bzg@altern.org \
--cc=celoserpa@gmail.com \
--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).