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

Unwrap and Buffer #79

Open
Gregoor opened this issue Jan 5, 2023 · 1 comment
Open

Unwrap and Buffer #79

Gregoor opened this issue Jan 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Gregoor
Copy link
Owner

Gregoor commented Jan 5, 2023

Maybe too niche, but something I dreamt up yesterday: Hold Shfit + current unwrap keys until

<div><h1><a>≤thing≥</a></h1></div>;

becomes

<div>thing</div>

Now when you paste you'd paste <h1><a></a></h1>, or if you pasted it onto a selection it'd be wrapped in it.

So basically it unwraps while collecting what's gotten unwrapped into the clipboard.

@Gregoor Gregoor added the enhancement New feature or request label Jan 5, 2023
@Gregoor
Copy link
Owner Author

Gregoor commented Jan 17, 2023

VSCode's Clipboard API only allows reading/writing text to it, so I'd have to encode the richness myself here. E.g. put

{
  "__TOFU_SPECIAL_KEY": "PRESENT",
  "type": "buffered_unwrap",
  "content": {
    "pre": "<h1><a>",
    "post": "</h1></a>"
  }
}

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

1 participant