emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* how to get an org-link to open a program in eshell
@ 2020-04-08  8:22 Joseph Vidal-Rosset
  2020-04-25  4:39 ` Kyle Meyer
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph Vidal-Rosset @ 2020-04-08  8:22 UTC (permalink / raw)
  To: Liste-emacs-orgmode@gnu.org

Hi everybody,

I'm trying to get something via an org-link. I suspect that it is
possible, but the documentation is not clear enough for me to get it.

I want to make an org-link that get me directly in eshell a program,
and if it is possible to do it, I will bookmark this org-link.

To explain precisely what I want to do: I have an executable in
/usr/local/bin that I  have called SMinlog , in a shell, the command
SMinlog -p -i open directly the following output:
SEQUENT:
and in the my Linux desktop xfce I have also an icon that is a
shortcut to open directly this program in a xfce4-terminal.

I suspect that an org-link could provide the same function directly in eshell.
If I am right, I would be happy to find the solution, but I am afraid
that I need help.

Best wishes,

Jo.


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

* Re: how to get an org-link to open a program in eshell
  2020-04-08  8:22 how to get an org-link to open a program in eshell Joseph Vidal-Rosset
@ 2020-04-25  4:39 ` Kyle Meyer
  2020-04-25  8:31   ` Joseph Vidal-Rosset
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2020-04-25  4:39 UTC (permalink / raw)
  To: Joseph Vidal-Rosset, Liste-emacs-orgmode@gnu.org

Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:

> I'm trying to get something via an org-link. I suspect that it is
> possible, but the documentation is not clear enough for me to get it.
>
> I want to make an org-link that get me directly in eshell a program,
> and if it is possible to do it, I will bookmark this org-link.

What have you tried?  Have you looked at ol-eshell.el?

> To explain precisely what I want to do: I have an executable in
> /usr/local/bin that I  have called SMinlog , in a shell, the command
> SMinlog -p -i open directly the following output:
> SEQUENT:
> and in the my Linux desktop xfce I have also an icon that is a
> shortcut to open directly this program in a xfce4-terminal.

IIUC what you want boils down to having an eshell link that runs a
command.  I don't use ol-eshell myself, but, taking a quick look, this
seems to be possible.  For example, say I have a link like

    [[eshell:*eshell*:echo hello]]

Following that gives me

    Welcome to the Emacs shell

    /tmp $ echo hello
    hello
    /tmp $ 


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

* Re: how to get an org-link to open a program in eshell
  2020-04-25  4:39 ` Kyle Meyer
@ 2020-04-25  8:31   ` Joseph Vidal-Rosset
  0 siblings, 0 replies; 3+ messages in thread
From: Joseph Vidal-Rosset @ 2020-04-25  8:31 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: Liste-emacs-orgmode@gnu.org

Many thanks Kyle for your reply,

In fact  I have  succeeded to  open directly  some programs  with eshell
thanks to org-links like the following one:

[[eshell:program_name]]

If I put these org-links into an  org file and if I have bookmarked this
file.

Nevertheless, I do  not find that this solution is very elegant. In
my bookmark file I have this part of code:

#1=(#("eshell-launcher" 0 15
      (bmkp-full-record #1#))
    (buffer-name . "*dashboard*")
    (visits . 2)
    (time 24213 34946 832780 22000)
    (created 24213 34859 529449 8000)
    (position . 0)
    (function . eshell)
    (handler . bmkp-jump-function))

and it  works correctly: via  the bookmark in  my dashboard, I  can open
eshell . But I have not succeed to write a code in this bookmark file to
get a program that is opened  directly via eshell, hence org-links in an
org file.  All that I wrote in this bookmark file failed. Any suggestion
is welcome,  even if it  is not  a serious problem  to open an  org file
first. It is just an elegance issue.  

Best wishes, and again, thanks,

Jo. 




-- 
Joseph 


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

end of thread, other threads:[~2020-04-25  8:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-08  8:22 how to get an org-link to open a program in eshell Joseph Vidal-Rosset
2020-04-25  4:39 ` Kyle Meyer
2020-04-25  8:31   ` Joseph Vidal-Rosset

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