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

Easy copy paste enhancement: use whitespaces instead of padding/margin #147

Open
MileanCo opened this issue Jan 26, 2024 · 0 comments
Open

Comments

@MileanCo
Copy link

MileanCo commented Jan 26, 2024

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.

@MileanCo MileanCo changed the title Easy copy paste enhancement: use whitespaces instead of css Easy copy paste enhancement: use whitespaces instead of padding/margin Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant