Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

tiny-expand

tiny-expand takes number sequences (e.g. date sequences) and expands them.

Here’s part of my snippet:

m0\n9|\n***** COMMITTED <%(date "today" x)> [0%%]\n******* TODO wake up 8:30am\n SCHEDULED: <%(date "today" x) 8:30am>\n******* TODO blue light \n SCHEDULED: <%(date "today" x) 8:31am>\n******* TODO meditate \n SCHEDULED: <%(date "today" x) 8:45am>\n******* TODO write Wise Mind form or LIFE form\n SCHEDULED: <%(date "today" x) 9:00am> \n******* TODO disable Internet\n SCHEDULED: <%(date "today" x) 9:15am> \n******* TODO morning pages at a café or at The Writers' Room \n SCHEDULED: <%(date "today" x) 9:45am>\n******* TODO go straight to The Writers' Room\n SCHEDULED: <%(date "today" x) 10:00am>\n******* TODO review weeklies and calibrate with dailies \n******* TODO submit dailies to Erika \n DEADLINE: <%(date "today" x) 2:00pm> \n******* TODO work on book 3 hours \n******* TODO two lines of poetry \n DEADLINE: <%(date "today" x) 8:00pm> \n******* TODO lights out by 12:30am\n SCHEDULED: <%(date "today" x) 11:59pm> \n\n 

If I put the cursor at the end and do tiny-expand, I get the desired output, which is this:

***** COMMITTED <2016-06-21 Tue> [0%]
******* TODO wake up 8:30am
 SCHEDULED: <2016-06-21 Tue 8:30am>
******* TODO blue light 
 SCHEDULED: <2016-06-21 Tue 8:31am>
******* TODO meditate 
 SCHEDULED: <2016-06-21 Tue 8:45am>
******* TODO write Wise Mind form or LIFE form
 SCHEDULED: <2016-06-21 Tue 9:00am> 
******* TODO disable Internet
 SCHEDULED: <2016-06-21 Tue 9:15am> 
******* TODO morning pages at a café or at The Writers' Room 
 SCHEDULED: <2016-06-21 Tue 9:45am>
******* TODO go straight to The Writers' Room
 SCHEDULED: <2016-06-21 Tue 10:00am>
******* TODO review weeklies and calibrate with dailies 
******* TODO submit dailies to Erika 
 DEADLINE: <2016-06-21 Tue 2:00pm> 
******* TODO work on book 3 hours 
******* TODO two lines of poetry 
 DEADLINE: <2016-06-21 Tue 8:00pm> 
******* TODO lights out by 12:30am
 SCHEDULED: <2016-06-21 Tue 11:59pm> 

 

***** COMMITTED <2016-06-22 Wed> [0%]
******* TODO wake up 8:30am
 SCHEDULED: <2016-06-22 Wed 8:30am>
******* TODO blue light 
 SCHEDULED: <2016-06-22 Wed 8:31am>
******* TODO meditate 
 SCHEDULED: <2016-06-22 Wed 8:45am>
******* TODO write Wise Mind form or LIFE form
 SCHEDULED: <2016-06-22 Wed 9:00am> 
******* TODO disable Internet
 SCHEDULED: <2016-06-22 Wed 9:15am> 
******* TODO morning pages at a café or at The Writers' Room 
 SCHEDULED: <2016-06-22 Wed 9:45am>
******* TODO go straight to The Writers' Room
 SCHEDULED: <2016-06-22 Wed 10:00am>
******* TODO review weeklies and calibrate with dailies 
******* TODO submit dailies to Erika 
 DEADLINE: <2016-06-22 Wed 2:00pm> 
******* TODO work on book 3 hours 
******* TODO two lines of poetry 
 DEADLINE: <2016-06-22 Wed 8:00pm> 
******* TODO lights out by 12:30am
 SCHEDULED: <2016-06-22 Wed 11:59pm> 

 

***** COMMITTED <2016-06-23 Thu> [0%]
******* TODO wake up 8:30am
 SCHEDULED: <2016-06-23 Thu 8:30am>
******* TODO blue light 
 SCHEDULED: <2016-06-23 Thu 8:31am>
******* TODO meditate 
 SCHEDULED: <2016-06-23 Thu 8:45am>
******* TODO write Wise Mind form or LIFE form
 SCHEDULED: <2016-06-23 Thu 9:00am> 
******* TODO disable Internet
 SCHEDULED: <2016-06-23 Thu 9:15am> 
******* TODO morning pages at a café or at The Writers' Room 
 SCHEDULED: <2016-06-23 Thu 9:45am>
