emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [OT] Xiki - could something like that be done with emacs+orgmode?
@ 2012-09-18  1:17 Marcelo de Moraes Serpa
  2012-09-18  6:23 ` Bastien
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Marcelo de Moraes Serpa @ 2012-09-18  1:17 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 369 bytes --]

Hi list,

I've found a pretty interesting piece of software today. It's called Xiki,
check out the video:

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)?

That could be interesting.

Just food for thought,

Cheers!

- Marcelo.

[-- Attachment #2: Type: text/html, Size: 636 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [OT] Xiki - could something like that be done with emacs+orgmode?
  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
  2012-09-18  9:54 ` Eden Cardim
  2012-09-18 15:49 ` Luis Anaya
  2 siblings, 1 reply; 11+ messages in thread
From: Bastien @ 2012-09-18  6:23 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa; +Cc: Org Mode

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [OT] Xiki - could something like that be done with emacs+orgmode?
  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-18  9:54 ` Eden Cardim
  2012-09-18 15:06   ` Marcelo de Moraes Serpa
  2012-09-18 15:49 ` Luis Anaya
  2 siblings, 1 reply; 11+ messages in thread
From: Eden Cardim @ 2012-09-18  9:54 UTC (permalink / raw)
  To: emacs-orgmode

>>>>> "Marcelo" == Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:

    Marcelo> Hi list, I've found a pretty interesting piece of
    Marcelo> software today. It's called Xiki, check out the video:

    Marcelo> http://www.youtube.com/watch?v=bUR_eUVcABg&feature=youtu.be

    Marcelo> I'm wondering it something like that could be done with
    Marcelo> emacs (and possibly integrating orgmode to add the
    Marcelo> outlining features)?

It's already done in emacs, see https://github.com/trogdoro/xiki

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [OT] Xiki - could something like that be done with emacs+orgmode?
  2012-09-18  9:54 ` Eden Cardim
@ 2012-09-18 15:06   ` Marcelo de Moraes Serpa
  0 siblings, 0 replies; 11+ messages in thread
From: Marcelo de Moraes Serpa @ 2012-09-18 15:06 UTC (permalink / raw)
  To: Eden Cardim; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 817 bytes --]

@Bastien, Yeah, I've been thinking about the link approach or perhaps
babel, thank you for the suggestions!

@Eden, That's awesome! Looks like I didn't do the proper research...

Thank you guys,

- Marcelo.

On Tue, Sep 18, 2012 at 4:54 AM, Eden Cardim <eden@insoli.de> wrote:

> >>>>> "Marcelo" == Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:
>
>     Marcelo> Hi list, I've found a pretty interesting piece of
>     Marcelo> software today. It's called Xiki, check out the video:
>
>     Marcelo> http://www.youtube.com/watch?v=bUR_eUVcABg&feature=youtu.be
>
>     Marcelo> I'm wondering it something like that could be done with
>     Marcelo> emacs (and possibly integrating orgmode to add the
>     Marcelo> outlining features)?
>
> It's already done in emacs, see https://github.com/trogdoro/xiki
>
>
>

