Skip to content

Replace button in SQL Editor inserts text at cursor #1612

@mdro

Description

@mdro

Details for the issue

What did you do?

I tried to use find and replace in the SQL editor. I filled out the "Find text" and "Replace with" fields and pressed "Replace".

What did you expect to see?

One of the following:

  1. The button doesn't do anything or is disabled until I press "Find Next".
  2. The first occurrance of the search term after the cursor gets selected, so it will be replaced on the next press of that button.
  3. The first occurrance of the search term after the cursor gets replaced. Maybe the next occurrence after that gets selected.

What did you see instead?

The replacement text gets inserted at the cursor position, then the first occurrance is selected.
After that pressing the button works normaly (replace selected, select next).

Related Feature Request

It would be nice if "Replace All" would be limited to the current selection in the file if there is a selection (like in e.g. Visual Studio).

Useful extra information

The info below often helps, please fill it out if you're able to. :)

What operating system are you using?

  • Windows: ( version: Win 10 1804 )

What is your DB4S version?

  • 3.11.0-alpha*

Did you also

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions