Commit 7af6cbd
authored
feature: enhance calendar widget with time picker (#650)
* feat: implement time picker
To make it more convenient to scheduled dates with particular times extends the
existing date picker with a time picker.
- t adds a time and jumps to the time picker
- j and k decrease or increase the time, counts are supported
- h and l determine if the time is shifted about an hour, 10 minutes or
5 minutes
- T clears the time
- Esc leaves the time picker first and pressed secondly the date picker
* feat(date): add default to 'Enter date'
When entering the date via direct input, provide the currently selected
date as default value.
* chore: fix warnings in calendar
* fix: jump to descrete 10 or 5 minute steps
When adjusting an odd minute value, we first want to jump to the next
flat 10 or 5 minute value.
* feat: make minute steps configurable
Because it's a matter of preference, in which steps the user want's to
jump through minutes, we make it configurable.
* feat: highlight currently selected date
* refactor: extract date highlighting into function
* feat: update date selection regularly
* feat: round minutes on adjusting hours
* fix: show time picker also when changing date
* fix: enable clear time keymap consistently
To be able to clear times if no timestamp was set when the picker was
loaded, we need to set the clear-time keymapping during rerendering of
time.
* refactor: integrate highlights into new function
* fix: allow to switch back to day selection
* feat: overhaul config options
- wrap everything into calendar
- cleanup names
- use boolean "start_from_sunday"
* doc: add some docs for the config options
* doc: fix typo
---------
Co-authored-by: Sebastian Flügge <seflue@users.noreply.github.com>1 parent 46c839b commit 7af6cbd
File tree
4 files changed
+295
-24
lines changed- lua/orgmode
- config
- objects
4 files changed
+295
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
677 | 678 | | |
678 | 679 | | |
679 | 680 | | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
680 | 703 | | |
681 | 704 | | |
682 | 705 | | |
| |||
1712 | 1735 | | |
1713 | 1736 | | |
1714 | 1737 | | |
1715 | | - | |
| 1738 | + | |
1716 | 1739 | | |
1717 | 1740 | | |
1718 | 1741 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| |||
0 commit comments