From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [OT] Taskwarrior, nice GTD-oriented CLI thing Date: Fri, 04 Feb 2011 13:38:35 -0700 Message-ID: <87tygj1q2e.fsf@gmail.com> References: <4D4B52F8.30203@gmail.com> <4D4B79FA.1000604@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=56039 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PlScu-0002Vp-F7 for emacs-orgmode@gnu.org; Fri, 04 Feb 2011 15:51:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PlSct-0003hS-1r for emacs-orgmode@gnu.org; Fri, 04 Feb 2011 15:51:32 -0500 Received: from mail-yx0-f169.google.com ([209.85.213.169]:43441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PlScs-0003hJ-Rg for emacs-orgmode@gnu.org; Fri, 04 Feb 2011 15:51:31 -0500 Received: by yxl31 with SMTP id 31so1295013yxl.0 for ; Fri, 04 Feb 2011 12:51:30 -0800 (PST) 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: Torsten Wagner Cc: Org Mode , Marcelo de Moraes Serpa --=-=-= Content-Type: text/plain I think such a shell-script wrapper around an emacs-client or emacs batch Org-mode instance sounds like a very nice idea -- and not overly difficult to implement. Here is a quick approach to implementing the org agenda example you suggested below [1] notice that the script is structured to dispatch on the first command, currently only "agenda" is implemented but it shouldn't be difficult to add others. Also, rather than a single org script like the one attached which dispatches based on its first argument, we could go the git path i.e., we can have org-agenda and org-add in the same way that git has git-log and git-push. Best -- Eric Torsten Wagner writes: > Hi Marcelo, > >> A CLI client would be nice, but IMHO, I don't think it would be faster >> than the operating org from emacs; perhaps for a couple of basic >> stuff, but I think that depends strongly on personal tastes. > > For me the most nicest part to have a CLI interface to org-mode would > be the fact that I could use all the command line magic instantaneous. > E.g., > > git log -n1 | org add "Remember to check the last commit" > > could end up in > > * Remember to check the last commit > > commit b9de5f08ba0833d2b1912d02335667e8e6cc17b > Author: User Foo > Date: Mon Dec 20 14:50:05 2010 -1000 > > This comment might fixes the bug Totti was dealing with > > > or a simple > > ls | org add "The files I have not processed so fare" > > could end up in > > * "The files I have not processed so fare" > > file1 > file2 > file6 > file11 > > and a > > org agenda next | xargs awesome-client notifyme("{}") > > could create a pop up in my window manager (awesome wm) informing me > about the next appointment in my agenda. > > Even more into hardware details, > a udev-rule could be used to send a certain command to org-mode > whenever a specific USB-stick is inserted in the computer. > People who like to clock there work might love this feature. > > There are actually hundreds of possible nice combinations... > > > All the best > > Totti > > > > >> Marcelo. >> >> On Thu, Feb 3, 2011 at 7:14 PM, Torsten Wagner wrote: >>> Hi, >>> >>> maybe someone should contact the devs there and invite them (to come to this >>> email list and/or vice versa). >>> There is really some beauty in the idea to use dead simple command line >>> tools to getting things fast and quickly done. On the other hand org-mode >>> has so many useful functions. >>> It would be a very nice integration for both sides to settle down on a way >>> to import/export data from each other seamlessly. >>> I work often with a shell and this would allow people to use the command >>> line whenever they just need to do to something quickly and switching to >>> emacs and org-mode if they need editor capabilities. >>> >>> Greetings >>> >>> Totti >>> >>> _______________________________________________ >>> Emacs-orgmode mailing list >>> Please 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 > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode Footnotes: [1] org script --=-=-= Content-Type: text/x-sh Content-Disposition: inline; filename=org #!/bin/sh # -*- mode: shell-script -*- # org --- Calls Org-mode from the command line: # # Author: Eric Schulte # # Usage: # # 1. update ORGINSTALL and ORGCONFIG to point to your local # org-install.el and your local org-mode configuration # (for things like org-agenda-files) # # 2. make this file executable # # 3. run one of the following commands # # org agenda fmt ## where fmt is one of txt, html, ps or ics # no other commands yet... # ORGINSTALL="~/emacs/src/org/lisp/org-install.el" ORGCONFIG="~/emacs/eschulte-org.el" ## wrappers for the eval command sent to Emacs ORGSTARTUPOPEN=$(cat < /dev/null --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--