obsidian-regex-replace icon indicating copy to clipboard operation
obsidian-regex-replace copied to clipboard

Add more feature to the find and replace menu

Open Oneechan69 opened this issue 1 year ago • 0 comments

I now this would be a lot to ask for but I thought I should it anyway, maybe you could implement as least some of this.

682a9461d526a7f341fc2cf9fc2147c91bc672e0

VS code's find and replace menu is an example of a feature rich one. I circled all of the buttons that it has that the Regex find and replace does not, and I think should be added:

  • Red: # occurance of a word out of # occurrences.
  • Orange: Replace One and Replace All's buttons are icons. I think Obsidian's should be too.
  • Yellow: Preserve case (uppercase and lowercase) when replacing phrases.
  • Green: Match case.
  • Blue: Match whole word.
  • Pink: Apply regex (regular regex).
  • White:" find phrase within the selected text rather that in each individual line / paragraph in the note.
  • Brown: The replace section is collapsible. Obsidian should do the same and have just one find menu instead of two. Right now there are separate commands for searching and document, and search and replace.
  • Grey: navigate back and forth between find matches.

The plugin should also highlight all the occurrences of phrases in the note instead of just the current one. So someone can quickly scroll through a note and see all the occurrences.

Oneechan69 avatar Apr 19 '23 15:04 Oneechan69