Phu1237 / vscode-vs-browser

Built-in browser for Visual Studio Code
MIT License
39 stars 5 forks source link

Keyboard Shortcuts for Copy, Cut, and Paste #19

Open CodeVachon opened 1 year ago

CodeVachon commented 1 year ago

Excellent work on this extension, I have found it be incredibly useful in my workflow.

One use-cases I have is to open GraphQL Playground in VS Browser. Everything functions as it would in browser with the exception of the use of the Keyboard Shortcuts for Copy, Cut, and Paste in the extension frame.

I have not tried any other Keyboard shortcuts, so I can not confirm if this is limited to clipboard functionality or something broader.

The only workaround I have found is to use the Menu Bar to access that functionality.


Steps to Reproduce

  1. download a repository with a GraphQL Playground Here's an older one for convenience
  2. Install Dependancies and Run the Application: pnpm run dev
  3. Open VS Browser and visit this endpoint on the started server /api/graphql
  4. Copy this Snippit and Paste into the Playground using Keyboard Shortcuts CMD+V
{
  listPokemon(itemsPerPage: 5) {
    name
  }
}

Expected behaviour

Snippit should be able to be pasted into the Editor of the GraphQL Playground

Actual behaviour

No change is observed or error is thrown

Phu1237 commented 1 year ago

Sorry for the late response. I have missed this issue notification. I will try to look at it and fix it if can. Thank you for using my extension 🎉

ysaereve commented 1 year ago

Thanks for the great work!

I found it is a great alternative for Pluto.jl for VS Code. It lets me use Pluto.jl within VS Code. If the keyboard shortcuts for Copy, Cut, and Paste work within VS Code, it would be wonderful!

Information about Pluto.jl Pluto.jl (alpha preview) - Visual Studio Marketplace https://marketplace.visualstudio.com/items?itemName=JuliaComputing.pluto-vscode

Phu1237 commented 2 days ago

@CodeVachon @ysaereve I'm working on this I need you to confirm some information

Because I'm using Windows the copy-and-paste still works as expected Thank you for using my extension! 🎉