typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 58 forks source link

[Summary] Find & Replace Enhancement #2824

Open DutchPete opened 5 years ago

DutchPete commented 5 years ago

When a Search box is opened ( CTRL+F or CTRL+Shift+F ):


adlwawh commented 5 years ago

Hope regular expression search is support both in local and global search

vassudanagunta commented 4 years ago

Find should ignore markup in WYSIWYG mode #3260

When in WYSIWYG mode, and given the text:

`Find` should ignore markup in [WYSIWYG](https://en.wikipedia.org/wiki/WYSIWYG)
mode.

Some people like Typora's *Hybrid* mode. Some people dream of an editor
with a true *WYSIWYG* mode. Typora could make everyone happy with a
simple `Display markup under cursor` switch (issue #1317). 😉

Find "WYSIWYG mode" should match two items.

In other words, Find should operate on the rendered text, not the underlying "source code". This is how nearly all rich text editors work.

When in source code mode, Find should continue to behave as it does now: it should search the source code, which of course includes markup.


@abnerlee Please don't make this an "search option" as you mentioned in your comment when you closed #3260. That just adds complexity. Far more simple and intuitive:

eiis1000 commented 4 years ago

It really would be awesome to have regex search.

0x7969 commented 4 years ago

@abnerlee Please don't make this an "search option" as you mentioned in your comment when you closed #3260. That just adds complexity. Far more simple and intuitive:

* in WYSIWYG mode, `Find` searches the rendered text.

* in source code mode, `Find` searches the source code, which of course includes markup.

I'd agree here.