Login About Gallery
Today's plan widget
Under Construction
TEXT
#2B2040
Under Construction
TEXT
#32284A
Under Construction
Under Construction
COMMENT
This example creates a widget that counts down to a specific date. It doesn't need to be updated on a schedule, because Date Text views update automatically! ✨
TEXT
yyyyMMdd
DATE
Current Date
CALENDAR
Format
Date
Options Under Construction
TEXT
Calendar/
DOCUMENTS
Get File
Service
iCloud Drive
Show Document Picker
Select Multiple
DOCUMENTS
Get text from
File
TEXT
Split
Daily Note Content
by
New Lines
SCRIPTING
Repeat with each item in
Split Text
SCRIPTING
If
Repeat Item
begins with
- [ ]
TEXT
Split
Repeat Item
by
Custom
- [ ]
SCRIPTING
Get
Last Item
from
Split Text
DOCUMENTS
Make rich text from
Item from List
VARIABLES
Add
Rich Text from Markdown
to
task list
End If
End Repeat
Under Construction
Under Construction
SCRIPTING
If
task list
does not have any value
TEXT
No items left for today.
VARIABLES
Set variable
task list
to
Text
Otherwise
SCRIPTING
If
WFInput?
is
<value>
NUMBER
4
Otherwise
NUMBER
12
End If
VARIABLES
Set variable
total task lines
to
total task lines based on device
TEXT
Split
task list
by
New Lines
VARIABLES
Set variable
Task list to go into the widget
to
Tasks split into separate lines
SCRIPTING
Under Construction
Under Construction
SCRIPTING
If
Total tasks for today
is less than
total task lines
SCRIPTING
Repeat with each item in
Tasks split into separate lines
Under Construction
Under Construction
VARIABLES
Add
Horizontal Stack
to
widget task list
End Repeat
Otherwise
VARIABLES
Get
total task lines
MATHS
total task lines
-
1
Options Under Construction
SCRIPTING
Get
Item At Index
Repeat Index
from
Task list to go into the widget
Under Construction
Under Construction
VARIABLES
Add
Horizontal Stack
to
widget task list
End Repeat
MATHS
Total tasks for today
-
total task lines
Options Under Construction
SCRIPTING
TEXT
... and
Calculation Result
more task.
Otherwise
TEXT
... and
Calculation Result
more tasks.
End If
Under Construction
Under Construction
VARIABLES
Add
Horizontal Stack
to
widget task list
End If
Under Construction
Under Construction
Under Construction
VARIABLES
Set variable
content
to
Padded View
TEXT
no
TEXT
yyyy-MM-dd
CALENDAR
Format
today
Options Under Construction
URL
obsidian://nldates?day=
Formatted Date
&newPane=
Open in new pane?
Under Construction
Under Construction
output Under Construction
End If
Under Construction

Showcuts

Magic Vars

Screenshot

Submitted Anonymously a month ago

This is an old shortcut, so some variables might be missing!

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

1