brackets-cont / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
Other
1.36k stars 181 forks source link

How to find/replace with regx $ for simple end of line(EOL) in the "Find/Replace with..." panel? #226

Open luojingwen opened 2 years ago

luojingwen commented 2 years ago

Prerequisites

Description

I am a new user of Brackets. When I want to find/replace end of line(EOL) with regx $ in the find/replace panel, it just shows up "No results". But somehow, it do support ^ for start of line.

Can we have the feature for just find/replace for simple end of line(EOL)?

Steps to Reproduce

  1. Open the "Find/Replace" panel from "Find" menu
  2. Type $ in the "Find" search box
  3. Activate the regx option

Expected behavior: The find/replace function can support for general find/replacement for just simple end of line(EOL), do not need to put . or specific characters before the end of line(EOL), e.g.: (.)$ or (text)$ for catching specific end of line(EOL) with specific replacement regx in the "Replace with..." box, e.g.: $1text-for-replacement .

Actual behavior: The "Find" box just shows up "No results", only works for .$, text$, (.)$ etc.

Versions

I downloaded the Brackets.2.1.2.dmg from Brackets GitHub releases page. Release 2.1 build 2.1.2-17937 (master 167640b53) build timestamp: Tue Jul 12 2022 11:51:51 GMT+0530

Suggestion

Can we provide simple user tips for how to use regx in the find/replace panel within the "Getting Started" page shipped with Brackets?

Thank you!