From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dov Grobgeld Subject: org-edit-file ? Date: Wed, 20 Jul 2011 17:26:37 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0003255729c220fd6604a88105de Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjXjW-00062c-Cx for emacs-orgmode@gnu.org; Wed, 20 Jul 2011 10:26:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjXjU-0002QE-5l for emacs-orgmode@gnu.org; Wed, 20 Jul 2011 10:26:41 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:55518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjXjT-0002P9-GB for emacs-orgmode@gnu.org; Wed, 20 Jul 2011 10:26:39 -0400 Received: by iyb14 with SMTP id 14so300470iyb.0 for ; Wed, 20 Jul 2011 07:26:37 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --0003255729c220fd6604a88105de Content-Type: text/plain; charset=UTF-8 I just thought of an idea that I wonder if someone has implemented. While writing my journal I find myself wanting to insert a graphics file, e.g. a svg file and I write *file:foo.svg* . After having written the name I enter inkscape to create the contents of the file. To do that I have to run inkscape manually and eventually doing saveas and navigate to the correct directory to save the file. So my idea is to have a a new command org-edit-file that would: - If the file does not exist, copy a skeleton file to the filename or generate the skeleton file by an emacs-function or by calling an external application. - Call the configured editor application on the new file. - If invoked with Ctrl-u , allow the user to specify what editor to run on the file, e.g. inkscape, or killustrator on svg files. Does something like this already exists? Regards, Dov --0003255729c220fd6604a88105de Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I just thought of an idea that I wonder if someone has imp= lemented.

While writing my journal I find myself wanting to insert a= graphics file, e.g. a svg file and I write file:foo.svg . After having written the name I=C2=A0 enter inkscape to create the = contents of the file. To do that I have to run inkscape manually and eventu= ally doing saveas and navigate to the correct directory to save the file. S= o my idea is to have a a new command org-edit-file that would:
  • If the file does not exist, copy a skeleton file to the filename or= generate the skeleton file by an emacs-function or by calling an external = application.
  • Call the configured editor application on the new file= .
  • If invoked with Ctrl-u , allow the user to specify what editor to run o= n the file, e.g. inkscape, or killustrator on svg files.
Does some= thing like this already exists?

Regards,
Dov

--0003255729c220fd6604a88105de--