Replies: 4 comments 1 reply
-
|
I'm not the one who writes the |
Beta Was this translation helpful? Give feedback.
-
|
@kiryph would you be able to comment on for |
Beta Was this translation helpful? Give feedback.
-
|
@jer-myjohn The range from 111-148 creates svg code which should be platform-independent. Line number 150 uses Hammerspoon (macOS tool) to fill a system pasteboard (like Cmd-C) with the svg code. Finally, line number 152 invokes pasting like you would have pressed Cmd-v (also using Hammerspoon).
Hammerspoon and Karabiner Elements are mac-only apps and I do not have any experience on scripting/automation on Windows. I actually have converted this from G. Castell https://github.com/gillescastel/inkscape-shortcut-manager written in Python for Linux to Lua for macOS (as you probably knew). Maybe the original Python code is clearer to you https://github.com/gillescastel/inkscape-shortcut-manager/blob/master/normal.py#L109-L214 But the crucial bits are platform dependent and you have to find a Windows expert who knows how to adapt this.
because I am not really a Lua expert and Lua is a smaller Language compared to Python. Python has a builtin intersection operation which afaik Lua does not have if {'s', 'a', 'd', 'g', 'h', 'x', 'e'} & combination:If you know better solutions in Lua feel free to suggest. I am happy to improve my Lua skills. |
Beta Was this translation helpful? Give feedback.
-
|
@sleepymalc & @kiryph |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been using this repo as a guide for adapting this for my needs in Windows, and I've been able to achieve a pretty similar result with the exception of the shortcut manager (Thank you Peterson for super-figure!) I think I can do the same thing as Karabiner-Elements and Hammerspoon using AutoHotKeys, but Windows does not have a pasteboard so I'm not sure how I could change the style (or what I would write the changes made with the shortcuts to). It would also help me greatly if you could explain what/why
intersectorhas_valueis needed. A general rundown of how the manager works would be helpful too.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions