Replies: 1 comment
-
I've been using this for just a day. Please comment if you find problems |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Problem
I had this problem ALL the time, mostly from copy-pasting into my notes. A space gets added before a bullet, breaking lots of outliner features. Like this:
Regex Solution
This regex will fix the above problem:
Search
(?<=\n)(\t*) +-
Replace
$1-
Plugins to implement it:
Any of these will work
Advanced URI will NOT encode it properly as of Oct 1 '23.
My One-Click solution
I don't always want to Lint the entire document just to fix this problem. And "Regex Find/Replace" requires manual input, extra taps. My preference:
obsidian://advanced-uri?vault=VAULTNAMEHERE&commandid=find-and-replace-in-selection%253Afind-and-replace-in-selection
Warnings
This regex has no way to avoid code blocks or yaml
Beta Was this translation helpful? Give feedback.
All reactions