It looks like quite a few ROAM Research users are picking up Text Blaze to use with ROAM for a variety of things, from making soft line-breaks to creating templates etc.
Let's get all the ROAM Research users on this thread and share ideas/snippets for combining TB with RR to make everyone's life easier. If there's enough material, I'll be more than happy to create a MEGA guide for everyone's benefit.
C'mon, let's see what you've got!
UPDATED - Nov 28, 2020
I'm adding the Roam journaling video below as it belongs to this topic.
I use Text Blaze a lot to autofill pages (Daily notes, articles, etc.). One fun template I use is for YouTube videos. It grabs and autofills the title and creator and wraps them in double brackets, and the URL (you could easily wrap the URL in the Roam-style YouTube embed).
@Jimmy_Jamboree, that's some pretty Jedi stuff you did there
The forum messed up your code a bit, so Scott stepped in and tried to fix it. I've tested it, but for "title" I'm getting a no-match. Maybe we're missing something. Can you double-check please?
Oops. I realized I was a bit hasty with my description! You need to have the URL for the YouTube video in your clipboard (but that may have been clear from the snippet).
I'm trying to copy in the code again (but I'm noticing issues with how the backslashes are showing up):
@Benjamin_Von_Wong, how do you populate the fields then? Do you do it manually? You could use {formtext}, {formparagraph} and {formmenu} for that.
P.S. for the {formparagraph} command with multi-select, you can specify the separator, so if the comma doesn't work, let me know and I'll show you how you can change it accordingly.
Here's an example:
Articles:
Author:: {key:enter}Reading Status::{formmenu: To read; In progress; On hold; Finished}{key:enter}Date Finished::{key:enter}Recommended:: {key:enter}Why:: {key:enter}Tags:: {formmenu: multiple=yes; #booklist; #fiction; #non-fiction; # business; #psychology; #action}{key:enter}Notes::{key:enter}
I'm on a free account, but thank you ! In Roam. information is generally filled out over time, not at one point so a form is cool but unnecessary! Thanks though!
That looks good. I've found that I need to have two enters - {key:enter}{key:enter} - if I add a #hashtag. Otherwise, the following lines are all joined up.
@Kevin_Murray, if you ever happen to need something more than twice, there's also the repeat command. In your case, with two enters you don't really need it of course. But it's worth knowing about.
Hi Cedric,
I've just signed up and am experimenting with simple snippets in Roam. I am having trouble with placing a cursor at a certain spot rather than simply at the end of the snippet as per the default. The sample snippet is below. You can see where I've marked the cursor. It appears to be ignored in practice. Am I using it incorrectly?
Morning Journal #jLog
{key:enter}{key:enter}{key:tab}One thing I am [[grateful]] for:
{key:enter}{key:tab}{key:tab}{cursor}
{key:enter}{key:shift-tab} My [[intention]] for today:
{key:enter}{key:tab}
Unfortunately, it looks like it's not always possible to restore cursor positions across key commands. However, it's something we are working on improving.
If you have the pro version, you could work around it with text fields:
Morning Journal #jLog
{key:enter}{key:enter}{key:tab}One thing I am [[grateful]] for:
{key:enter}{key:tab}{key:tab} {formtext}
{key:enter}{key:shift-tab} My [[intention]] for today:
{key:enter}{key:tab} {formtext}