From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mario E. Munich" Subject: Re: property searches for #+CATEGORY Date: Mon, 08 Dec 2008 22:51:13 -0800 Message-ID: <493E1561.5090502@ieee.org> References: <493C5DBA.9080303@evolution.com> <8961829C-A8C1-4835-8F6D-386BA1DDE335@uva.nl> <493DBCE1.1080507@ieee.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9wRQ-00082p-9n for emacs-orgmode@gnu.org; Tue, 09 Dec 2008 01:51:32 -0500 Received: from [199.232.76.173] (port=35630 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9wRO-00082g-Qg for emacs-orgmode@gnu.org; Tue, 09 Dec 2008 01:51:30 -0500 Received: from posteaux1.caltech.edu ([131.215.239.119]:40683 helo=mail.alumni.caltech.edu) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9wRO-0006mo-Fn for emacs-orgmode@gnu.org; Tue, 09 Dec 2008 01:51:30 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matthew Lundin Cc: emacs-orgmode@gnu.org Dear Matt, thanks a lot for the tips... I have settled down on using FILETAGS and then using C-c a M to get the TODO lists for either personal or work. Thanks a lot for all the help! Best regards, -Mario Matthew Lundin wrote: > Hi Mario, > > I find the easiest way to filter for personal and professional tasks > is to use a filetag at the top of each file, e.g., > > #+FILETAGS: prof > > I use filetags because the agenda has a wonderful shortcut for > filtering by tags. When I call the agenda, I simply hit "/" and then > the shortcut for either my "prof" or "per" tag to filter the items. > It's lightning quick and does the job painlessly (i.e., without any > custom agenda searches). I have org-use-tag-inheritance set to t, but > if you want fine-grained control of what tags are inherited, Org 6.14 > has some nice new options. > > Of course, if you'd prefer to use categories instead of filetags, they > also work just fine for custom agenda searches. For example, > > (setq org-agenda-custom-commands > '(("w" tags-todo "CATEGORY=\"work\"") > ("h" tags-todo "CATEGORY=\"home\""))) > > Finally, you can always search by category using C-c a m or C-c a M > and then typing the following: > > CATEGORY="work" > > In short, there are lot of nice ways to achieve the functionality > you're looking for. > > I hope this helps. > > Best, > > Matt > > "Mario E. Munich" writes: > > >> Dear Carsten, >> >> I am really sorry for not having been clear... let me explain myself a >> little bit and hopefully you would be able to point me in the right >> direction. >> >> First of all, I would like to mention that I am a planner-el convert >> given the flexibility that org-mode provides. I have converted all my >> planner files into org-mode files and I am moving forward using org-mode. >> >> My particular use-case scenario (that seemed to be the same scenario >> that Adam mentioned in this thread) is that I would like to have two set >> of org files stored in separated directories: one set for the office >> (work) and another set for home (personal). I am able to run agenda >> commands in both sets of files using org-agenda-files and I am able to >> see all the TODO items using the basic C-a a commands. However, I would >> like to search for TODO items that correspond only to my work or only to >> my home (basically, have two emacs buffers, one with work TODO lists and >> another with personal TODO lists to avoid cluttering). >> >> From this thread of emails of about a year ago, I thought that the >> solution to my use-case was to add a #+CATEGORY indicator on the files. >> I have added the following lines: >> >> #+CATEGORY: work my-work-project >> >> or >> >> #+CATEGORY: personal my-personal-project >> >> accordingly in the work and the personal files. >> So, I am now at the point in which I would like to customize the >> org-agenda-custom-commands to search for CATEGORY work or personal TODO >> items. I have looked in the mailing list and in the org-mode >> documentation and I have not been able to find a good example on how to >> do this (I should add that my lisp skills are not that great and >> therefore that might be the root cause of the problem). >> >> I have several questions: >> >> 1) Given my use-case, is this the right approach? Should I be using >> something else like FILETAGS? >> >> I think that this use-case might be rather common for people working in >> industry in which you would like to have a separation between work and >> personal files due to IP and ownership issues. Things might be even >> worse if you use SVN at work and GIT at home (my case). So, I would >> think that it would be useful to have a simple skeleton setup in the >> documentation. In planner, I used to have a way of switching between >> pointing at work or personal files, but this setup was less than ideal. >> >> 2) If using CATEGORY is the right thing to do, how should I write the >> search function? >> >> Thanks a lot for your help and support... And not that you need any more >> praise for org-mode, but, man, it is really, really good!!!! >> >> Thanks again, >> >> -Mario >> >> Carsten Dominik wrote: >> >>> Hi Mario, >>> >>> the fact that you "have read all the postings" almost contradicts >>> your other statement that you "have implemented *the* method". >>> I guess you need to tell us more about your detailed setup >>> to get a useful reply. >>> >>> - Carsten >>> >>> On Dec 8, 2008, at 12:35 AM, Mario E. Munich wrote: >>> >>> >>>> Dear all, >>>> >>>> I am sorry to bother you with a silly question, but I have read all the >>>> postings on the orgmode list on how to separate files for work and >>>> personal using the CATEGORY stuff. I have implemented the method, but I >>>> cannot get org-agenda-custom-commands to search properly in each >>>> category. Any pointers/help would be highly appreciated. >>>> >>>> Best regards, >>>> >>>> -Mario >>>> >>>> -- >>>> Mario E. Munich, PhD >>>> VP of Engineering >>>> Principal Scientist >>>> Evolution Robotics >>>> Ph: (626) 993-3317 >>>> Fax: (626) 993-3301 >>>> mario@evolution.com >>>> http://www.evolution.com >>>> >>>> >>>> >>>> _______________________________________________ >>>> Emacs-orgmode mailing list >>>> Remember: use `Reply All' to send replies to the list. >>>> Emacs-orgmode@gnu.org >>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>>> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>