From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: multi letter agenda commands Date: Sun, 11 Oct 2015 19:00:12 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1147ffc6ce3b670521d64e42 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlJ2k-0003Mq-Ci for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 12:00:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlJ2j-0006zN-6F for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 12:00:14 -0400 Received: from mail-yk0-x22d.google.com ([2607:f8b0:4002:c07::22d]:35576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlJ2j-0006zG-1b for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 12:00:13 -0400 Received: by ykec126 with SMTP id c126so79972372yke.2 for ; Sun, 11 Oct 2015 09:00:12 -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: org mode --001a1147ffc6ce3b670521d64e42 Content-Type: text/plain; charset=UTF-8 Hi all im wondering if anyone knows a way (or if its possible at all) to have multi letter agenda commands, for example ("fc" "to cook" tags "Cuisine=\"American\"" ( (org-agenda-files '("~/org/files/agenda/food.org")) (org-agenda-sorting-strategy '(priority-down)) ;; Sort by priority where priority goes first. ) ) ("fa" "to cook" tags "Cuisine=\"Asian\"" ( (org-agenda-files '("~/org/files/agenda/food.org")) (org-agenda-sorting-strategy '(priority-down)) ;; Sort by priority where priority goes first. ) ) where i would press f then a or c to launch the appropriate agenda command thx so much Z --001a1147ffc6ce3b670521d64e42 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all

im wondering if anyone knows a w= ay (or if its possible at all) to have multi letter agenda commands, for ex= ample

("fc" "to cook" =C2= =A0tags "Cuisine=3D\"American\""
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 (
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(org= -agenda-files '("~/org/files/agenda/fo= od.org"))=C2=A0
=C2=A0 =C2=A0 (org-agenda-sorting-strate= gy '(priority-down)) ;; =C2=A0Sort by priority where priority goes firs= t.

)
)

("fa" "to cook" =C2=A0tags "Cuisine=3D\"As= ian\""
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(org-agenda-files '("~/org/files= /agenda/food.org"))=C2=A0
= =C2=A0 =C2=A0 (org-agenda-sorting-strategy '(priority-down)) ;; =C2=A0S= ort by priority where priority goes first.

)
=
)

where i would press f then a or c to = launch the appropriate agenda command

thx so much<= /div>

Z
--001a1147ffc6ce3b670521d64e42-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: multi letter agenda commands Date: Sun, 11 Oct 2015 17:04:46 +0100 Message-ID: <874mhxwfvl.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlJ7G-0005H6-4Y for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 12:04:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlJ7C-0008Ho-V6 for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 12:04:54 -0400 Received: from mail-db3on0127.outbound.protection.outlook.com ([157.55.234.127]:6848 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlJ7C-0008HJ-My for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 12:04:50 -0400 In-Reply-To: (Xebar Saram's message of "Sun, 11 Oct 2015 19:00:12 +0300") 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: Xebar Saram Cc: org mode On Sunday, 11 Oct 2015 at 19:00, Xebar Saram wrote: > Hi all > > im wondering if anyone knows a way (or if its possible at all) to have > multi letter agenda commands, for example I don't know. Try it and see? More often than not, when it comes to org, what you want is already possible! :-) -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-161-gd2ac25 From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: multi letter agenda commands Date: Sun, 11 Oct 2015 12:49:29 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlJoX-0007Oo-Aj for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 12:49:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlJoS-0003DX-W2 for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 12:49:37 -0400 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:35485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlJoS-0003DT-Rw for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 12:49:32 -0400 Received: by qkap81 with SMTP id p81so51053168qka.2 for ; Sun, 11 Oct 2015 09:49:32 -0700 (PDT) In-reply-to: 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: Xebar Saram Cc: org mode I didn't try Eric's advice but it is probably a good idea ;) This is pretty easy to do with a hydra menu. Here is a super simple example. See https://github.com/abo-abo/hydra. (defhydra hydra-agenda (:color red :hint nil) "Agenda hydra" ("fd" (org-tags-view nil "TODO=\"DONE\"") "DONE") ("ft" (org-tags-view nil "TODO=\"TODO\"") "TODO") ("fa" (org-tags-view nil "TODO=\"ASSIGNED\"") "ASSIGNED")) This creates a command hydra-agenda/body that will give you a menu with hints. I love hydras for this kind of thing. Xebar Saram writes: > Hi all > > im wondering if anyone knows a way (or if its possible at all) to have > multi letter agenda commands, for example > > ("fc" "to cook" tags "Cuisine=\"American\"" > ( > (org-agenda-files '("~/org/files/agenda/food.org")) > (org-agenda-sorting-strategy '(priority-down)) ;; Sort by priority > where priority goes first. > > ) > ) > > ("fa" "to cook" tags "Cuisine=\"Asian\"" > ( > (org-agenda-files '("~/org/files/agenda/food.org")) > (org-agenda-sorting-strategy '(priority-down)) ;; Sort by priority > where priority goes first. > > ) > ) > > where i would press f then a or c to launch the appropriate agenda command > > thx so much > > Z -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: multi letter agenda commands Date: Sun, 11 Oct 2015 20:34:51 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114e608251930c0521d7a1d5 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlKWK-0005bV-Vs for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 13:34:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlKWK-0007su-7i for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 13:34:52 -0400 Received: from mail-yk0-x22e.google.com ([2607:f8b0:4002:c07::22e]:35799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlKWK-0007sq-2y for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 13:34:52 -0400 Received: by ykec126 with SMTP id c126so80995456yke.2 for ; Sun, 11 Oct 2015 10:34:51 -0700 (PDT) In-Reply-To: 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: John Kitchin Cc: org mode --001a114e608251930c0521d7a1d5 Content-Type: text/plain; charset=UTF-8 How did i forget about hydra :) perfect, thx so much! Z --001a114e608251930c0521d7a1d5 Content-Type: text/html; charset=UTF-8
How did i forget about hydra :)

perfect, thx so much!

Z
--001a114e608251930c0521d7a1d5-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subhan Michael Tindall Subject: Re: multi letter agenda commands Date: Sun, 11 Oct 2015 22:17:50 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1143f88cee67850521db951a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlOwM-0001ju-Qs for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 18:18:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlOwL-0003Zx-BK for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 18:18:02 -0400 Received: from mail-vk0-x233.google.com ([2607:f8b0:400c:c05::233]:33949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlOwL-0003Zc-83 for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 18:18:01 -0400 Received: by vkat63 with SMTP id t63so77543368vka.1 for ; Sun, 11 Oct 2015 15:18:00 -0700 (PDT) In-Reply-To: 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: Xebar Saram , John Kitchin Cc: org mode --001a1143f88cee67850521db951a Content-Type: text/plain; charset=UTF-8 It's already built in to custom agendas. See http://pages.sachachua.com/.emacs.d/Sacha.html#unnumbered-80 for excellent agenda examples. Sacha is a great resource for most things org On Sun, Oct 11, 2015, 10:35 AM Xebar Saram wrote: > How did i forget about hydra :) > > perfect, thx so much! > > Z > --001a1143f88cee67850521db951a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

It's already built in to custom agendas.=C2=A0 See http://= pages.sachachua.com/.emacs.d/Sacha.html#unnumbered-80 for excellent age= nda examples.=C2=A0 Sacha is a great resource for most things org


On Sun, Oct 11, 2015, 10:35= AM=C2=A0Xebar Saram <zeltakc@gmail= .com> wrote:
How did i forget about hydra :)

perfect, thx so much= !

Z
--001a1143f88cee67850521db951a-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: multi letter agenda commands Date: Wed, 21 Oct 2015 16:28:13 -0500 Message-ID: <87mvvboqs2.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zp0vi-0003GV-6g for emacs-orgmode@gnu.org; Wed, 21 Oct 2015 17:28:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zp0ve-0004h5-6k for emacs-orgmode@gnu.org; Wed, 21 Oct 2015 17:28:18 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:39772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zp0ve-0004fv-2v for emacs-orgmode@gnu.org; Wed, 21 Oct 2015 17:28:14 -0400 In-Reply-To: (Subhan Michael Tindall's message of "Sun, 11 Oct 2015 22:17:50 +0000") 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: Subhan Michael Tindall Cc: Xebar Saram , org mode , John Kitchin Subhan Michael Tindall writes: > It's already built in to custom agendas. See > http://pages.sachachua.com/.emacs.d/Sacha.html#unnumbered-80 for > excellent agenda examples. Sacha is a great resource for most things > org And there's also the manual. ;) "The initial string in each entry defines the keys you have to press after the dispatcher command C-c a in order to access the command. Usually this will be just a single character, but if you have many similar commands, you can also define two-letter combinations where the first character is the same in several combinations and serves as a prefix key." http://orgmode.org/manual/Storing-searches.html Matt