Commit 88c71f3
fix(agenda): make spans work like emacs (#915)
Currently, view month and view day both shift the cursor to and start
the view's span from the start day (Monday by default). In emacs, all
view changes take into account the agenda date that the cursor is on,
and then choose the beginning date accordingly. These changes aim to
mimic emacs behavior by
1. modifying all view changes to stop moving the cursor
2. displaying the W number in all spans types
3. change the first day of the view to be the first day of the span
Reuse existing function OrgDate:start_of(span)
Ensure start is on user configured start week for initial
week view as well
Co-authored-by: Kristijan Husak <husakkristijan@gmail.com>1 parent 52ff9cf commit 88c71f3
1 file changed
+18
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
136 | 146 | | |
137 | | - | |
| 147 | + | |
138 | 148 | | |
139 | 149 | | |
140 | 150 | | |
| |||
430 | 440 | | |
431 | 441 | | |
432 | 442 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | 443 | | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
438 | 450 | | |
439 | 451 | | |
440 | 452 | | |
| |||
463 | 475 | | |
464 | 476 | | |
465 | 477 | | |
466 | | - | |
467 | | - | |
468 | | - | |
| 478 | + | |
469 | 479 | | |
470 | 480 | | |
471 | 481 | | |
| |||
0 commit comments