Auto remove "\n" in replace column?
It is found that the "\n" characters in replace column will be removed automatically after find and replacement every single time.
It confuses me because I have to enter the "\n" character back every time.
Example:
- Find: \n
- Replace: \n\n
And then the "\n" in replace column is removed and I need to enter it back:
- Find: \n
- Replace:
I am using version 1.2.0 plugin and obsidian in macOS Monterey v12.3.1.
Thanks for the report! I'm able to reproduce the issues with my environment
Thanks, also appreciate for creating the plugin. :)
+1
To replace \n I was searching a plugin, but to find it's not working. T_T
+1 I've noticed this as well. Sometimes it becomes an issue where I need to replace many sections of text with something that includes \n. For each replacement I have to manually retype the \n again.
+1 Confirm this happens with plugin 1.2.0 on the Linux AppImage and Windows versions (Obsidian 1.4.13). In case it helps...
My plugin configuration:
- Enabled
- "Process \n as line break"
- "Use regular expressions" (in search popup)
- Disabled
- "Case Insensitive"
- "Prefill Find field"
Simple examples:
- Search
\n\n+and Replace\n\n, run, and reopen. Replace is now empty. - Search
\n## (|Part )(\d+)and Replace\n## Chapter $2, run, and reopen. Replace is now:## Chapter $2.
All entries of \n in the Replace field are removed when the plugin is reopened. Everything else appears normally.