Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: enhance calendar widget with time picker #650

Merged
merged 16 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
27 changes: 25 additions & 2 deletions DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
2. [Settings](#settings)
1. [Global settings](#global-settings)
2. [Agenda settings](#agenda-settings)
3. [Tags settings](#tags-settings)
3. [Calendar settings](#calendar-settings)
4. [Tags settings](#tags-settings)
3. [Mappings](#mappings)
1. [Global mappings](#global-mappings)
2. [Agenda mappings](#agenda-mappings)
Expand Down Expand Up @@ -677,6 +678,28 @@ Additional files to search from agenda search prompt.<br />
Currently it accepts only a single value: `agenda-archives`.<br />
Example value: `{'agenda-archives'}`

### Calendar settings

Adjust behavior of the calendar modal (ex: [changing the date under cursor](#org_change_date)).

#### **calendar.round_min_with_hours**

_type_: `boolean`<br />
_default_: `true`<br />
Should minutes be rounded, when the hour is changed. It behaves more fluently when changing the hours, especially when scheduling from the current time (which can be something odd). If set to false, the minutes are unchanged while changing the hours.

#### **calendar.min_big_step**

_type_: `number`<br />
_default_: `15`<br />
The step size for changing the minutes while the cursor is on the first digit.

#### **calendar.min_small_step**

_type_: `number`<br />
_default_: same as [](#org_time_stamp_rounding_minutes)<br />
The step size for changing the minutes while the cursor is on the second digit.

### Tags settings

#### **org_tags_column**
Expand Down Expand Up @@ -1712,7 +1735,7 @@ This option is most optimized because it doesn't load plugins and your init.vim
For **MacOS**, things should be very similar, but I wasn't able to test it. Any help on this is appreciated.

## Clocking
There is partial suport for [Clocking work time](https://orgmode.org/manual/Clocking-Work-Time.html).<br />
There is partial support for [Clocking work time](https://orgmode.org/manual/Clocking-Work-Time.html).<br />
Supported actions:
##### Clock in
Org file mapping: `<leader>oxi`<br />
Expand Down
5 changes: 5 additions & 0 deletions lua/orgmode/config/defaults.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---@class OrgDefaultConfig
---@field org_id_method 'uuid' | 'ts' | 'org'
---@field org_agenda_span 'day' | 'week' | 'month' | 'year' | number
---@field calendar { round_min_with_hours: boolean, min_big_step: number, min_small_step: number? }
local DefaultConfig = {
org_agenda_files = '',
org_default_notes_file = '',
Expand All @@ -13,6 +14,10 @@ local DefaultConfig = {
org_agenda_start_on_weekday = 1,
org_agenda_start_day = nil, -- start from today + this modifier
calendar_week_start_day = 1,
calendar = {
round_min_with_hours = true,
min_big_step = 15,
},
org_capture_templates = {
t = {
description = 'Task',
Expand Down
Loading
Loading