trilium icon indicating copy to clipboard operation
trilium copied to clipboard

Find and Replace Texts in editor

Open JohnWang1023 opened this issue 5 years ago • 4 comments

JohnWang1023 avatar Oct 31 '19 20:10 JohnWang1023

Just to give some answer here - unfortunately this is pretty difficult to do in Electron so I don't see this happening soon even though this would be a useful feature of course.

zadam avatar Nov 04 '19 11:11 zadam

Possible to integrate in the code editor using https://codemirror.net/demo/search.html ?

JohnWang1023 avatar Jan 04 '20 19:01 JohnWang1023

the annoying thing is that this would be specific to code editor and not consistent with text editor ...

zadam avatar Jan 04 '20 20:01 zadam

Any updates on this seeing as it's supported in CKEditor 5? https://ckeditor.com/docs/ckeditor5/latest/features/find-and-replace.html

andersmmg avatar Aug 23 '22 05:08 andersmmg

This would be awesome!

perfectra1n avatar Oct 17 '23 15:10 perfectra1n

This is actually part of the toolbar:

Unfortunately it is not possible to bind this to a keyboard shortcut :-(

zadam avatar Oct 18 '23 22:10 zadam

Oh I didn't even know that was there, thanks for pointing that out!

Maybe it's possible to also include something like it in the little pane that pops up with Ctrl + F?: image

perfectra1n avatar Oct 19 '23 03:10 perfectra1n

Yes, that would be nice, but unfortunately not trivial to implement since it would have to hook into CKEditor/CodeMirror APIs. Still I would like to get to it at some point.

zadam avatar Oct 19 '23 20:10 zadam

Hi, is there a way to perform a search/replace by editing code, especially HTML code?

Meroyanae avatar Nov 18 '23 10:11 Meroyanae