From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Easy to use asking for Or-gmode property values (e.g., for Org-contacts) Date: Thu, 28 May 2015 12:11:28 +0200 Message-ID: <2015-05-28T12-10-26@devnull.Karl-Voit.at> Reply-To: Karl Voit Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxunJ-0006Ns-Gz for emacs-orgmode@gnu.org; Thu, 28 May 2015 06:12:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxunF-0000kn-SA for emacs-orgmode@gnu.org; Thu, 28 May 2015 06:12:09 -0400 Received: from plane.gmane.org ([80.91.229.3]:48922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxunF-0000kD-Ks for emacs-orgmode@gnu.org; Thu, 28 May 2015 06:12:05 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YxunD-00061v-5d for emacs-orgmode@gnu.org; Thu, 28 May 2015 12:12:03 +0200 Received: from friends.grml.info ([136.243.234.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 May 2015 12:12:03 +0200 Received: from news1142 by friends.grml.info with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 May 2015 12:12:03 +0200 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: emacs-orgmode@gnu.org Hi! I am using Org-contacts that way, that I copy new information from external sources and move them to the properties afterwards: : ** Firstname Lastname :FirstnameLastname: : :PROPERTIES: : :TYPE: : :TITLE: : :EMAIL: Firstname@company.com : :URL: : :MOBILE: 0043/ : :HOMEPHONE: : :WORKPHONE: : :PHONE: : :COMPANY: This Company : :STREET: Companystreet 42 : :POSTALCODE: 8010 : :CITY: Thiscity : :COUNTRY: Österreich : :PHOTOGRAPH: [[photo:FirstnameLastname.jpg]] : :BORN: 1970-12-31 : :ITOLDTHEM_EMAIL: thisorthat@mydomain.com : :ITOLDTHEM_ADDRESS: : :ITOLDTHEM_PHONE: : :ADDRESS_CHANGE_METHOD: email : :CREATED: [2015-05-27 Wed 19:46] : :END: : : - <2013-01-13 Fri> met at dinner party : - This old company : - Firstname@oldcompany.com : - <2015-05-27 Wed> contact from XING with new data : - This Company : - Firstname@company.com : - Companystreet 42, 8010 Thiscity : - he is born on December 31st, 1970 This way, I do have the whole history below the properties and the most current information. The task of adding information is tedious: copy & paste from external sources and then copy & paste to the properties accordingly. This is why I came up with this idea: how about I paste new information at the end of and then call a function which helps me a lot: - ask for each property (or a set of pre-defined properties) - prompt property name - let the user mark a region using keyboard or mouse - if user presses confirmation keyoard shortcut (return?) - if region: copy the region and set it as the new content for the current property (overwriting any old property settings) - if no region is set: do not change property The workflow would improve a lot! And I do guess that this might be a very handy function for lots of other purposes as well: ask me for all or some properties! With my very limited understanding of elisp: can this (easily) done? Is there a code snippet which does similar stuff? -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github