argenos / nldates-obsidian

Work with dates in natural language in Obsidian
MIT License
497 stars 46 forks source link

Support translating strings like ";next week;" as though I had highlighted the selection between the semi-colons and pressed a keyboard shortcut #21

Closed classicrob closed 3 years ago

classicrob commented 3 years ago

Highlighting a section of text and then pressing a keyboard shortcut has a little more friction than I was hoping for! Roam toolkit allows me to instead just write ;in a week; and it treats the section of text that I have between semi-colons as though it were highlighted and transformed. This just makes it a bit easier to capture this stuff while I'm writing / without breaking my flow. I'll remind you ;in one week; 😉️

classicrob commented 3 years ago

image

Perhaps this is helpful? It's an implementation in Keyboard Maestro using regex. Preferably this would be in the plugin so I would have access on mobile as well!

argenos commented 3 years ago

Not exactly the way it was requested in this issue, but I consider the auto-suggest in v0.5.0 as a fix for this. Note: This doesn't work on mobile yet (I still need some missing pieces from the CM6 API)