From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Avner" Subject: Org-agenda - show content outline from multiple org files Date: Tue, 26 Jun 2012 11:13:27 -0700 Message-ID: <0398D32711F74A5EBBB9568B01F28543@familyPC> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0036_01CD538C.BA56CCF0" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjaGw-000513-Vh for emacs-orgmode@gnu.org; Tue, 26 Jun 2012 14:13:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjaGv-00083g-1P for emacs-orgmode@gnu.org; Tue, 26 Jun 2012 14:13:54 -0400 Received: from defout.telus.net ([204.209.205.32]:58140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjaGu-000814-NM for emacs-orgmode@gnu.org; Tue, 26 Jun 2012 14:13:52 -0400 Received: from edmwcm02 ([204.209.205.31]) by priv-edmwes23.telusplanet.net (InterMail vM.8.01.03.00 201-2260-125-20100507) with ESMTP id <20120626181345.EMOT14610.priv-edmwes23.telusplanet.net@edmwcm02> for ; Tue, 26 Jun 2012 12:13:45 -0600 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 Cc: 'Avner Moshkovitz' This is a multi-part message in MIME format. ------=_NextPart_000_0036_01CD538C.BA56CCF0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, I have a list of org files associated with org-agenda. In the Org-Agenda buffer, I want to have a outline content view that shows the headings from all the files. In org-agenda, I can apply "search for keywords" (s) and "Multi-occur" (/) to present all the headings, which I can then visit in the org file buffer However, these headings are shown as regular strings. What I'm looking for, is a way to present them in color, and indentation according to the heading level, similar to the "contents" presentation in the org file itself. Regards, Avner Moshkovitz ------=_NextPart_000_0036_01CD538C.BA56CCF0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I have a list of org files associated with = org-agenda.

In the Org-Agenda buffer, I want to have a outline = content view that shows the headings from all the = files.

 

In org-agenda, I can apply "search for = keywords" (s) and "Multi-occur" (/) to present all the headings, which I can = then visit in the org file buffer

However, these headings are shown as regular strings. = What I'm looking for, is a way to present them in color, and indentation = according to the heading level, similar to the "contents" presentation in = the org file itself.

 

Regards,

 

Avner Moshkovitz

 

------=_NextPart_000_0036_01CD538C.BA56CCF0-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Org-agenda - show content outline from multiple org files Date: Tue, 26 Jun 2012 21:25:19 -0400 Message-ID: <87d34lmtq8.fsf@norang.ca> References: <0398D32711F74A5EBBB9568B01F28543@familyPC> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjh0a-0004UC-DR for emacs-orgmode@gnu.org; Tue, 26 Jun 2012 21:25:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sjh0Y-00084l-Ec for emacs-orgmode@gnu.org; Tue, 26 Jun 2012 21:25:27 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:45601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjh0Y-00083E-Aq for emacs-orgmode@gnu.org; Tue, 26 Jun 2012 21:25:26 -0400 In-Reply-To: <0398D32711F74A5EBBB9568B01F28543@familyPC> (avner@telus.net's message of "Tue, 26 Jun 2012 11:13:27 -0700") 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: Avner Cc: 'Avner Moshkovitz' , emacs-orgmode@gnu.org "Avner" writes: > I have a list of org files associated with org-agenda. > > In the Org-Agenda buffer, I want to have a outline content view that > shows the headings from all the files. > > In org-agenda, I can apply "search for keywords" (s) and "Multi-occur" > (/) to present all the headings, which I can then visit in the org > file buffer > > However, these headings are shown as regular strings. What I'm looking > for, is a way to present them in color, and indentation according to > the heading level, similar to the "contents" presentation in the org > file itself. Hi Avner, Maybe this is close to what you are looking for? (setq org-tags-match-list-sublevels t) C-c a m LEVEL<4 RET should show levels 1-3 in all files with sublevels indented. Sorting by priorities and things is going to mess up the order in the list. For me only the TODO keywords are coloured and indentation is done with leading dots in the agenda view but you can visit and modify the headings directly from the agenda. HTH. Regards, Bernt From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avner Moshkovitz Subject: Re: Org-agenda - show content outline from multiple org files Date: Tue, 31 Jul 2012 17:12:49 -0700 Message-ID: References: <0398D32711F74A5EBBB9568B01F28543@familyPC> <87d34lmtq8.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwMsj-0004xp-8C for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 20:33:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwMsi-0004By-32 for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 20:33:45 -0400 Received: from mailex.lighthauslogic.com ([96.53.49.204]:16112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwMsh-0004BD-S4 for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 20:33:44 -0400 In-Reply-To: <87d34lmtq8.fsf@norang.ca> Content-Language: en-US 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: Bernt Hansen , Avner Cc: "emacs-orgmode@gnu.org" Hi Bernt, Sorry for the long delay - I couldn't find a way to edit the post (I don't = have an account). Yes, this is what I was looking for. I also added the functions below to step through the headings and open them= in different buffer Thanks for the help. Avner ----------------------------------------------------- (defun org-agenda-show1 (&optional full-entry) "Display the Org-mode file which contains the item at point. With prefix argument FULL-ENTRY, make the entire entry visible if it was hidden in the outline." (interactive "P") (let ((win (selected-window))) (if full-entry (let ((org-show-entry-below t)) (org-agenda-goto1 t)) (org-agenda-goto1 t)) ) ) (defun org-agenda-goto1 (&optional highlight) "Go to the Org-mode file which contains the item at point." (interactive) (let* ((marker (or (org-get-at-bol 'org-marker) (org-agenda-error))) (buffer (marker-buffer marker)) (pos (marker-position marker))) (other-frame 1) (switch-to-buffer buffer) (widen) (goto-char pos) (when (org-mode-p) (org-show-context 'agenda) (save-excursion (and (outline-next-heading) (org-flag-heading nil)))) ; show the next heading (recenter (/ (window-height) 2)) (run-hooks 'org-agenda-after-show-hook) (and highlight (org-highlight (point-at-bol) (point-at-eol))))) (defun org-next-agenda-item2 () (interactive) (setq display-buffer-reuse-frames t) (pop-to-buffer "*Org Agenda* headings") (next-line-nomark) (org-agenda-show1) (pop-to-buffer "*Org Agenda* headings") ) (defun org-prev-agenda-item2 () (interactive) (setq display-buffer-reuse-frames t) (pop-to-buffer "*Org Agenda* headings") (previous-line-nomark) (org-agenda-show1) (pop-to-buffer "*Org Agenda* headings") ) (global-set-key [C-f11] 'org-next-agenda-item2) (global-set-key [C-S-f11] 'org-prev-agenda-item2) -----Original Message----- From: Bernt Hansen [mailto:bernt@norang.ca] Sent: June 26, 2012 6:25 PM To: Avner Cc: emacs-orgmode@gnu.org; Avner Moshkovitz Subject: Re: Org-agenda - show content outline from multiple org files "Avner" writes: > I have a list of org files associated with org-agenda. > > In the Org-Agenda buffer, I want to have a outline content view that > shows the headings from all the files. > > In org-agenda, I can apply "search for keywords" (s) and "Multi-occur" > (/) to present all the headings, which I can then visit in the org > file buffer > > However, these headings are shown as regular strings. What I'm looking > for, is a way to present them in color, and indentation according to > the heading level, similar to the "contents" presentation in the org > file itself. Hi Avner, Maybe this is close to what you are looking for? (setq org-tags-match-list-sublevels t) C-c a m LEVEL<4 RET should show levels 1-3 in all files with sublevels indented. Sorting by pr= iorities and things is going to mess up the order in the list. For me only the TODO keywords are coloured and indentation is done with lea= ding dots in the agenda view but you can visit and modify the headings dire= ctly from the agenda. HTH. Regards, Bernt This e-mail may contain information that is privileged, confidential or oth= erwise exempt from disclosure under applicable laws. Unauthorized use, repr= oduction or dissemination of the e-mail is strictly prohibited. If you have= received this e-mail in error, please contact the sender immediately. [11E= ABB509DF]