******* TODO go straight to The Writers' Room
 SCHEDULED: <2016-06-23 Thu 10:00am>
******* TODO review weeklies and calibrate with dailies 
******* TODO submit dailies to Erika 
 DEADLINE: <2016-06-23 Thu 2:00pm> 
******* TODO work on book 3 hours 
******* TODO two lines of poetry 
 DEADLINE: <2016-06-23 Thu 8:00pm> 
******* TODO lights out by 12:30am
 SCHEDULED: <2016-06-23 Thu 11:59pm> 

 

***** COMMITTED <2016-06-24 Fri> [0%]
******* TODO wake up 8:30am
 SCHEDULED: <2016-06-24 Fri 8:30am>
******* TODO blue light 
 SCHEDULED: <2016-06-24 Fri 8:31am>
******* TODO meditate 
 SCHEDULED: <2016-06-24 Fri 8:45am>
******* TODO write Wise Mind form or LIFE form
 SCHEDULED: <2016-06-24 Fri 9:00am> 
******* TODO disable Internet
 SCHEDULED: <2016-06-24 Fri 9:15am> 
******* TODO morning pages at a café or at The Writers' Room 
 SCHEDULED: <2016-06-24 Fri 9:45am>
******* TODO go straight to The Writers' Room
 SCHEDULED: <2016-06-24 Fri 10:00am>
******* TODO review weeklies and calibrate with dailies 
******* TODO submit dailies to Erika 
 DEADLINE: <2016-06-24 Fri 2:00pm> 
******* TODO work on book 3 hours 
******* TODO two lines of poetry 
 DEADLINE: <2016-06-24 Fri 8:00pm> 
******* TODO lights out by 12:30am
 SCHEDULED: <2016-06-24 Fri 11:59pm> 

 

***** COMMITTED <2016-06-25 Sat> [0%]
******* TODO wake up 8:30am
 SCHEDULED: <2016-06-25 Sat 8:30am>
******* TODO blue light 
 SCHEDULED: <2016-06-25 Sat 8:31am>
******* TODO meditate 
 SCHEDULED: <2016-06-25 Sat 8:45am>
******* TODO write Wise Mind form or LIFE form
 SCHEDULED: <2016-06-25 Sat 9:00am> 
******* TODO disable Internet
 SCHEDULED: <2016-06-25 Sat 9:15am> 
******* TODO morning pages at a café or at The Writers' Room 
 SCHEDULED: <2016-06-25 Sat 9:45am>
******* TODO go straight to The Writers' Room
 SCHEDULED: <2016-06-25 Sat 10:00am>
******* TODO review weeklies and calibrate with dailies 
******* TODO submit dailies to Erika 
 DEADLINE: <2016-06-25 Sat 2:00pm> 
******* TODO work on book 3 hours 
******* TODO two lines of poetry 
 DEADLINE: <2016-06-25 Sat 8:00pm> 
******* TODO lights out by 12:30am
 SCHEDULED: <2016-06-25 Sat 11:59pm> 

 

***** COMMITTED <2016-06-26 Sun> [0%]
******* TODO wake up 8:30am
 SCHEDULED: <2016-06-26 Sun 8:30am>
******* TODO blue light 
 SCHEDULED: <2016-06-26 Sun 8:31am>
******* TODO meditate 
 SCHEDULED: <2016-06-26 Sun 8:45am>
******* TODO write Wise Mind form or LIFE form
 SCHEDULED: <2016-06-26 Sun 9:00am> 
******* TODO disable Internet
 SCHEDULED: <2016-06-26 Sun 9:15am> 
******* TODO morning pages at a café or at The Writers' Room 
 SCHEDULED: <2016-06-26 Sun 9:45am>
******* TODO go straight to The Writers' Room
 SCHEDULED: <2016-06-26 Sun 10:00am>
******* TODO review weeklies and calibrate with dailies 
******* TODO submit dailies to Erika 
 DEADLINE: <2016-06-26 Sun 2:00pm> 
******* TODO work on book 3 hours 
******* TODO two lines of poetry 
 DEADLINE: <2016-06-26 Sun 8:00pm> 
******* TODO lights out by 12:30am
 SCHEDULED: <2016-06-26 Sun 11:59pm> 

 

***** COMMITTED <2016-06-27 Mon> [0%]
******* TODO wake up 8:30am
 SCHEDULED: <2016-06-27 Mon 8:30am>
******* TODO blue light 
 SCHEDULED: <2016-06-27 Mon 8:31am>
******* TODO meditate 
 SCHEDULED: <2016-06-27 Mon 8:45am>
