* Viewing Value of a Property of an Item in the Agenda
@ 2012-09-03 14:58 Varun Vats
2012-09-14 6:43 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Varun Vats @ 2012-09-03 14:58 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 717 bytes --]
Hi All,
I have the LOCATION property set for a few appointments in my org files.
When I look at the agenda, I sometimes want to be able to view the location
of an appointment quickly. Right now I hit TAB on the agenda item (to go to
its original location in the org file) and open the :PROPERTIES: drawer to
view the LOCATION property.
Is there any way I can quickly look-up an item's propert(y/ies) in the
agenda view? I know one option would be to set up a column view for the
agenda. However, this requires that I know the properties I want to view
beforehand. Any ideas/suggestions are appreciated.
Thank you.
--
Sincerely,
Varun Vats
Graduate Student
University of Wisconsin, Madison
mailvarunvats@gmail.com
[-- Attachment #2: Type: text/html, Size: 926 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Viewing Value of a Property of an Item in the Agenda
2012-09-03 14:58 Viewing Value of a Property of an Item in the Agenda Varun Vats
@ 2012-09-14 6:43 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2012-09-14 6:43 UTC (permalink / raw)
To: Varun Vats; +Cc: emacs-orgmode
Hi Varun,
Varun Vats <mailvarunvats@gmail.com> writes:
> I have the LOCATION property set for a few appointments in my org
> files. When I look at the agenda, I sometimes want to be able to view
> the location of an appointment quickly. Right now I hit TAB on the
> agenda item (to go to its original location in the org file) and open
> the :PROPERTIES: drawer to view the LOCATION property.
>
> Is there any way I can quickly look-up an item's propert(y/ies) in
> the agenda view? I know one option would be to set up a column view
> for the agenda. However, this requires that I know the properties I
> want to view beforehand. Any ideas/suggestions are appreciated.
Hackish but works:
(defun my-org-agenda-view-item-properties ()
"Display the properties of the item at point in the agenda."
(interactive)
(let ((m (get-text-property (point) 'org-hd-marker)) pp)
(with-current-buffer (marker-buffer m)
(goto-char m)
(while (re-search-forward
org-property-re
(save-excursion (org-end-of-subtree)) t)
(push (concat (match-string 2) ": " (match-string 3)) pp)))
(delete-other-windows)
(pop-to-buffer "*org properties*")
(erase-buffer)
(mapcar (lambda(p) (insert p "\n")) pp)
(org-fit-window-to-buffer)
(other-window 1)))
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-14 6:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-03 14:58 Viewing Value of a Property of an Item in the Agenda Varun Vats
2012-09-14 6:43 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.