CotEditor icon indicating copy to clipboard operation
CotEditor copied to clipboard

Search text input on the toolbar / ツールバーに検索欄

Open knoajp opened this issue 4 years ago • 3 comments

en: The current search and replace window launched by Cmd+F is a bit too rich interface for most of my usecase. I do replace or even use regexp feature sometimes, but usually I just want to find a keyword in my text.

If a simple search text input form is on the toolbar, I can search more easily. And it's a rather common feature of text editors in the world, I think. How about you? (key bindings while current search and replace exists will be a tiny issue though...)

ja: いまの Cmd+F で出てくる検索と置換のウィンドウは、私のふだんの用途にはインターフェイスがリッチすぎると感じています。 置換することもあるし正規表現を使うこともありますが、多くの場合はテキストの中から検索語を探したいだけなのです。

ツールバーの中に検索用の入力欄がたたずんでくれていると、より気軽に検索できると思いますし、比較的多くのテキストエディタが備える一般的な機能の一つだとも思います。いかがでしょうか? (既存の検索があるのでキーバインディングの割り当てはちょっと配慮が必要かもしれません)

knoajp avatar Oct 05 '20 11:10 knoajp

Thank you for the feedback.

I have received this kind of request several times, and every time, I wonder what should be the best way to fulfill this demand. If CotEditor implements a search field in the toolbar straightforward, most of the users may just use that one and can't find the normal find panel that has richer features. I am mostly afraid of that. So I need to design it carefully and with thought, if I carry it out. And therefore, I just simply postpone it, until now.

Well, I'll consider it again. But the priority may not be high (Please don't disappear, I sometimes implement a new feature fancily when I feel like it).

1024jp avatar Oct 20 '20 09:10 1024jp

An additional request for the search/replace tool: Can you make it also work with all open documents. So find/replace all could act on all open documents.

Also the "replace" feature could use a key command (like comand-D possibly) so we can set a find and replace text and just "command-D" or "command-G" (next) through the document replacing certain occurrences as needed.

I think the current popup window works well and I love the regex. Sorry to include so many things lol.

gregarios avatar Oct 20 '20 14:10 gregarios

@1024jp I understand your concern. If you just put the search input field on the default toolbar item set on future update, a newcomer after that may miss the richer search feature. But you can silently add a toolbar item like "Simple Find" field next to the current "Find" button on the toolbar customization panel. If you do so, none of the user find a "Simple Find" field without noticing the current "Find" button on the panel. You can also rename the current "Find" label to "Rich Find" or "Find & Replace". This can be a solution with no regression.

knoajp avatar Oct 21 '20 00:10 knoajp