krasa / StringManipulation

IntelliJ plugin - https://plugins.jetbrains.com/plugin/2162
Apache License 2.0
700 stars 82 forks source link

Multi Replace ignores Find / Find & Replace toolbar. #217

Closed m-sharp-ct closed 1 year ago

m-sharp-ct commented 1 year ago

Describe the bug Multi Replace does not work whilst using the built-in Regex filter using the find function. If this is not meant to then I will raise it as a feature request.

To Reproduce Steps to reproduce the behavior:

  1. Go to a window with a body of text in. In this example I will use a JSON object. Example:
      {
        "Name": "Foo",
        "Bar": true,
        "FooBar": "FooBar"
      }
  2. Click on 'Edit' -> 'Find' -> 'Find...' (Or command/ctrl + F).
  3. Select the Regex option in the Find toolbar
  4. Enter the Regex pattern you want to match in your body of text. Example: .+?(?=:)
  5. Right-click within the editor window
  6. Click String Manipulation
  7. Select 'To camelCase' within 'Switch Case...'

Expected behavior I would expect that all highlighted text would match the selected case that you wish to switch to, like it would replace if manually using the Find & Replace function.

Screenshots image

Doesn't change anything: image

Would expect it to change the casing to: image

Environment : JetBrains Rider 2023.2.2 Build #RD-232.9921.83, built on September 24, 2023 Licensed to Matt Sharp Subscription is active until May 31, 2024. Runtime version: 17.0.8+7-b1000.22 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 13.6 .NET Core v7.0.7 ARM64 (Server GC) GC: G1 Young Generation, G1 Old Generation Memory: 6144M Cores: 8 Metal Rendering is ON Registry: ide.experimental.ui=true ide.balloon.shadow.size=0 vcs.empty.toolwindow.show=false ide.new.project.model.index.case.sensitivity=true database.show.search.tab=false

Non-Bundled Plugins: com.settler.rider.specflow (1.17.0) wallaby.js (1.0.278) com.intellij.ideolog (222.1.0.0) com.markskelton.one-dark-theme (5.9.0) fr.socolin.application-insights-debug-log-viewer (1.9.0) String Manipulation (9.11.3) net.cakebuild.cakerider (7.1.0) Abc.MoqComplete.Rider (2023.2.0.1) com.intellij.resharper.StructuredLogging (2023.2.0.305) com.albertoventurini.jetbrains.graphdbplugin (0.7.0) ru.adelf.idea.dotenv (2023.2) me.seclerp.rider.plugins.efcore (232.1.0) com.intellij.bigdatatools.core (232.9921.47) com.intellij.bigdatatools.binary.files (232.8660.206) com.intellij.bigdatatools.rfs (232.9921.47) com.mallowigi.colorHighlighter (17.1.0) com.mallowigi (93.1.0) mobi.hsz.idea.gitignore (4.5.2) app.teamhub (16.1.2) com.intellij.resharper.azure (3.50.0.1679-2023.2)

krasa commented 1 year ago

Did you select the result? image

m-sharp-ct commented 1 year ago

Did you select the result? image

Problem solved. Thank you & Apologies! I didn't know that this was a feature in Rider.