******* TODO write Wise Mind form or LIFE form
 SCHEDULED: <2016-06-27 Mon 9:00am> 
******* TODO disable Internet
 SCHEDULED: <2016-06-27 Mon 9:15am> 
******* TODO morning pages at a café or at The Writers' Room 
 SCHEDULED: <2016-06-27 Mon 9:45am>
******* TODO go straight to The Writers' Room
 SCHEDULED: <2016-06-27 Mon 10:00am>
******* TODO review weeklies and calibrate with dailies 
******* TODO submit dailies to Erika 
 DEADLINE: <2016-06-27 Mon 2:00pm> 
******* TODO work on book 3 hours 
******* TODO two lines of poetry 
 DEADLINE: <2016-06-27 Mon 8:00pm> 
******* TODO lights out by 12:30am
 SCHEDULED: <2016-06-27 Mon 11:59pm> 

 

***** COMMITTED <2016-06-28 Tue> [0%]
******* TODO wake up 8:30am
 SCHEDULED: <2016-06-28 Tue 8:30am>
******* TODO blue light 
 SCHEDULED: <2016-06-28 Tue 8:31am>
******* TODO meditate 
 SCHEDULED: <2016-06-28 Tue 8:45am>
******* TODO write Wise Mind form or LIFE form
 SCHEDULED: <2016-06-28 Tue 9:00am> 
******* TODO disable Internet
 SCHEDULED: <2016-06-28 Tue 9:15am> 
******* TODO morning pages at a café or at The Writers' Room 
 SCHEDULED: <2016-06-28 Tue 9:45am>
******* TODO go straight to The Writers' Room
 SCHEDULED: <2016-06-28 Tue 10:00am>
******* TODO review weeklies and calibrate with dailies 
******* TODO submit dailies to Erika 
 DEADLINE: <2016-06-28 Tue 2:00pm> 
******* TODO work on book 3 hours 
******* TODO two lines of poetry 
 DEADLINE: <2016-06-28 Tue 8:00pm> 
******* TODO lights out by 12:30am
 SCHEDULED: <2016-06-28 Tue 11:59pm> 

 

***** COMMITTED <2016-06-29 Wed> [0%]
******* TODO wake up 8:30am
 SCHEDULED: <2016-06-29 Wed 8:30am>
******* TODO blue light 
 SCHEDULED: <2016-06-29 Wed 8:31am>
******* TODO meditate 
 SCHEDULED: <2016-06-29 Wed 8:45am>
******* TODO write Wise Mind form or LIFE form
 SCHEDULED: <2016-06-29 Wed 9:00am> 
******* TODO disable Internet
 SCHEDULED: <2016-06-29 Wed 9:15am> 
******* TODO morning pages at a café or at The Writers' Room 
 SCHEDULED: <2016-06-29 Wed 9:45am>
******* TODO go straight to The Writers' Room
 SCHEDULED: <2016-06-29 Wed 10:00am>
******* TODO review weeklies and calibrate with dailies 
******* TODO submit dailies to Erika 
 DEADLINE: <2016-06-29 Wed 2:00pm> 
******* TODO work on book 3 hours 
******* TODO two lines of poetry 
 DEADLINE: <2016-06-29 Wed 8:00pm> 
******* TODO lights out by 12:30am
 SCHEDULED: <2016-06-29 Wed 11:59pm> 

 

***** COMMITTED <2016-06-30 Thu> [0%]
******* TODO wake up 8:30am
 SCHEDULED: <2016-06-30 Thu 8:30am>
******* TODO blue light 
 SCHEDULED: <2016-06-30 Thu 8:31am>
******* TODO meditate 
 SCHEDULED: <2016-06-30 Thu 8:45am>
******* TODO write Wise Mind form or LIFE form
 SCHEDULED: <2016-06-30 Thu 9:00am> 
******* TODO disable Internet
 SCHEDULED: <2016-06-30 Thu 9:15am> 
******* TODO morning pages at a café or at The Writers' Room 
 SCHEDULED: <2016-06-30 Thu 9:45am>
******* TODO go straight to The Writers' Room
 SCHEDULED: <2016-06-30 Thu 10:00am>
******* TODO review weeklies and calibrate with dailies 
******* TODO submit dailies to Erika 
 DEADLINE: <2016-06-30 Thu 2:00pm> 
******* TODO work on book 3 hours 
******* TODO two lines of poetry 
 DEADLINE: <2016-06-30 Thu 8:00pm> 
******* TODO lights out by 12:30am
 SCHEDULED: <2016-06-30 Thu 11:59pm> 

 

However, if I do yas/tiny-expand, it fails to expand.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.