lunapaint / vscode-luna-paint

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

Rectangle tool should have quick key 'R', not 'O' #189

Closed mavaddat closed 1 year ago

mavaddat commented 1 year ago

Currently, the Luna Paint GUI indicates that Rectangle tool is assigned the O shortcut. However, the O is already reserved for the Shape tool and the letter R is for the Rectangle tool.

Screenshot of the toolbar showing the shortcut key for the rectangle tool

However, the O is already reserved for the Shape tool and the letter R is for the Rectangle tool.

I am using v0.16.0 of Luna Paint.

VS Code Insiders 1.80.0.

Tyriar commented 1 year ago

It's assigned to o by default to align with Paint.NET's keybinding which rotates through the shape/object tools. If you didn't know you can hit it twice to get rectangle and three times to get shape.

You can set up a custom keybinding for this with:

{ "key": "r", "command": "luna.tool.rectangle", "when": "luna:focused && !sideBarFocus && activeCustomEditorId == 'luna.editor' && focusedView == ''" }