Re: [O] multi letter agenda commands
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
Re: [O] multi letter agenda commands
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 >
Re: [O] multi letter agenda commands
How did i forget about hydra :) perfect, thx so much! Z
Re: [O] multi letter agenda commands
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
Re: [O] multi letter agenda commands
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
[O] multi letter agenda commands
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