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

Shortcuts converts #27

Closed
arcanis opened this issue Feb 21, 2021 · 2 comments
Closed

Shortcuts converts #27

arcanis opened this issue Feb 21, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@arcanis
Copy link

arcanis commented Feb 21, 2021

Really nice tool! As a workaround for #21 I'm currently reworking all the points (removing extraneous points, turning l into h when they are almost horizontal, etc), but it's a bit heavy on the fingers at the moment. Would you consider adding shortcuts to simplify this? For instance (picked U & I since they seem fairly safe for web applications, are next to each other, and I is a vertical line):

  • Ctrl-U: Convert to horizontal
  • Ctrl-I: Convert to vertical
  • Delete: Remove the selected point
@Yqnn Yqnn added the enhancement New feature or request label Feb 25, 2021
@Yqnn
Copy link
Owner

Yqnn commented Feb 28, 2021

Indeed that would be very useful.
I will implement the Deletefor sure.

For the command conversion, I'm wondering if it wouldn't be better to change the behaviour of the existing shortcuts.
Today pressing m inserts a relative move command, and pressing Shift-m inserts an absolute move command (same with l, h, v, c, etc.).
When creating a path, using relative command doesn't really make sense, as it's very hard to manipulate.
Instead we could use m to insert an absolute move command, and Shift-m would convert the selected command to a move command (same with l, h, v, c, etc.)

@Yqnn
Copy link
Owner

Yqnn commented Feb 28, 2021

Conversion and Delete shortcuts added.

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

2 participants