	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=MIC-03-2+My+Bike+outline+automatically+converted+to+markdown+for+Obsidian&amp;rft.aulast=Yee&amp;rft.aufirst=Raymond&amp;rft.subject=Uncategorized&amp;rft.source=Hypotyposis+on+a+Good+Day&amp;rft.date=2023-10-03&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=https://hypotyposis.net/blog/2023/10/03/mic-03-2-my-bike-outline-automatically-converted-to-markdown-for-obsidian/&amp;rft.language=English"></span>
	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=MIC-03-2+My+Bike+outline+automatically+converted+to+markdown+for+Obsidian&amp;rft.aulast=Yee&amp;rft.aufirst=Raymond&amp;rft.subject=Uncategorized&amp;rft.source=Hypotyposis+on+a+Good+Day&amp;rft.date=2023-10-03&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=https://hypotyposis.net/blog/2023/10/03/mic-03-2-my-bike-outline-automatically-converted-to-markdown-for-obsidian/&amp;rft.language=English"></span>
{"id":1561,"date":"2023-10-03T22:03:54","date_gmt":"2023-10-04T05:03:54","guid":{"rendered":"https:\/\/hypotyposis.net\/blog\/?p=1561"},"modified":"2023-10-03T22:03:54","modified_gmt":"2023-10-04T05:03:54","slug":"mic-03-2-my-bike-outline-automatically-converted-to-markdown-for-obsidian","status":"publish","type":"post","link":"https:\/\/hypotyposis.net\/blog\/2023\/10\/03\/mic-03-2-my-bike-outline-automatically-converted-to-markdown-for-obsidian\/","title":{"rendered":"MIC-03-2 My Bike outline automatically converted to markdown for Obsidian"},"content":{"rendered":"<p>I\\'m pleased that I reached a programming milestone. Now whenever I save my main Bike outline (<code>overall.bike<\/code>), my CLI for interacting with Bike (and Bike outlines) is fired off (specifically, <a href=\"https:\/\/github.com\/rdhyee\/python-learning\/blob\/28a704a18fbdc456da718fd8bc97652e472dd31d\/bike\/bike.py#L153-L195\">bike.py pandoc<\/a><code>)<\/code>.  I use <a href=\"https:\/\/www.hammerspoon.org\/\">Hammerspoon<\/a> to look for <a href=\"https:\/\/github.com\/rdhyee\/dot-hammerspoon\/blob\/20c2253db954f497108524b4598f03151f01b8a3\/init.lua#L66\">changes in the enclosing directory<\/a> for <code>overall.bike<\/code> and then I have some logic to check for <a href=\"https:\/\/github.com\/rdhyee\/dot-hammerspoon\/blob\/20c2253db954f497108524b4598f03151f01b8a3\/init.lua#L36-L58\">telltale changes<\/a> in <code>overall.bike<\/code>.  I was stuck for a while:  It turns out that the tricky part is detecting reliably <a href=\"https:\/\/github.com\/rdhyee\/python-learning\/blob\/28a704a18fbdc456da718fd8bc97652e472dd31d\/bike\/bike.py#L38-L47\">whether there is data on stdin<\/a>. My <a href=\"https:\/\/github.com\/rdhyee\/python-learning\/blob\/28a704a18fbdc456da718fd8bc97652e472dd31d\/bike\/bike.py#L167C1-L176\">solution<\/a> is good enough for now, but I will probably revisit it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I\\&#8217;m pleased that I reached a programming milestone. Now whenever I save my main Bike outline (overall.bike), my CLI for interacting with Bike (and Bike outlines) is fired off (specifically, bike.py pandoc). I use Hammerspoon to look for changes in &hellip; <a href=\"https:\/\/hypotyposis.net\/blog\/2023\/10\/03\/mic-03-2-my-bike-outline-automatically-converted-to-markdown-for-obsidian\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-1561","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7I6qs-pb","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/posts\/1561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/comments?post=1561"}],"version-history":[{"count":1,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/posts\/1561\/revisions"}],"predecessor-version":[{"id":1562,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/posts\/1561\/revisions\/1562"}],"wp:attachment":[{"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/media?parent=1561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/categories?post=1561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/tags?post=1561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}