* ITEM in column view in the agenda
@ 2008-05-28 15:26 Adam Spiers
2008-05-28 22:09 ` Carsten Dominik
0 siblings, 1 reply; 9+ messages in thread
From: Adam Spiers @ 2008-05-28 15:26 UTC (permalink / raw)
To: org-mode mailing list
I'm trying to get a good COLUMN format for viewing the agenda in
column view mode. Am I right in thinking that ITEM is the only
property available for showing the actual "meat" of a given headline?
The problem with ITEM is that it includes any leaders, plus the TODO
keyword and priority, which leads to duplication if any of these are
displayed in separate columns, e.g.:
TODO | PRI | Task
[snip]
NEXT | A | personal:In 1d: NEXT [#A] book MOT | ....
WAITING | B | personal:Sched.109x: WAITING [#B] boo | ....
Of course it is very wasteful of window width to have this
duplication, so I would like to at least be able to exclude the TODO
keyword and priority from the ITEM column, and preferably the leaders
too (although I would like to keep them for normal non-column agenda
view). Asking too much as usual? ;-)
Thanks!
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ITEM in column view in the agenda
2008-05-28 15:26 ITEM in column view in the agenda Adam Spiers
@ 2008-05-28 22:09 ` Carsten Dominik
2008-05-28 23:09 ` Adam Spiers
0 siblings, 1 reply; 9+ messages in thread
From: Carsten Dominik @ 2008-05-28 22:09 UTC (permalink / raw)
To: Adam Spiers; +Cc: org-mode mailing list
[-- Attachment #1.1: Type: text/plain, Size: 1884 bytes --]
Hi Adam,
no, this is not too much to ask, in particular since I am doing
this kind of compaction (not duplicating info that is shown in
other columns) already in the normal column view (i.e. in
an Org buffer as opposed to the agenda buffer. In fact, the
function doing the compaction is already called, only it does
not do anything because it is trying to match a headline.
This can be easily fixed....... DONE.
This should now also work in agenda buffers, using the latest
GIT version. There is a new variable
`org-agenda-columns-remove-prefix-from-item' which can be used
to decide it the prefex should be removed. The default
it to remove it in column view, on order to optimize the use
of the window width.
HTH
- Carsten
On May 28, 2008, at 5:26 PM, Adam Spiers wrote:
> I'm trying to get a good COLUMN format for viewing the agenda in
> column view mode. Am I right in thinking that ITEM is the only
> property available for showing the actual "meat" of a given headline?
> The problem with ITEM is that it includes any leaders, plus the TODO
> keyword and priority, which leads to duplication if any of these are
> displayed in separate columns, e.g.:
>
> TODO | PRI | Task
> [snip]
> NEXT | A | personal:In 1d: NEXT [#A] book MOT | ....
> WAITING | B | personal:Sched.109x: WAITING [#B] boo | ....
>
> Of course it is very wasteful of window width to have this
> duplication, so I would like to at least be able to exclude the TODO
> keyword and priority from the ITEM column, and preferably the leaders
> too (although I would like to keep them for normal non-column agenda
> view). Asking too much as usual? ;-)
>
> Thanks!
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[-- Attachment #1.2: Type: text/html, Size: 2581 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ITEM in column view in the agenda
2008-05-28 22:09 ` Carsten Dominik
@ 2008-05-28 23:09 ` Adam Spiers
2008-05-28 23:11 ` Adam Spiers
2008-05-29 5:49 ` Carsten Dominik
0 siblings, 2 replies; 9+ messages in thread
From: Adam Spiers @ 2008-05-28 23:09 UTC (permalink / raw)
To: org-mode mailing list
On Thu, May 29, 2008 at 12:09:31AM +0200, Carsten Dominik wrote:
> Hi Adam,
>
> no, this is not too much to ask, in particular since I am doing
> this kind of compaction (not duplicating info that is shown in
> other columns) already in the normal column view (i.e. in
> an Org buffer as opposed to the agenda buffer. In fact, the
> function doing the compaction is already called, only it does
> not do anything because it is trying to match a headline.
> This can be easily fixed....... DONE.
Wow (again).
> This should now also work in agenda buffers, using the latest
> GIT version. There is a new variable
> `org-agenda-columns-remove-prefix-from-item' which can be used
> to decide it the prefex should be removed. The default
> it to remove it in column view, on order to optimize the use
> of the window width.
Works great! FYI, I have org-columns-default-format set to:
%TODO %PRIORITY %40ITEM(Task) %Effort(ETC){:} %CLOCKSUM(Taken){:} %TAGS(Tags)
I noticed one tiny thing which could be improved - links are rendered
as their raw text. I guess this will be slightly tricky to handle
since in many cases the text of the link will end up being truncated
by the %40 - but it would be VERY cool if it was handled gracefully,
e.g. by truncating with ellipses.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ITEM in column view in the agenda
2008-05-28 23:09 ` Adam Spiers
@ 2008-05-28 23:11 ` Adam Spiers
2008-05-29 5:49 ` Carsten Dominik
2008-05-29 5:49 ` Carsten Dominik
1 sibling, 1 reply; 9+ messages in thread
From: Adam Spiers @ 2008-05-28 23:11 UTC (permalink / raw)
To: emacs-orgmode
On Thu, May 29, 2008 at 12:09:30AM +0100, Adam Spiers wrote:
> On Thu, May 29, 2008 at 12:09:31AM +0200, Carsten Dominik wrote:
> > This should now also work in agenda buffers, using the latest
> > GIT version. There is a new variable
> > `org-agenda-columns-remove-prefix-from-item' which can be used
> > to decide it the prefex should be removed. The default
> > it to remove it in column view, on order to optimize the use
> > of the window width.
>
> Works great! FYI, I have org-columns-default-format set to:
>
> %TODO %PRIORITY %40ITEM(Task) %Effort(ETC){:} %CLOCKSUM(Taken){:} %TAGS(Tags)
>
> I noticed one tiny thing which could be improved - links are rendered
> as their raw text. I guess this will be slightly tricky to handle
> since in many cases the text of the link will end up being truncated
> by the %40 - but it would be VERY cool if it was handled gracefully,
> e.g. by truncating with ellipses.
And one other cosmetic detail: every row in the item column begins
with three spaces, rather than the ideal of one (so that it's close to
but not completely flush with the | inter-column delimiter).
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ITEM in column view in the agenda
2008-05-28 23:11 ` Adam Spiers
@ 2008-05-29 5:49 ` Carsten Dominik
0 siblings, 0 replies; 9+ messages in thread
From: Carsten Dominik @ 2008-05-29 5:49 UTC (permalink / raw)
To: Adam Spiers; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 284 bytes --]
On May 29, 2008, at 1:11 AM, Adam Spiers wrote:
>
> And one other cosmetic detail: every row in the item column begins
> with three spaces, rather than the ideal of one (so that it's close to
> but not completely flush with the | inter-column delimiter).
Fixed, thanks.
- Carsten
[-- Attachment #1.2: Type: text/html, Size: 521 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ITEM in column view in the agenda
2008-05-28 23:09 ` Adam Spiers
2008-05-28 23:11 ` Adam Spiers
@ 2008-05-29 5:49 ` Carsten Dominik
2008-05-29 17:11 ` Adam Spiers
1 sibling, 1 reply; 9+ messages in thread
From: Carsten Dominik @ 2008-05-29 5:49 UTC (permalink / raw)
To: Adam Spiers; +Cc: org-mode mailing list
[-- Attachment #1.1: Type: text/plain, Size: 900 bytes --]
On May 29, 2008, at 1:09 AM, Adam Spiers wrote:
>
> Works great! FYI, I have org-columns-default-format set to:
>
> %TODO %PRIORITY %40ITEM(Task) %Effort(ETC){:} %CLOCKSUM(Taken){:}
> %TAGS(Tags)
>
> I noticed one tiny thing which could be improved - links are rendered
> as their raw text. I guess this will be slightly tricky to handle
> since in many cases the text of the link will end up being truncated
> by the %40 - but it would be VERY cool if it was handled gracefully,
> e.g. by truncating with ellipses.
I cannot have links shown with parts hidden, because column view already
uses display properties, and I don't think you can nest display
properties.
Ellipses could be done, but so far I opted against is because you will
loose even more characters. Maybe it is actually better to make sure
the
user knows that some characters have been removed...... OK, done.
- Carsten
[-- Attachment #1.2: Type: text/html, Size: 1221 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ITEM in column view in the agenda
2008-05-29 5:49 ` Carsten Dominik
@ 2008-05-29 17:11 ` Adam Spiers
2008-05-30 4:06 ` Carsten Dominik
0 siblings, 1 reply; 9+ messages in thread
From: Adam Spiers @ 2008-05-29 17:11 UTC (permalink / raw)
To: org-mode mailing list
On Thu, May 29, 2008 at 07:49:20AM +0200, Carsten Dominik wrote:
>
> On May 29, 2008, at 1:09 AM, Adam Spiers wrote:
> >
> >Works great! FYI, I have org-columns-default-format set to:
> >
> >%TODO %PRIORITY %40ITEM(Task) %Effort(ETC){:} %CLOCKSUM(Taken){:}
> >%TAGS(Tags)
> >
> >I noticed one tiny thing which could be improved - links are rendered
> >as their raw text. I guess this will be slightly tricky to handle
> >since in many cases the text of the link will end up being truncated
> >by the %40 - but it would be VERY cool if it was handled gracefully,
> >e.g. by truncating with ellipses.
>
> I cannot have links shown with parts hidden, because column view already
> uses display properties, and I don't think you can nest display
> properties.
Hrm :-(
> Ellipses could be done, but so far I opted against is because you
> will loose even more characters. Maybe it is actually better to
> make sure the user knows that some characters have been
> removed...... OK, done.
Hmm, you have a point about losing characters. I'm not sure what's
best here.
But now I get an error when entering column view:
Debugger entered--Lisp error: (wrong-type-argument integerp nil)
substring("Saturday 28 June 2008" nil)
(let* ((org-complex-heading-regexp cphr) (prefix ...) (rest ...) (fake ...) (cleaned ...)) (if org-agenda-columns-remove-prefix-from-item cleaned (concat prefix cleaned)))
org-agenda-columns-cleanu-item("Saturday 28 June 2008" nil nil (("TODO" "TODO" nil nil nil nil) ("PRIORITY" "PRIORITY" nil nil nil nil) ("ITEM" "Task" 40 nil nil nil) ("Effort" "ETC" nil ":" add_times nil) ("CLOCKSUM" "Taken" nil ":" add_times nil) ("TAGS" "Tags" nil nil nil nil)))
org-columns-display-here((("TODO" . "") ("PRIORITY" . "") ("ITEM" . #("Saturday 28 June 2008" 0 23 ...)) ("Effort" . #("2:15" 0 4 ...)) ("CLOCKSUM" . #("0:00" 0 4 ...)) ("TAGS" . "")))
byte-code(" [snipped...]
org-agenda-colview-summarize(((129 ("Effort" . #("1:00" 0 4 ...)) ("TIMESTAMP" . "2008-05-31 Sat 12:30-13:30 +1w") ("ID" . [snipped...]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ITEM in column view in the agenda
2008-05-29 17:11 ` Adam Spiers
@ 2008-05-30 4:06 ` Carsten Dominik
2008-05-30 14:01 ` Adam Spiers
0 siblings, 1 reply; 9+ messages in thread
From: Carsten Dominik @ 2008-05-30 4:06 UTC (permalink / raw)
To: Adam Spiers; +Cc: org-mode mailing list
On May 29, 2008, at 7:11 PM, Adam Spiers wrote:
> On Thu, May 29, 2008 at 07:49:20AM +0200, Carsten Dominik wrote:
>>
>> On May 29, 2008, at 1:09 AM, Adam Spiers wrote:
>>>
>>> Works great! FYI, I have org-columns-default-format set to:
>>>
>>> %TODO %PRIORITY %40ITEM(Task) %Effort(ETC){:} %CLOCKSUM(Taken){:}
>>> %TAGS(Tags)
>>>
>>> I noticed one tiny thing which could be improved - links are
>>> rendered
>>> as their raw text. I guess this will be slightly tricky to handle
>>> since in many cases the text of the link will end up being truncated
>>> by the %40 - but it would be VERY cool if it was handled gracefully,
>>> e.g. by truncating with ellipses.
>>
>> I cannot have links shown with parts hidden, because column view
>> already
>> uses display properties, and I don't think you can nest display
>> properties.
>
> Hrm :-(
>
>> Ellipses could be done, but so far I opted against is because you
>> will loose even more characters. Maybe it is actually better to
>> make sure the user knows that some characters have been
>> removed...... OK, done.
>
> Hmm, you have a point about losing characters. I'm not sure what's
> best here.
I am now using 2 dots as ellipses, you can customize with with the
variable
org-columns-ellipses.
>
>
> But now I get an error when entering column view:
Fixed, thanks.
- Carsten
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ITEM in column view in the agenda
2008-05-30 4:06 ` Carsten Dominik
@ 2008-05-30 14:01 ` Adam Spiers
0 siblings, 0 replies; 9+ messages in thread
From: Adam Spiers @ 2008-05-30 14:01 UTC (permalink / raw)
To: org-mode mailing list
On Fri, May 30, 2008 at 06:06:52AM +0200, Carsten Dominik wrote:
> On May 29, 2008, at 7:11 PM, Adam Spiers wrote:
> >On Thu, May 29, 2008 at 07:49:20AM +0200, Carsten Dominik wrote:
> >>Ellipses could be done, but so far I opted against is because you
> >>will loose even more characters. Maybe it is actually better to
> >>make sure the user knows that some characters have been
> >>removed...... OK, done.
> >
> >Hmm, you have a point about losing characters. I'm not sure what's
> >best here.
>
> I am now using 2 dots as ellipses, you can customize with with the
> variable org-columns-ellipses.
Perfect! 2 dots is a great default.
> >But now I get an error when entering column view:
>
> Fixed, thanks.
Works a treat - looks beautiful :-) Many thanks!
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-05-30 14:01 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-28 15:26 ITEM in column view in the agenda Adam Spiers
2008-05-28 22:09 ` Carsten Dominik
2008-05-28 23:09 ` Adam Spiers
2008-05-28 23:11 ` Adam Spiers
2008-05-29 5:49 ` Carsten Dominik
2008-05-29 5:49 ` Carsten Dominik
2008-05-29 17:11 ` Adam Spiers
2008-05-30 4:06 ` Carsten Dominik
2008-05-30 14:01 ` Adam Spiers
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).