From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Using link abbrevations for EXPORT_FILE_NAME ? Date: Sun, 08 Nov 2015 20:11:23 +0100 Message-ID: <87bnb471d0.fsf@nicolasgoaziou.fr> References: <8038470.jhX8ZjFPSM@linux-k2bd.site> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvVLP-0003G4-LD for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 14:09:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvVLO-0002OX-PM for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 14:09:39 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:59072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvVLO-0002OE-Ih for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 14:09:38 -0500 In-Reply-To: <8038470.jhX8ZjFPSM@linux-k2bd.site> (AW's message of "Tue, 03 Nov 2015 15:07:17 +0100") 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: AW Cc: emacs-orgmode@gnu.org Hello, AW writes: > on orgmode 8.3.2 I've got a large org-file. Offen, I need to export a subtree > like this: > > ----------------- > * Subtree to be exported > :PROPERTIES: > :EXPORT_FILE_NAME: /PATH/TO/FOLDER/filename > :EXPORT_TITLE: > :END: > > foo > > ----------------- > > I'd like to save the exported file in a project folder, as you can see in > EXPORT_FILE_NAME . > > It would be very helpful to use link abbrevations in EXPORT_FILE_NAME : > > (setq org-link-abbrev-alist > '(("anglisky" . "~/Path/whereever/%s"))) > > in .emacs and write: > > ----------------- > * Subtree to be exported > :PROPERTIES: > :EXPORT_FILE_NAME: anglisky:filename > :EXPORT_TITLE: > :END: > > foo > > ----------------- > > Possible? Feature Request? Not possible. Also, link syntax sounds awkward because most links wouldn't make sense there. What about introducing a new property: :EXPORT_FILE_DIRECTORY: When set, e.g. to "dir", assuming EXPORT_FILE_NAME is set to "foo/file", export file name becomes "dir/file". Since you can set it per subtree or document, I think it would help in your situation. WDYT? Regards, -- Nicolas Goaziou