First time here? Check out the FAQ!
1

Alter shift-space setting

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.

qwerty_ww's avatar
234
qwerty_ww
asked 2021-06-07 10:59:00 -0600
Wingware Support's avatar
4.2k
Wingware Support
updated 2021-06-08 07:54:33 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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.

Wingware Support's avatar
4.2k
Wingware Support
answered 2021-06-07 11:42:17 -0600
edit flag offensive 0 remove flag delete link

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's avatar Wingware Support (2021-06-07 11:48:24 -0600) 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's avatar qwerty_ww (2021-06-07 11:54:05 -0600) 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's avatar qwerty_ww (2021-06-08 02:29:43 -0600) 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's avatar Wingware Support (2021-06-08 07:58:26 -0600) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer