NotePlan
NotePlan
Mar 31

Hide Brackets

I like that I can quickly create a reference to another page in my notes using double brackets. But, once I create the reference and move on to another line, the brackets should disappear, just like any other Markdown syntax (i.e., **, -, etc.). Why are the double brackets treated differently? They probably shouldn't be.
CompletedCompleted

Dec 15, 2023

Like this? Test running it, releasing as beta soon.

Oct 30, 2023

If someone figured out what needs to be added or changed to the theme json-file in order to hide the brackets, it would be great if you could share it here.

Oct 30, 2023

Looks like pasting these two snippets into your theme does the trick: "NoteLinks-left-brackets": { "regex": "(?:^|\\h)(\\[\\[)(.*?)(\\]\\])", "matchPosition": 1, "color": " #C5487A", "isMarkdownCharacter": true, "isHiddenWithoutCursor": true, "isRevealOnCursorRange": true }, "NoteLinks-right-brackets": { "regex": "(?:^|\\h)(\\[\\[)(.*?)(\\]\\])", "matchPosition": 3, "color": " #C5487A", "isMarkdownCharacter": true, "isHiddenWithoutCursor": true, "isRevealOnCursorRange": true }, (Found this at https://github.com/jgclark/NP-themes) (Sorry about the bad formatting. Canny inserts those empty lines even when I remove them. You'll have to remove them manually to use the snippet

Oct 22, 2023

Agree, it's unnecessary visual noise. It should at least be an option of a theme

Nov 19, 2022

By the way, the new theme "Toothbleach Condensed" does hide them

Oct 22, 2023

Eduard Metzger: This doesn't appear to be the case

Oct 25, 2023

Eduard Metzger: No it doesn't hide them for me. I've voted for this request as I find the square brackets makes the page look really messy. I'd love a more minimalistic look!

Oct 25, 2023

Rebecca C: Yes, not anymore. But you can get the themes that did hide them still here: https://github.com/jgclark/NP-themes

Apr 16, 2022

Personally agree with you Clint Laskowski. I don't want to see the brackets. Have asked the Themes channel for help. https://discord.com/channels/763107030223290449/810232612139…

Apr 6, 2022

I like the brackets that stay to emphasise the link is for another note.

Apr 5, 2022

This is a very common visual appearance know has wiki links, found in every note tool such as Obsidian, Roan, etc