[GH-ISSUE #2938] [feature]: json collapse #952

Closed
opened 2026-03-16 17:48:40 +03:00 by kerem · 2 comments
Owner

Originally created by @me-v2 on GitHub (Mar 2, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2938

Is there an existing issue for this?

  • I have searched the existing issues

Summary

sometime big json have embed object or array, hope support collapse fields.

Why should this be worked on?

sometime big json have embed object or array, hope support collapse fields.

Originally created by @me-v2 on GitHub (Mar 2, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2938 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Summary sometime big json have embed object or array, hope support collapse fields. ### Why should this be worked on? sometime big json have embed object or array, hope support collapse fields.
kerem 2026-03-16 17:48:40 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@me-v2 commented on GitHub (Mar 2, 2023):

hotkey for collapse json

<!-- gh-comment-id:1451364517 --> @me-v2 commented on GitHub (Mar 2, 2023): hotkey for collapse json
Author
Owner

@liyasthomas commented on GitHub (Mar 2, 2023):

Hoppscotch uses CodeMirror under the hood.
CodeMirror 6 supports the folding shortcuts natively (per foldKeymap):

  • Ctrl + Shift + [ (Cmd + Alt + [ on macOS): Fold the lines that are selected, if possible.
  • Ctrl + Shift + ] (Cmd + Alt + ] on macOS): Unfold folded ranges on selected lines.
  • Ctrl + Alt + [: Fold all top-level foldable ranges.
  • Ctrl + Alt + ]: Unfold all folded code.

or click on the gutter to fold a block, again to unfold.

screely-1677738746735

screely-1677739457603

<!-- gh-comment-id:1451388423 --> @liyasthomas commented on GitHub (Mar 2, 2023): Hoppscotch uses [CodeMirror](https://codemirror.net) under the hood. CodeMirror 6 supports the folding shortcuts natively (per [foldKeymap](https://codemirror.net/docs/ref/#language.foldKeymap)): - <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>[</kbd> (<kbd>Cmd</kbd> + <kbd>Alt</kbd> + <kbd>[</kbd> on macOS): Fold the lines that are selected, if possible. - <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>]</kbd> (<kbd>Cmd</kbd> + <kbd>Alt</kbd> + <kbd>]</kbd> on macOS): Unfold folded ranges on selected lines. - <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>[</kbd>: Fold all top-level foldable ranges. - <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>]</kbd>: Unfold all folded code. or click on the gutter to fold a block, again to unfold. ![screely-1677738746735](https://user-images.githubusercontent.com/10395817/222352334-045a021a-1f93-47a4-bdee-df96146b96f9.png) ![screely-1677739457603](https://user-images.githubusercontent.com/10395817/222352365-a2140b1d-654f-45d3-8437-2073183929a1.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#952
No description provided.