Code Monkey home page Code Monkey logo

Comments (4)

coleman-rik avatar coleman-rik commented on June 1, 2024 1

I can stable reproduce it only if DBeaver window loose focus (for example, if I switched to some other app or pressed hotkey for screen recording).

@E1izabeth I am sorry to confirm that I can reliably reproduce without ever leaving DBeaver or ever losing focus.

if I make DBeaver full screen, and never leave the application. Then:

  1. open a new SQL Editor window
  2. write/paste text into the editor
  3. select a subset of lines (notice that they are the dark blue, user selection)
  4. press Ctrl+F which will cause the Find/Replace dialog to open with Selected line Scope selected
  5. notice that the selection is still user selected and not the lighter find/replace selected
  6. type a common character in Find and a symbol in Replace so that the results will be obvious
  7. press Replace All
  8. watch in dismay as that replacement is done in the entire document.

as you can see in the steps outlined above, DBeaver never lost focus.

if at step # 5 you flip the Scope dialog from the defaulted Selected lines to All and then back to Selected lines (and you don't lose your selection, which happens sometimes) you will notice that the selection has changed from the user selection (dark blue) to the Find/Replace selection (light blue). Replace All will now function as expected.

I hope that helps.

from dbeaver.

coleman-rik avatar coleman-rik commented on June 1, 2024

note:
why does DBeaver have two different selected modes?

apparently there's selected when the user selects things, and for things are select as the result of a Find operation [deep blue], but a different selected [slightly lighter blue] when thte Find/Replace dialog is going to actually limit it's operations to the selected area.

the second selected area doesn't honor the user selection, in that toggling the Scop radio buttons can often clear the user selection, and it can be confusing as to what's operations of the Find/Replace dialog are actually going to effect.

from dbeaver.

E1izabeth avatar E1izabeth commented on June 1, 2024

I can stable reproduce it only if DBeaver window loose focus (for example, if I switched to some other app or pressed hotkey for screen recording).

from dbeaver.

E1izabeth avatar E1izabeth commented on June 1, 2024

This dialog comes to DBeaver from Eclipse platform. So, actually we inherit this bug from them eclipse-platform/eclipse.platform.ui#1819 eclipse-platform/eclipse.platform.ui#1235
It came in this version, because we just updated Eclipse version we use.

from dbeaver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.