Let's say I have just one file in org-agenda-files
called short.org
. If I put items with active timestamps in short.org
, they'll appear in the Week view just fine:
But if I have any other agenda files with longer names (i.e. a-little-longer.org
), they'll break the agenda view's alignment:
This is undesirable behaviour. Is there any org-*
variable that controls the width of the filename field/column in the Agenda Week view?
Thanks in advance.
EDIT:
I'm currently trying out org-agenda-columns
, and also tweaking the value of org-columns-default-format-for-agenda
. Although it may be easier to get better alignment in Column View, I'd still prefer if there was a way to do it in the default view, without using org-agenda-columns
.
EDIT #2:
Using column view, this is the closest I could get to displaying the same information as what's in the default view:
(setq org-columns-default-format-for-agenda "%FILE %TIMESTAMP %TODO %ITEM %TAGS")
Several issues:
- Couldn't get column view to show just the filename; it shows the entire path instead
- Timestamp is also displayed in full date/time, rather than just showing the time (e.g. just
11:00-12:00
) - No space left to display the item itself
For these reasons, finding a way to change just one aspect of the default view (the filename field width) would be the most preferable.
org-agenda-prefix-format
. You should read its doc string (C-h v org-agenda-prefix-format
) carefully. You probably will need to modify theagenda
part of its value and you will need to modify the width of thecategory
field. If you have problems, please add its current value to your question.20
with(agenda . " %i %-20:c%?-12t% s")
. Would you like me to post this as an answer below, with the value I set fororg-agenda-prefix-format
, or would you prefer to post this as an answer yourself for me to accept? (still getting the hang of SE ettiquette :-P)