From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: move org line to next superior level Date: Thu, 29 May 2014 16:28:52 +0200 Message-ID: <874n08zmjf.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wq1KX-0005SQ-Rj for emacs-orgmode@gnu.org; Thu, 29 May 2014 10:29:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wq1KQ-0002bS-D1 for emacs-orgmode@gnu.org; Thu, 29 May 2014 10:29:17 -0400 Received: from plane.gmane.org ([80.91.229.3]:50974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wq1KQ-0002b9-6X for emacs-orgmode@gnu.org; Thu, 29 May 2014 10:29:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wq1KN-00024J-DM for emacs-orgmode@gnu.org; Thu, 29 May 2014 16:29:07 +0200 Received: from g231233153.adsl.alicedsl.de ([92.231.233.153]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 May 2014 16:29:07 +0200 Received: from tjolitz by g231233153.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 May 2014 16:29:07 +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 Uwe Ziegenhagen writes: Hi, > is there a way to move a specific org mode item across its superior level > via shortcut? > > In the following example I'd like to move the "cccc" line via shortcut > below > the 'bbbb' line. > > * aaa > ** TODO cccc > * bbb > ** TODO dddd > > As addon it would be cool to flag this moved line with e.g. "moved on > 2014-05-29" > > What I trying to accomplish here is to create a kind of electronic version > of 43folders. When I am not able to finish a task on say Monday, I'd > like to > be able to move it (or alternatively copy it [while setting the original > entry's status to "postponed"]) to the next day. Isn't it a feature of Org-mode that tasks can be added anywhere without giving a thought in the agenda files, letting the agenda itself sort them by date? Just changing the timestamp from monday to tuesday would do the job in a normal workflow, making the agenda-file structuring by day redundant. Otherwise what you want would be pretty easy to implement with Orgs basic structure editing and navigation functions, e.g. #+begin_src emacs-lisp (defun tj/move-entry-to-next-day () "Move entry at point to next parent and tag it." (unless (org-on-heading-p) (outline-previous-heading)) (org-mark-subtree) (kill-region (region-beginning) (region-end)) (org-up-heading-safe) (org-forward-heading-same-level 1) (forward-line) (yank) (outline-previous-heading) (org-mark-subtree) (org-change-tag-in-region (region-beginning) (region-end) "postponed" nil)) #+end_src This works with you example Org snippet, but is not tested otherwise. -- cheers, Thorsten