Roam-Research / issues

Roam Research - A note-taking tool for networked thought.
https://roamresearch.com/
303 stars 7 forks source link

"Reverse" Unlinked Reference linking for new content so you can see matches to current page names and choose which to link to. #130

Open GitMurf opened 4 years ago

GitMurf commented 4 years ago

Describe the problem

The problem(s) I am trying to address:

Here is the general idea:

But I was just in the process of pasting some highlights from an article into Roam and going through and trying to tag it all and thought "Wait a second... there has to be an easier way." And then it dawned on me... a sort of reverse Unlinked References "mode" where you can turn it on to have a page "show/highlight" all words/phrases etc. that match all your page names and then a way to quickly choose to "link" or "ignore" so you can quickly add links to your new content!

Also this would help with the "capitalization" vs non capitalized issue or plural vs singular page name normalization because I would assume there would be some "AI" / Settings/ Parameters to it where you could have it show you all matches non case sensitive, or including "plural" matches ([[Page Name]] = [[Page Names]]) etc... In a way it is a Reverse Way of doing unlinked references but also somewhat of an "assisted" "auto tagger".

Feature implementation

Reverse Unlinked References "mode" where you can turn it on to have a page "show/highlight" all words/phrases etc. that match all your page names and then a way to quickly choose to "link" or "ignore" so you can quickly add links to your new content!

And settings/parameters like:

Additional context

My post in the Slack channel: https://roamresearch.slack.com/archives/CMZMS7FLJ/p1588904009376400

I'm sure it has been thought of and discussed before but I haven't seen it and frankly can't believe I haven't thought about it before. But I was just in the process of pasting some highlights from an article into Roam and going through and trying to tag it all and thought "Wait a second... there has to be an easier way." And then it dawned on me... a sort of reverse Unlinked References "mode" where you can turn it on to have a page "show/highlight" all words/phrases etc. that match all your page names and then a way to quickly choose to "link" or "ignore" so you can quickly add linked to your new content! Also this would help with the "capitalization" vs non issue or plural vs non page name normalization because I would assume there would be some "AI" / Settings/ Parameters to it where you could have it show you all matches non case sensitive, or including "plural" matches ([[Page Name]] = [[Page Names]]) etc... Does that make sense? Anyone else agree this would be mind glowingly amazing?! In a way it is a Reverse Way of doing unlinked references but also somewhat of an "assisted" "auto tagger".

GitMurf commented 4 years ago

I certainly don't want to, but honestly this could be something pretty easily done with building a script. Load all my page names into an Array, loop through each page name and then sub loop of each bullet/block on current page and suggest each potential link and add some "regex" matching logic to account for subtle Page Name differences and case sensitivity to my content. Damnit, this might be a new project i'm going to obsess over like my Roam-highlighter :wink: haha

louisdeveseleer commented 4 years ago

Hey I think this could be nice. I just had an idea that I think is similar to yours, and then I found your post.

Have autsuggestions appearing when certains words appear (ex: page titles || recurring and seemingly important words). They appear under the word. Clicking on down arrow allows to select that page title and link it. Boum, two taps, done. It avoids the user having to be like "oh wait i need to link this word", tap back arrow several times, and strugle another two taps to enter the hashtag. It saves an average of 5-6 manipulations per word, in the case where the user often forgets to enter the hashtag at the right moment, like is my case.

louisdeveseleer commented 4 years ago

And for the mobile version, it is an even bigger benefit for the user: With the auto-suggestions, they appear under the word, and with only one single tap, the user makes it into a link. Bam. Compare that to no automatic link suggestions : the user has to place the cursor at the right place (a big pain in the ass on a small text), and then enter the hashtag (another pain in the ass).

~Nice-to-have Also include automatic link suggestions for other commands like / or ((, ... when just typing text, without having the enter the special characters.