CorentinTh / it-tools

Collection of handy online tools for developers, with great UX.
https://it-tools.tech
GNU General Public License v3.0
23.1k stars 2.8k forks source link

feat(new tool): Smart Text Replacer and LineBreaks manager #1290

Open sharevb opened 2 months ago

sharevb commented 2 months ago

Smart Replacer functionality taken as base from #976 by @utf26 Fixed linebreaking display in Smart Replacer Add linebreaking options

Fix #1279 #1194 #616 #1090

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
it-tools ✅ Ready (Inspect) Visit Preview Sep 21, 2024 0:07am
steffenrapp commented 2 months ago

Hi @sharevb thanks for the tool! I did some basic testing and have a few findings:

Bildschirmfoto 2024-09-12 um 07 42 09
sharevb commented 2 months ago

Hi @steffenrapp , thanks for this reporting

  • You can't search for a space. I searched for " a" and it only found "a".

=> spaces where trimmed from find regex

  • Title and description are not displayed. The texts in the English translation file are missing.

=> should be ok now

  • I'm not sure what the placeholder text in "replace with" means. Maybe needs some explanation?

=> changed to a simplier version, probably need to make a regex memo/cheatsheet

steffenrapp commented 2 months ago

Hi @sharevb thanks a lot! Works a expected now 🪩

steffenrapp commented 2 months ago

Hi @sharevb I have used the tool some times and have two new things:

sharevb commented 2 months ago

=

  • Is it possible to add a copy button to the output so it can be copied easily? EDIT: I just saw that there is a copy button but if the field is too wide then the button is outside the screen and therefore cannot be used.
  • The output field doesn't break lines if a line is too long for the box and I also cannot scroll to the side. Would be nice to either break the line in the display field or enable scrolling.

Hi @steffenrapp, should be ok now

steffenrapp commented 2 months ago

Hi @sharevb great! Works fine now. Just found another thing that can be optimized - sorry 😅 On the phone "match case" and "keep linebreaks" are displayed really bad. Maybe move both to a separate line?

image

sharevb commented 2 months ago

Hi @sharevb great! Works fine now. Just found another thing that can be optimized - sorry 😅 On the phone "match case" and "keep linebreaks" are displayed really bad. Maybe move both to a separate line?

Hi @steffenrapp, héhé ;) should be ok now

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
5 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

steffenrapp commented 2 months ago

@sharevb Yes, perfect! 😃 Thank you