Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot copy selected text in jsonb field, #8184

Closed
DanielPiersonLN opened this issue Nov 27, 2024 · 2 comments
Closed

Cannot copy selected text in jsonb field, #8184

DanielPiersonLN opened this issue Nov 27, 2024 · 2 comments
Labels

Comments

@DanielPiersonLN
Copy link

Describe the bug

On Windows, If I highlight some text in a jsonb filed and use ctrl-c I get the entire field value rather than just the selected text. Right-click menu has an option for copy but it is disabled.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Query window
  2. Run a query where results contain a jsonb field.
  3. Double click jsonb field to invoke edit widnow
  4. Highlight some text
  5. CTRL + C
  6. Open Notepad
  7. Paste into notepad

Expected behavior

  • only the text that was selected in the jsonb field is pasted.

Repeat 1 - 4
5. Right click selected text

Expected behavior

  • Copy menu option should be enabled.

Screenshots

image

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Operating System Windows-11-10.0.22631-SP0
  • Version: 8.13
  • Mode: Desktop
  • Commit: b278265 2024-11-11
  • Electron Version 33.2.0
  • Browser Chrome 130.0.6723.118
@adityatoshniwal
Copy link
Contributor

Duplicates #8157.

@adityatoshniwal adityatoshniwal closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2024
@DanielPiersonLN
Copy link
Author

HI @adityatoshniwal . I see that this ticket was closed as duplicate, but the referenced ticket isn't exactly what I'm describing here. The referenced ticket talks about incorrect quoting. My ticket refers to copying only the selected text.

eg: if the jsonb field has

{
"firstname": "Dan",
"lastname": "Pierson"
}

and I highlight just "Pierson", I'd expect when I copy with CTRL+C, that only "Pierson" would be copied. Instead, I'm getting the entire value for the jsonb field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants