Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Tazman Reinier committed Aug 9, 2023
1 parent 1bcab66 commit a40dbb4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# Changelog

## 1.1.0 (Upcoming)
## 1.1.0 (8/9/2023)
- **Added:** Right-click option to [schedule tasks for now](https://github.com/joshuatazrein/obsidian-time-ruler/issues/16#event-9959008621) and to unschedule tasks
- **Added:** Support [emoji and custom status](https://github.com/joshuatazrein/obsidian-time-ruler/issues/26) displaying in tasks
- **Added:** Filter by [custom status](https://github.com/joshuatazrein/obsidian-time-ruler/issues/25)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Time Ruler combines the best parts of a nested tasklist and an event-based calendar view. Drag-and-drop tasks to time-block and reschedule, and view tasks on top of read-only online calendars. Integrates well with the Tasks, FullCalendar, and Reminder plugins.
Time Ruler combines the best parts of a nested tasklist and an event-based calendar view. Drag-and-drop tasks to time-block and reschedule, and view tasks on top of read-only online calendars. Integrates well with the Tasks, FullCalendar, Reminder, and Obsidian Day Planner plugins.

![cover](assets/time-ruler-cover.png)

Expand Down
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ interface TimeRulerSettings {
include: boolean
statuses: string
}
showCompleted: boolean
}

export const DEFAULT_SETTINGS: TimeRulerSettings = {
Expand All @@ -37,8 +38,9 @@ export const DEFAULT_SETTINGS: TimeRulerSettings = {
fileOrder: [],
customStatus: {
include: false,
statuses: 'x-',
statuses: '-',
},
showCompleted: false,
}

export default class TimeRulerPlugin extends Plugin {
Expand Down
12 changes: 12 additions & 0 deletions src/plugin/SettingsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,18 @@ export default class SettingsTab extends PluginSettingTab {
})
})

const showCompleted = new Setting(containerEl)
.setName('Show Completed')
.setDesc('Show completed tasks')
.addToggle((toggle) =>
toggle
.setValue(this.plugin.settings.showCompleted)
.onChange((value) => {
this.plugin.settings.showCompleted = value
this.plugin.saveSettings()
})
)

let newCalendarLink: TextComponent
new Setting(containerEl)
.setName('Calendars')
Expand Down
1 change: 1 addition & 0 deletions src/services/obsidianApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export default class ObsidianAPI extends Component {
const newTasks = search
.filter((task) => {
return (
!(!this.settings.showCompleted && task.completed) &&
taskTest.test(task.status) === this.settings.customStatus.include &&
!(this.excludePaths && this.excludePaths.test(task.path)) &&
!(
Expand Down

0 comments on commit a40dbb4

Please sign in to comment.