lunapaint / vscode-luna-paint

A raster image editor extension for VS Code
https://marketplace.visualstudio.com/items?itemName=Tyriar.luna-paint
282 stars 27 forks source link

Using Luna Paint without setting it as the default image opener #61

Closed mdesantis closed 3 years ago

mdesantis commented 3 years ago

Hello! I just installed Luna Paint, and I'd like to use it for image editing, but not for image previews. Currently, it seems to me that this option is not supported, as Luna Paint sets itself as the default image opener and when you restore the image preview there's no straightforward way to switch to the Luna Paint editor. Actually, I couldn't even find a not straightforward way to switch :D am I missing something? Otherwise, I think this would be an useful feature.

mdesantis commented 3 years ago

I'm closing this as I found a straightforward way to open Luna Paint:

Tyriar commented 3 years ago

We're currently working on improving this flow in core. I think we're bringing adding a notification that will let you choose which is your preferred after you've installed, basically these will define what gets set in the workbench.editorAssociations setting.

Here's what I set:

  "workbench.editorAssociations": {
    "*.{bmp,ico,jpg,jpeg,png}": "luna.editor"
  },

To use image preview by default:

  "workbench.editorAssociations": {
    "*.{bmp,ico,jpg,jpeg,png}": "imagePreview.previewEditor"
  },

We're also considering adding an edit button to the image preview which would open Luna Paint which I think would be ideal for you, you can track that in https://github.com/microsoft/vscode/issues/116120