From mboxrd@z Thu Jan 1 00:00:00 1970 From: casedeck Subject: Follow mode to also narrow buffer Date: Tue, 2 Sep 2014 15:47:35 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOqLV-00066P-Be for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 11:50:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOqLN-0002ZP-Rg for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 11:50:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:35570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOqLN-0002VY-MH for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 11:50:05 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XOqLM-0001t8-EE for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 17:50:04 +0200 Received: from 89.201.162.46 ([89.201.162.46]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Sep 2014 17:50:04 +0200 Received: from casedeck+orgmode by 89.201.162.46 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Sep 2014 17:50:04 +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 all, apologies if this was asked before, I couldn't find it. I would like, when using Follow mode in the agenda view, to have the other buffer (opened through Follow) be immediately narrowed to the current subtree (through function org-narrow-to-subtree). So, the Follow-mode would not show the whole agenda file (centered to the selected item in the agenda), but would show only that item and it's subtree. Ideally, if the current item is a subtask, the Follow mode would also show the parent task abbreviated (with "..."), and it's parent if it exists, and so on until the top heading marked with a todo keyword is shown (I guess that could be called org-narow-subtree-with-above-tasks or similar) - but I'm not sure this is achievable... I suppose just the buffer narrowing can be done (probably quite easily) through some hook or something, but I (yet) don't have the skill to write that code myself. Can anyone help, please?