From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: org-capture-templates with multi charachter keys Date: Wed, 18 Jan 2017 15:02:09 +0100 Message-ID: <84wpds4gbi.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTqoz-00018w-HN for emacs-orgmode@gnu.org; Wed, 18 Jan 2017 09:02:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTqow-0002gU-7a for emacs-orgmode@gnu.org; Wed, 18 Jan 2017 09:02:41 -0500 Received: from [195.159.176.226] (port=33901 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTqow-0002et-0E for emacs-orgmode@gnu.org; Wed, 18 Jan 2017 09:02:38 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cTqoZ-0003aS-51 for emacs-orgmode@gnu.org; Wed, 18 Jan 2017 15:02:15 +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" To: emacs-orgmode@gnu.org Hi, Roland Everaert writes: > Is there somewhere in the org documentation or on the internet a complete > example of using multi-character keys in org-capture. > > This excerpt from the documentation is not clear to me :/ > > "The keys that will select the template, as a string, characters only, for > example "a" for a template to be selected with a single key, or "bt" for > selection with two keys. When using several keys, keys using the same > prefix key must be sequential in the list and preceded by a 2-element entry > explaining the prefix key, for example > > ("b" "Templates for marking stuff to buy") > > Moreover, can a prefix be composed of multiple characters or only one? The following example might help you understand. It's cut and paste from a customize buffer for org-capture-templates. With this customization one can use the keys x t p to get to the "tree poem" capture. (Tree and poem is completely artificial.) And in the same way x t n brings up the capture for "tree new". #v+ For help using this buffer, see Easy Customization in the Emacs manual. Operate on all settings in this buffer: Revert... Apply Apply and Save Hide Org Capture Templates: INS DEL Choice: Value Menu Multikey description: Keys : x Description: my multikeys starting with x INS DEL Choice: Value Menu Multikey description: Keys : xt Description: my submultikeys starting with xt (trees) INS DEL Choice: Value Menu Template entry: Keys : xtp Description : tree poem Capture Type : Value Menu Org entry Target location: Value Menu File: Filename : Value Menu Literal: ~/org/refile.org Template : Value Menu String: Plist: [ ] Key: :prepend t [ ] Key: :immediate-finish t [ ] Key: :jump-to-captured t [ ] Key: :empty-lines 1 [ ] Key: :empty-lines-before 1 [ ] Key: :empty-lines-after 1 [ ] Key: :clock-in t [ ] Key: :clock-keep t [ ] Key: :clock-resume t [ ] Key: :unnarrowed t [ ] Key: :table-line-pos t [ ] Key: :kill-buffer t INS INS DEL Choice: Value Menu Template entry: Keys : xtn Description : new tree Capture Type : Value Menu Org entry Target location: Value Menu File: Filename : Value Menu Literal: ~/org/refile.org ... #v- HTH, Marco