BdR76 / RandomValuesNPP

Generate random values plug-in for Notepad++. Use this plugin to generate passwords, guids or random datasets in CSV, JSON, XML and SQL formats. Use the fake test data for performance and QA testing to improve software quality in application development, reports, database modeling, webdev etc.
15 stars 4 forks source link

Generating values in Other View #20

Open trjul opened 4 hours ago

trjul commented 4 hours ago

When having two files opened side-by-side (with the Other View function), random values are always generated in the left panel file, even though the cursor is on the right panel file.

BdR76 commented 2 hours ago

Thanks for posting the issue, you're right this is a bug. It even seems to overwrite the active file on the left-side panel 😐I checked it out and I can reproduce it like this:

  1. open two text files
  2. move one file to right panel (View -> Move/Clone current document -> Move to other view)
  3. set cursor in file on left-side panel
  4. run menu item Plugins > Random Values -> Generate random values
  5. observe that new tab called "New 1" appears on left with generated random values
  6. set cursor in file on right-side panel
  7. again run menu item, same as point 4
  8. BUG: new tab called "New 1" appears on right but the active file on left is overwritten with generated random values

I'll have to look in to this when I have the time.