* multi letter agenda commands
@ 2015-10-11 16:00 Xebar Saram
2015-10-11 16:04 ` Eric S Fraga
2015-10-11 16:49 ` John Kitchin
0 siblings, 2 replies; 6+ messages in thread
From: Xebar Saram @ 2015-10-11 16:00 UTC (permalink / raw)
To: org mode
[-- Attachment #1: Type: text/plain, Size: 656 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1180 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: multi letter agenda commands
2015-10-11 16:00 multi letter agenda commands Xebar Saram
@ 2015-10-11 16:04 ` Eric S Fraga
2015-10-11 16:49 ` John Kitchin
1 sibling, 0 replies; 6+ messages in thread
From: Eric S Fraga @ 2015-10-11 16:04 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: multi letter agenda commands
2015-10-11 16:00 multi letter agenda commands Xebar Saram
2015-10-11 16:04 ` Eric S Fraga
@ 2015-10-11 16:49 ` John Kitchin
2015-10-11 17:34 ` Xebar Saram
1 sibling, 1 reply; 6+ messages in thread
From: John Kitchin @ 2015-10-11 16:49 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: multi letter agenda commands
2015-10-11 16:49 ` John Kitchin
@ 2015-10-11 17:34 ` Xebar Saram
2015-10-11 22:17 ` Subhan Michael Tindall
0 siblings, 1 reply; 6+ messages in thread
From: Xebar Saram @ 2015-10-11 17:34 UTC (permalink / raw)
To: John Kitchin; +Cc: org mode
[-- Attachment #1: Type: text/plain, Size: 58 bytes --]
How did i forget about hydra :)
perfect, thx so much!
Z
[-- Attachment #2: Type: text/html, Size: 238 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: multi letter agenda commands
2015-10-11 17:34 ` Xebar Saram
@ 2015-10-11 22:17 ` Subhan Michael Tindall
2015-10-21 21:28 ` Matt Lundin
0 siblings, 1 reply; 6+ messages in thread
From: Subhan Michael Tindall @ 2015-10-11 22:17 UTC (permalink / raw)
To: Xebar Saram, John Kitchin; +Cc: org mode
[-- Attachment #1: Type: text/plain, Size: 325 bytes --]
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 <zeltakc@gmail.com> wrote:
> How did i forget about hydra :)
>
> perfect, thx so much!
>
> Z
>
[-- Attachment #2: Type: text/html, Size: 816 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: multi letter agenda commands
2015-10-11 22:17 ` Subhan Michael Tindall
@ 2015-10-21 21:28 ` Matt Lundin
0 siblings, 0 replies; 6+ messages in thread
From: Matt Lundin @ 2015-10-21 21:28 UTC (permalink / raw)
To: Subhan Michael Tindall; +Cc: Xebar Saram, org mode, John Kitchin
Subhan Michael Tindall <subhan.michael@gmail.com> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-10-21 21:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-11 16:00 multi letter agenda commands Xebar Saram
2015-10-11 16:04 ` Eric S Fraga
2015-10-11 16:49 ` John Kitchin
2015-10-11 17:34 ` Xebar Saram
2015-10-11 22:17 ` Subhan Michael Tindall
2015-10-21 21:28 ` Matt Lundin
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.