-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Is there a possibility to use whitespaces as the padding between json elements, instead of invisible css space (like padding)? That way when you copy to clipboard, it includes the whitespaces so you can easily paste it somewhere else.
For example, when you copy-paste some JSON like this
{
"metadata": {
"name": "alertmanager-0",
"generateName": "alertmanager-",
"namespace": "gmp-system",
"uid": "4e10de86-2c26-47d5-a91c-cd4e3d0557d8",
"resourceVersion": "27187",
"creationTimestamp": "2024-01-15T23:59:50Z",
"labels": {
"app": "managed-prometheus-alertmanager",
"app.kubernetes.io/name": "alertmanager",
"app.kubernetes.io/version": "0.8.1",
"controller-revision-hash": "alertmanager-5d4f845fc5",
"statefulset.kubernetes.io/pod-name": "alertmanager-0"
},
It shows up like this instead (unreadable):
metadata:
name: "alertmanager-0"
generateName: "alertmanager-"
namespace: "gmp-system"
uid: "4e10de86-2c26-47d5-a91c-cd4e3d0557d8"
resourceVersion: "27187"
creationTimestamp: "2024-01-15T23:59:50Z"
labels:
app: "managed-prometheus-alertmanager"
app.kubernetes.io/name: "alertmanager"
app.kubernetes.io/version: "0.8.1"
controller-revision-hash: "alertmanager-5d4f845fc5"
statefulset.kubernetes.io/pod-name: "alertmanager-0"
All I want to do is preserve the spacing by including the whitespaces.
If this is not possible im probably abandoning this plugin unfortunately, since copy-pasting the json elsewhere in a human readable format is an important aspect of my project.
Metadata
Metadata
Assignees
Labels
No labels