[-- Attachment #2: Type: text/html, Size: 1483 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [OT] Xiki - could something like that be done with emacs+orgmode?
  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-18  9:54 ` Eden Cardim
@ 2012-09-18 15:49 ` Luis Anaya
  2012-09-19  6:40   ` Bastien
  2 siblings, 1 reply; 11+ messages in thread
From: Luis Anaya @ 2012-09-18 15:49 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa; +Cc: Org Mode

Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:

> Hi list,
>
> I've found a pretty interesting piece of software today. It's called Xiki,
> check out the video:
>
> http://www.youtube.com/watch?v=bUR_eUVcABg&feature=youtu.be

It's interesting, but it has its challenges. I tried to install it to
play with it and... well, it's still there in zombie mode; I've not
followed through with it.

This is what I found out: 

1. Requires ruby and uses el4r. That by itself is not bad, but it is
overhead to run the application. The installation process is a
chore. I'm not a ruby programmer although I'm familiar with the
language. Other than I had to compile ruby from source (which is not
bad) trying to get it to work within el4r is not straightforward. If you
do not know ruby or el4r, it does complicates its installation.

2. Uses emacs or vim or some other editors in experimental mode, and I 
think that it's limited to graphic mode. I tried to run it from the
console and I got a "Face -9" error. So, what good is a shell if you
can't run it from the console?  It might have been pilot error but makes
me wonder.

3. I think that Bastien mention that items can be done in babel being
that it allows to get data form different sources. 

In terms of its interface, it's pretty nifty, but the real magic happens
because it's running within an editor. 

My 2 cents... 



-- 
Luis Anaya
papo anaya aroba hot mail punto com
"Do not use 100 words if you can say it in 10" - Yamamoto Tsunetomo

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [OT] Xiki - could something like that be done with emacs+orgmode?
  2012-09-18  6:23 ` Bastien
@ 2012-09-19  3:37   ` Andrew Hyatt
  2012-09-19  6:27     ` Sean O'Halpin
  0 siblings, 1 reply; 11+ messages in thread
From: Andrew Hyatt @ 2012-09-19  3:37 UTC (permalink / raw)
  To: Bastien; +Cc: Org Mode, Marcelo de Moraes Serpa

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
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [OT] Xiki - could something like that be done with emacs+orgmode?
  2012-09-19  3:37   ` Andrew Hyatt
@ 2012-09-19  6:27     ` Sean O'Halpin
  2012-09-19 21:49       ` Andrew Hyatt
  0 siblings, 1 reply; 11+ messages in thread
From: Sean O'Halpin @ 2012-09-19  6:27 UTC (permalink / raw)
  To: Org Mode

On Wed, Sep 19, 2012 at 4:37 AM, Andrew Hyatt <ahyatt@gmail.com> wrote:

> The xiki video is interesting, and I immediately thought of babel.
> However, babel sh-mode doesn't have support for execution yet.

Not sure what you mean by that. Place cursor in source block and hit C-c, e.g.

#+BEGIN_ORG
* Shell example

#+begin_src sh
date
#+end_src

#+RESULTS:
: Wed Sep 19 07:24:17 BST 2012

#+END_ORG

Regards,
Sean

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [OT] Xiki - could something like that be done with emacs+orgmode?
  2012-09-18 15:49 ` Luis Anaya
@ 2012-09-19  6:40   ` Bastien
  0 siblings, 0 replies; 11+ messages in thread
From: Bastien @ 2012-09-19  6:40 UTC (permalink / raw)
  To: Luis Anaya; +Cc: Org Mode, Marcelo de Moraes Serpa

Luis Anaya <papoanaya@hotmail.com> writes:

> In terms of its interface, it's pretty nifty, but the real magic happens
> because it's running within an editor. 

Exactly.  

It'd be somehow ironical for Emacs to mimic the features of a software
that uses an editor to mimic the features of a shell, especially given
the fact many consider Emacs an operating system.

:)

-- 
 Bastien

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [OT] Xiki - could something like that be done with emacs+orgmode?
  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
  0 siblings, 2 replies; 11+ messages in thread
From: Andrew Hyatt @ 2012-09-19 21:49 UTC (permalink / raw)
  To: Sean O'Halpin; +Cc: Org Mode

That's odd, I get "No org-babel-execute function for sh!".  I think I
just hadn't require'd ob-sh, and when I did this fixed the problem.
Thanks!

My point about removing the boilerplate still stands, however.  If I
have some free time in the next month, I may try to see if I can get
it removed as I proposed above.

On Wed, Sep 19, 2012 at 2:27 AM, Sean O'Halpin <sean.ohalpin@gmail.com> wrote:
> On Wed, Sep 19, 2012 at 4:37 AM, Andrew Hyatt <ahyatt@gmail.com> wrote:
>
>> The xiki video is interesting, and I immediately thought of babel.
>> However, babel sh-mode doesn't have support for execution yet.
>
> Not sure what you mean by that. Place cursor in source block and hit C-c, e.g.
>
> #+BEGIN_ORG
> * Shell example
>
> #+begin_src sh
> date
> #+end_src
>
> #+RESULTS:
> : Wed Sep 19 07:24:17 BST 2012
>
> #+END_ORG
>
> Regards,
> Sean
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [OT] Xiki - could something like that be done with emacs+orgmode?
  2012-09-19 21:49       ` Andrew Hyatt
@ 2012-09-20  0:32         ` Torsten Wagner
  2012-09-20  0:59         ` Eric Schulte
  1 sibling, 0 replies; 11+ messages in thread
From: Torsten Wagner @ 2012-09-20  0:32 UTC (permalink / raw)
  To: Andrew Hyatt; +Cc: Org Mode

hi,

I gave Xiki a try and it turned out to be an dependency hell on arch
linux. After installing dozen of packages from AUR, I managed to get
it up and running.
Its nice and some of the ideas could be shamelessly stolen for
org/org-babel. E.g. the mouse-support is great and would fit well to
org if we think of emacs on tablets.

However, I think it is in a very very early stage and one would need
to see how it develops. I do not like the ruby-bridge. This looks to
me very fragile and I had bad experience with python. Those bridges
tend to break whenever there is a change on one of the sides ext.
language or emacs. It also changed the entire appearance resp. face of
my emacs session not sure why it did this. Feels a bit invasive and
alienating.

Nevertheless, its good that this kind of things get tested out and
maybe in a future release of Emacs, we can see some of the ideas in
the Emacs core.

Totti



On 20 September 2012 06:49, Andrew Hyatt <ahyatt@gmail.com> wrote:
> That's odd, I get "No org-babel-execute function for sh!".  I think I
> just hadn't require'd ob-sh, and when I did this fixed the problem.
> Thanks!
>
> My point about removing the boilerplate still stands, however.  If I
> have some free time in the next month, I may try to see if I can get
> it removed as I proposed above.
>
> On Wed, Sep 19, 2012 at 2:27 AM, Sean O'Halpin <sean.ohalpin@gmail.com> wrote:
>> On Wed, Sep 19, 2012 at 4:37 AM, Andrew Hyatt <ahyatt@gmail.com> wrote:
>>
>>> The xiki video is interesting, and I immediately thought of babel.
>>> However, babel sh-mode doesn't have support for execution yet.
>>
>> Not sure what you mean by that. Place cursor in source block and hit C-c, e.g.
>>
>> #+BEGIN_ORG
>> * Shell example
>>
>> #+begin_src sh
>> date
>> #+end_src
>>
>> #+RESULTS:
>> : Wed Sep 19 07:24:17 BST 2012
>>
>> #+END_ORG
>>
>> Regards,
>> Sean
>>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [OT] Xiki - could something like that be done with emacs+orgmode?
  2012-09-19 21:49       ` Andrew Hyatt
  2012-09-20  0:32         ` Torsten Wagner
@ 2012-09-20  0:59         ` Eric Schulte
  1 sibling, 0 replies; 11+ messages in thread
From: Eric Schulte @ 2012-09-20  0:59 UTC (permalink / raw)
  To: Andrew Hyatt; +Cc: Org Mode

Andrew Hyatt <ahyatt@gmail.com> writes:

> That's odd, I get "No org-babel-execute function for sh!".  I think I
> just hadn't require'd ob-sh, and when I did this fixed the problem.
> Thanks!
>

For security reasons evaluation is not turned on by default.  The
relevant chapter of the manual is a very good resource [1].

>
> My point about removing the boilerplate still stands, however.  If I
> have some free time in the next month, I may try to see if I can get
> it removed as I proposed above.
>

You can insert code-block templates by typing <s TAB, and there exists
other methods of expressing code blocks (e.g., inline code blocks).

If you do want to experiment with different syntax, it should be fairly
easy to write a function which parses some sparse code syntax near the
point and then calls existing org-babel-execute functions to run the
code.  For example the following function will check to see if the
current line starts with a "$", and if so, it will run the line in your
shell and insert the result immediately following the line.

    ;; -*- emacs-lisp -*-
    (defun sparse-execute ()
      (interactive)
      (save-excursion
        (goto-char (point-at-bol))
        (if (string= (thing-at-point 'char) "$")
            (let ((result (org-babel-execute:sh
                           (substring (thing-at-point 'line) 1) '())))
              (goto-char (point-at-eol))
              (open-line 1) (forward-char 1)
              (let ((beg (point)))
                (insert (format "%s" result))
                (org-babel-examplize-region beg (point))))
          (error "this line doesn't look executable"))))

Cheers,

Footnotes: 
[1]  http://orgmode.org/manual/Working-With-Source-Code.html

-- 
Eric Schulte
http://cs.unm.edu/~eschulte

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-09-20  1:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).