From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: What is the most practical workflow for capturing things in Mobileorg and later integrating them into the main files? Date: Fri, 11 Sep 2015 12:23: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]:37277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaR6v-0006S0-Ay for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 12:23:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaR6r-0004St-Ec for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 12:23:37 -0400 Received: from mail-qk0-x234.google.com ([2607:f8b0:400d:c09::234]:33852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaR6r-0004Sh-A6 for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 12:23:33 -0400 Received: by qkfq186 with SMTP id q186so33972173qkf.1 for ; Fri, 11 Sep 2015 09:23: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: Jorge Cc: emacs-orgmode@gnu.org Hi Jorge, My mobile capture work flow is: 1) Automatically pull whenever changes are made 2) Pulled items go into "refile.org" 3) refile.org tags all items as REFILE with: #+FILETAGS: REFILE as the top line 4) My default (custom) agenda shows a REFILE section if and only if it exists. In more detail, 1) ;; Pull whenever mobileorg.org changes http://stackoverflow.com/questions/3456782/emacs-lisp-how-to-monitor-changes-of-a-file-directory (defvar monitor-attributes nil "Cached file attributes to be monitored.") (defun install-monitor (file secs) (run-with-timer 0 secs (lambda (f p) (let ((att (elt (file-attributes f) 5))) (unless (or (null monitor-attributes) (equalp monitor-attributes att)) (org-mobile-pull) (org-mobile-push) ) (setq monitor-attributes att))) file secs)) (defvar monitor-timer (install-monitor (concat org-mobile-directory "/mobileorg.org") 5) "Check if MobileOrg/mobileorg.org is changed every 5s.") And 4) (setq org-agenda-custom-commands '( ("c" "My Custom Agenda" ( (tags "REFILE" ((org-agenda-overriding-header "REFILE"))) ...etc... AND https://lists.gnu.org/archive/html/emacs-orgmode/2015-06/msg00266.html to only show the REFILE section if items are there. Hope this helps, -k. On 2015-09-11 at 10:00, Jorge wrote: > Hi. When I capture something in MobileOrg, it by default is classified as > "Captures" and, when I do org-mobile-pull, those captures /silently/ go into > ~/org/from-mobile.org. This is bad. > > So one workflow would be to write some code that warns me if > ~/org/from-mobile.org is non-empty, and find a way of hooking it into > org-mobile-pull. Then: > 1) Capture something in MobileOrg > 2) Do org-mobile-pull > 3) If the code I wrote as above warns me that ~/org/from-mobile.org is > non-empty, then visit it, go through the entries, fix them (adding more > information now that I have a real keyboard) and use org-refile. > > Is there a more practical and easier option? > > Regards