Ask Your Question
1

Alter shift-space setting

asked 2021-06-07 10:59:00 -0500

qwerty_ww gravatar image

updated 2021-06-08 07:54:33 -0500

I wonder where I could alter the setting for shift-space which in debug mode shows current stack data as overlay. Though this is a nice feature I always get in conflict when typing corrections during a debug session. Either I'd turn it off or assign it to an F-key.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-06-07 11:42:17 -0500

It's possible to change this but currently the only clean way to also unbind the key release event is to edit the keymap.basic file in your Wing installation (rather than using the User Interface > Keyboard > Custom Key Bindings preference) and change the last two lines. For example, I changed those lines to the following as a test and it worked for me:

'Shift-Ctrl-I': 'debug-show-value-tips(release_toggle=True)', 'send-keys(keys=" ")' 'Release-Shift-Ctrl-I': 'debug-hide-value-tips'

However, on macOS you also need to comment out those lines in the keymap.osx file or uncheck the User Interface > Keyboard > Fallback to MacOS Key Bindings preference.

This is a bit obscure and I'll see if we can improve this in the future as part of reworking how key bindings are customized.

edit flag offensive delete link more

Comments

They are in the WingPro.app installation directory, inside Contents/Resources. You can either go into there using the command line or right-click on WingPro.app and select Show Package Contents.

Wingware Support gravatar image Wingware Support  ( 2021-06-07 11:48:24 -0500 )edit

So for the records: On the Mac its under /Applications/WingPro.app/Contents/Resources/keymap.basic and for (my) Windoze it's C:\Program Files (x86)\Wing Pro 7.0

qwerty_ww gravatar image qwerty_ww  ( 2021-06-07 11:54:05 -0500 )edit

Ah, not to forget: I find editing such config files more handy than fiddling with any GUI trying to help me editing. Maybe just put those files in the user area (application support or appdata) rather than having them in the (locked) program area.

qwerty_ww gravatar image qwerty_ww  ( 2021-06-08 02:29:43 -0500 )edit

Yes, I think our new system for this would maintain a user-editable file in the user settings area, but also make it easier to set a key binding from the UI for those that prefer that. We also hope to make it easier to find commands to bind to w/ better integrated docs, etc. Thanks for the feedback!

Wingware Support gravatar image Wingware Support  ( 2021-06-08 07:58:26 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2021-06-07 10:59:00 -0500

Seen: 111 times

Last updated: Jun 07