[Plugin] Shortcutter Beta
-
Yes, the script must be encoded as UTF-8-without-BOM to be fully compatible with all versions of SketchUp - I was surprised it hadn't broken v2.14 Ruby2...
Try this
myscuts = Sketchup.get_shortcuts.sort.join("\\n").gsub(/#{'⌃'}/, 'Ctrl').gsub(/#{'⌥'}/, 'Alt').gsub(/#{'⇧'}/, 'Shift')
Should perhaps work for MACs ?
It is something like I am going to test with Gábor tomorrow...BUT... do you have any idea why on my MAC
Sketchup.get_shortcuts
returns[]
- so thatmyscuts == ""
- unless I have used one shortcut before that, then it works ? -
The main problem is that in case of Mac we do not have the menu name at the beginning of each action, so the Javascript and maybe also the HTML has to be prepared first to handle this situation. The javascript populates the paragraphs based on the menuname what is missing in case of MAC. More tomorrow.
-
@tig said:
BUT... do you have any idea why on my MAC
Sketchup.get_shortcuts
returns[]
- so thatmyscuts == ""
- unless I have used one shortcut before that, then it works ?on my mac it works from the off...
...and, I do have a 'hunch',
I may depend on some of your startup 'Preferences'...
I think SU is using these
send_actions
internally for those as well and 'that' triggers the plist read...try enabling 'Auto activate paint tool' and see if they appear...
I can't get it to revert to 'not' showing...
-
@gábor said:
The main problem is that in case of Mac we do not have the menu name at the beginning of each action, so the Javascript and maybe also the HTML has to be prepared first to handle this situation. The javascript populates the paragraphs based on the menuname what is missing in case of MAC. More tomorrow.
We'll Skype on Monday morning [UK time] -
Version 0.2.0 is out now in the pluginstore. It addresses the MAC issue. MAC users, please test.
-
getting there...
-
@driven said:
getting there...
Thanks for the tests and advices. Now my only concern is: How does that
^Opt
got there and what does it mean? Any clue? -
ruby returns this
"⌃⌥⇧T\tviewTop:"
on a mac
⌘ . . . . . ⌘ . . . Command, Cmd, Clover, (formerly) Apple
⌃ . . . . . ⌃ . . . Control, Ctl, Ctrl
⌥ . . . . . ⌥ . . . Option, Opt, (Windows) Alt
⇧ . . . . . ⇧ . . . Shift -
Doh!
My fault...
Muddled up the modifier key coding...Preparing v0.3.0 which will fix the missing Ctrl !
Gábor - you'll need to redo the symbol mapping for Ctl/Opt/Cmd and Ashift ...
Update should be ready tomorrow...
-
OK, we will deal with it tomorrow. Now I have other stufff to complete. Sorry.
-
far more worrying...
I edited my Preferences to remove that one, as it didn't work anyway
[you can't even add them with more than one modifier anymore]after a restart, I'm back to a unfilled dialog...
removed and re-downloaded... still blank
are you modifying live?
EDIT: got them back...
it seems after removing a shortcut, the.get_shortcut
returns[]
[TIG's issue...]
you have to make a new one and use it, before SU reports it and all the others...
very odd -
It would be great to be able to edit the shortcuts right inside SU.
-
@jiminy-billy-bob said:
It would be great to be able to edit the shortcuts right inside SU.
It's among the plans for further dev.
-
Yes once we get it working acceptably on PC & MAC [coming soon
], then we plan to look at editing and 'syncing' of your shortcuts across your Computers/SketchUpVersions... but that's in the future...
-
Version 0.3.0 is in the pluginstore now. The new version addressed several MAC related issues found in 0.2.0. Please test. Especially MAC users.
-
Version 0.3.1 is in the PluginStore.
It address a known problem with MACs - where the native methodSketchup.get_shortcuts
erroneously returns[]
if you have not used a shortcut during that SketchUp session.
To prevent empty list getting made theShortcuts.plist
is now read in directly and the dialog is compiled using that data...Can you all please install this update in case it has broken something else - it has already been tested on various SketchUp versions, and on PC and MAC - but you never know...
-
So let's see some shortcuter file sharing...
-
Hi guys!
Any news on the ability to transfer shortcuts from windows to mac?
It would be very handy...
Thanks and best regards,
JQL
-
Working hard at v3 and under the hood stuff.
-
Thanks for the update Rich!
Advertisement