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

Restore n-click Functionality for JSON Editor #468

Open
dm-p opened this issue Jun 30, 2024 · 2 comments
Open

Restore n-click Functionality for JSON Editor #468

dm-p opened this issue Jun 30, 2024 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@dm-p
Copy link
Member

dm-p commented Jun 30, 2024

Apparently JSONEditor had an advantage over Monaco editor in that double-clicking an opening enclosure (square bracket or brace) or triple-clicking would highlight all JSON within that segment, which was convenient for a few things. It would be useful if we could allow this in Monaco.

@dm-p dm-p added the enhancement New feature or request label Jun 30, 2024
@dm-p dm-p added this to the Backlog milestone Jun 30, 2024
@PBIQueryous
Copy link

PBIQueryous commented Jul 1, 2024

I've double-checked to confirm this behaviour.

In JSONEditor:
• Double-Click: Highlights JSON within a opening enclosure (square/curly bracket) - this behaviour is consisten whether the mouse-click/curser is applied in-front or behind the bracket character. Thie same effect can be achieve my placing the text cursor next to the desired bracket and hitting Ctrl+Shift+M (expand to matching)

image

• Triple-Click: Highlights the JSON segment for the entire line(s) where the opening/closing enclosure sits. The same effect can be achieve by double-clicking then hitting Ctrl+Shift+L (aka: expand to line selection)

image



In Monca (v1.7 Deneb Editor) - the same functionality doesn't appear to be available. However, hovering the mouse cursor over the opening enclosure temporarily highlights the section, although somewhat fainter.

image

@PBIQueryous
Copy link

PBIQueryous commented Jul 1, 2024

Upon futher investigation - we CAN achieve the selection functionality in Monaco with alternative keyboard shortcuts, but not with the mouse.

Expand Selection To End: Alt + Shift + Right Arrow
Expand Selection To Start: Alt + Shift + Left Arrow

image

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

No branches or pull requests

2 participants