Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
e6736be
fix: misusing defvar
Feb 7, 2021
dac77bf
fix: displaying timeline in a way I prefer.
Feb 7, 2021
9d23732
fix: offset when moving to task
Feb 7, 2021
2fadbb7
fix: wrong sign
Feb 7, 2021
865e595
fix: misusing defconst
Feb 8, 2021
14db1ec
fix: remove call to clear-info when block is clicked
aizensoosuke Feb 8, 2021
5c10aad
feat: make info navigable to task's file
aizensoosuke Feb 8, 2021
4a40b48
squash! feat: make info navigable to task's file
aizensoosuke Feb 8, 2021
942bef4
fix: defvar, not defconst.
aizensoosuke Feb 8, 2021
a0b1111
style: use a structure for tasks when building task list
aizensoosuke Feb 8, 2021
a8c70e7
feat: one line per day in timeline
aizensoosuke Feb 8, 2021
a89508a
feat: show clocked items in new line
aizensoosuke Feb 8, 2021
aa46ba7
feat: handle overlapping blocks
aizensoosuke Feb 8, 2021
ee8923a
fix: remove useless vars
aizensoosuke Feb 8, 2021
69fb630
fix: check overlap for clocks when no dedicated line
aizensoosuke Feb 8, 2021
806a0cb
feat: show info for nearest block
aizensoosuke Feb 9, 2021
11b681c
feat: emphasize nearest block with specific face in timeline
aizensoosuke Feb 9, 2021
8ac4118
fix: bug when no block today
aizensoosuke Feb 9, 2021
a7d7d11
fix: clocks shouldn't be "nearest blocks".
aizensoosuke Feb 9, 2021
578fa4c
fix: broken move-to-task
aizensoosuke Feb 9, 2021
9be4ac7
fix: broken info when today not in timeline
aizensoosuke Feb 9, 2021
b9001e4
fix: next event makes much more sense
aizensoosuke Feb 9, 2021
87bd42c
style: make code more readable
aizensoosuke Feb 9, 2021
1d3e0f7
fix: make "next-task" inserted info clickable
aizensoosuke Feb 9, 2021
77104b9
fix: typo
aizensoosuke Feb 9, 2021
bf1d4b5
fix: remove outdated comment
aizensoosuke Feb 11, 2021
17d7afa
fix: credits to https://github.com/deopurkar/org-timeline
aizensoosuke Feb 11, 2021
54cd3d9
feat: optionally show item text in block
aizensoosuke Feb 16, 2021
db001dd
fix: error when block is longer than title
aizensoosuke Feb 16, 2021
b3c5422
feat: make events directly following others visible.
aizensoosuke Mar 2, 2021
3196cbf
refactor: find next-task directly in org-timeline--list-tasks
aizensoosuke Mar 2, 2021
c09076c
fix: highlight only hovered block on hover.
aizensoosuke Mar 2, 2021
632442d
feat: optionally space-out consecutive events
aizensoosuke Mar 2, 2021
e6b5dc0
fix: wrong end shortened for consecutive blocks.
aizensoosuke Mar 2, 2021
970699c
fix: making space-out-consecutive actually work.
aizensoosuke Mar 2, 2021
764e34c
feat!: shifting everything 1 block
aizensoosuke Mar 2, 2021
5cabbd0
feat: easier distinction of consecutive blocks
aizensoosuke Mar 6, 2021
9f208b9
feat: ability to hide elapsed time in timeline
aizensoosuke Mar 7, 2021
3192080
fix: dotimes was the right macro
aizensoosuke Mar 7, 2021
12dda0f
feat: only hide elapsed times in day view, for today.
aizensoosuke Mar 7, 2021
46d2aa0
feat: true 'change-of-day-hour' configuration.
aizensoosuke Mar 7, 2021
4bc235a
refactor!(breaking change?): divide to conquer.
aizensoosuke Mar 21, 2021
3fc97e1
fix: categories bugs.
aizensoosuke Mar 21, 2021
46ece1f
fix: change of day bug
aizensoosuke Mar 21, 2021
82ed27a
fix: empty day line
aizensoosuke Mar 21, 2021
5379c55
fix: first block ended up in new line.
aizensoosuke Mar 23, 2021
d748102
refactor: cleaning up, hopefully better naming.
aizensoosuke Mar 23, 2021
d040f10
docs: adding documentation for this pull request.
aizensoosuke Mar 23, 2021
b36b17b
fix: overlapping-at-point goes too far
aizensoosuke May 13, 2021
c90b6ee
refactor: docs and naming
aizensoosuke May 13, 2021
d780d79
squash! refactor: docs and naming
aizensoosuke May 13, 2021
67b9dee
feat: show past-scheduled items in the timeline
aizensoosuke May 13, 2021
56fb5db
fix: was broken when no next task
aizensoosuke May 13, 2021
e90d27b
feat: manually running tests with this new file
aizensoosuke May 13, 2021
812680b
fix: new features reflected in test-helper
aizensoosuke May 13, 2021
d36180a
fix: overlaps work better now
aizensoosuke May 13, 2021
be34ed9
fix: (partial fix) reflecting changes in the tests
aizensoosuke May 13, 2021
048240a
fix: last test's agenda string was invalid
aizensoosuke May 13, 2021
97f88c7
fix: clock test now works
aizensoosuke May 13, 2021
2718639
fix: create all the necessary days when several days in timeline
aizensoosuke May 13, 2021
c40e3ea
tests: fixing existing tests and adding new ones
aizensoosuke May 13, 2021
1f49d00
fix: remove useless cursor-sensor-mode
aizensoosuke May 13, 2021
3b75a25
feat: allow events to be cut if they overflow timeline
aizensoosuke May 13, 2021
fb94419
fix: better face format
aizensoosuke May 14, 2021
1e39a43
fix: do not repeat group name in overlap-lines
aizensoosuke May 14, 2021
2da5815
fix: error when no next task
aizensoosuke May 14, 2021
6bbc01b
fix: allow to have a very "tight" 24h cycle
aizensoosuke May 14, 2021
12c2188
feat: (and fix) tests for all the new features
aizensoosuke May 14, 2021
76176b5
feat(fix, refactor): begin making the cycle compatible with groups
aizensoosuke May 14, 2021
51d4cef
tests: implement tests for most of the features I added
aizensoosuke May 14, 2021
56237bd
feat: finalized tests and fixed last non-passing-tests
aizensoosuke May 14, 2021
d99dd51
tests(fix): allowing emacs 27.1 to be tested
aizensoosuke May 14, 2021
b3ddaf4
fix: overline needs to be in a list
aizensoosuke May 22, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.cask
test.sh
x.sh
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ env:
- EVM_EMACS=emacs-24.5-travis
- EVM_EMACS=emacs-25.3-travis
- EVM_EMACS=emacs-26.1-travis
- EVM_EMACS=emacs-27.1-travis
- EVM_EMACS=emacs-git-snapshot-travis
before_install:
- curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
Expand All @@ -16,4 +17,8 @@ script:
matrix:
fast_finish: true
allow_failures:
- env: EVM_EMACS=emacs-24.4-travis
- env: EVM_EMACS=emacs-24.5-travis
- env: EVM_EMACS=emacs-25.3-travis
- env: EVM_EMACS=emacs-26.1-travis
- env: EVM_EMACS=emacs-git-snapshot-travis
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,44 @@ After you install this package from MELPA Stable, add the following line to your

# How it works

This package adds a graphical view of the agenda after the last agenda line. By default the display starts at 5 AM today and goes up to 4 AM next day (this covers 24 hours).
This package adds a graphical view of the agenda after the last agenda line. By default the display starts at 5 AM today and goes up to 4 AM next day (this covers 24 hours). This value can be customized with `org-timeline-beginning-of-day-hour`.

Scheduled tasks or tasks with time ranges are rendered in the display with `org-timeline-block` face. Clocked entires are displayed in `org-timeline-clocked` face. The background of timeslots which are in the past is highlighted with `org-timeline-elapsed` face.
Scheduled tasks or tasks with time ranges are rendered in the display with `org-timeline-block` face. Clocked entries are displayed in `org-timeline-clocked` face. The background of timeslots which are in the past is highlighted with `org-timeline-elapsed` face.

You can use custom color for a task by adding the property `TIMELINE_FACE` with either a string which is a color name or a list which specifies the face properties or a symbol which is taken to be a face name.
You can choose to show the task's headlines in blocks, by setting `org-timeline-show-text-in-blocks` to a non-nil value. You can customize the text for a task with by adding the property `TIMELINE_TEXT` with a string.

# Further customization

## Overlapping blocks
By default, if two blocks overlap, one of them is drawn in the `org-timeline-overlap` face. You can set `org-timeline-overlap-in-new-line` to t, and overlapping blocks will be drawn in separate lines.
You can also be task-specific, and add the property `TIMELINE_DO_NOT_OVERLAP` with a non-nil value.

## Consecutive blocks
In order to make consecutive blocks distinct, every other consecutive block is decorated with a white overline.

For the same reason, a character is added at the beginning of every block, if `org-timeline-show-text-in-blocks` is non-nil. By default, this character is a heavy vertical bar ❚, but it can be customized with `org-timeline-insert-before-text`.

## Special entries
By default, clocked entries will be shown in a dedicated line, in `org-timeline-clocked` face. If you do not like this, you can set `org-timeline-dedicated-clocked-line` to nil.

You can also emphasize the next block to happen with `org-timeline-emphasize-next-block`. If non-nil, the next-block in today's line will be drawn in `org-timeline-next-block` face.

## Groups
You can add the string property `TIMELINE_GROUP` to your tasks. Every task with the same group name will be shown in a separate, dedicated line for that day.
The first three characters of the name will be shown at the beginning of that line.

## Rolling 24h cycle
You can set up org-timeline and org-agenda so that the timeline will show a rolling 24h cycle, starting a certain number of hours before now.
- Set `org-agenda-span` to 2
- Set `org-timeline-beginning-of-day-hour` to 0
- Set `org-timeline-keep-elapsed` to a positive integer (5, for example).

Run `org-agenda` in day mode.

# Other details
You can click on a block, it will take you to the corresponding task in the buffer.
The info line (just below the timeline) shows the details of the next task to happen. You can hit 'r' outside of the timeline to refresh the agenda and show the next task again.

# TODO

Expand Down
Loading