Keyboard Shortcuts
Check out the main menu for the available keyboard shortcuts of OK JSON first.
⌘ K: Search Scripts
⌘ K invokes the Search Scripts window in the app.
Type in the keyword to search for the script and press Return to run it.
In case you need to update the script, you can also press ⌘ + Return to show the script file in Finder or press ⌥ + Return to edit the script file.
⌘ K is available in almost every window:
- Launch Screen: Run the script with pasteboard content set as the input to the script.
- Navigator: Run the script with selected node as the input.
- JSONPath: Run the script with JSONPath result as the input.
- History: Run the script with selected history item as the input.
- Scripts Panel: Run the script with text from Input Editor as the input.
- Script Result: Run the script with text from left pane as the input.
⌘ F: Find
⌘ F opens the find bar above the Navigator to search keys and values.
⌘ =: Zoom In & ⌘ -: Zoom Out
Adjust the content size — the tree, icons, and labels grow or shrink through five steps from Compact to Extra Large.
Currently these windows support content sizes:
- Navigator
- History
- Search Scripts
⌃ ⌘ →: Go Forward & ⌃ ⌘ ←: Go Back
Available in Navigator and History.
OK JSON saves your navigation history in Navigator and History so that you can use these keyboard shortcuts to jump to previous nodes or lists.
More Shortcuts
A few more worth remembering:
- ⌘ V on the Launch Screen: view the clipboard content.
- ⌘ U: New from URL. ⌘ L: New from cURL Command. ⌘ O: Open a file.
- ⌘ R: toggle the selected node. ⇧ ⌘ R: toggle it with all of its children.
- ⌘ B: zoom in node. Space: Quick Look the selected node.
- ⇧ ⌘ S: save changes. ⌘ S: save changes to the file.
- ⌘ Y: show History. ⌘ P: show the Scripts Panel.