First time here? Check out the FAQ!
1

What is the key binding for enclosing ()

I am evaluating wing persoanl7 on Linux Mint 20. I have found key bindings for enclosing {}, [], '', and "" but not (). Is there one?

Regards, Jim

agent_15x's avatar
13
agent_15x
asked 2020-10-05 21:17:08 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

It's Ctrl-( but it looks like some keyboard personalities override that, including the default Wing settings. You could add your own key binding with the User Interface > Keyboard > Custom Key Bindings preference. When doing so, press the key binding you want in the Key field and use the following for the Command:

enclose(start="(", end=")")

Actually, the default for start/end is () so it can just be 'enclose'. This preference overrides any existing bindings for the key combo you select.

All the default enclose bindings are in the keymap.basic file in the Wing installation:

'Ctrl-Parenleft': 'enclose(start="(", end=")")'
'Ctrl-Bracketleft': 'enclose(start="[", end="]")'
'Ctrl-Braceleft': 'enclose(start="{", end="}")'
'Ctrl-Apostrophe': 'enclose(start="\'", end="\'")'
'Ctrl-Quotedbl': "enclose(start='\"', end='\"')"
'Ctrl-Less': 'enclose(start="<", end=">")'

The other keymap.* files there define the key bindings for specific keyboard personalities, according to name and may override these.

Wingware Support's avatar
4.1k
Wingware Support
answered 2020-10-06 08:17:05 -0500
edit flag offensive 0 remove flag delete link

Comments

1

Thanks for the quick response. I searched the keymap.basic file and was surprised to see that Ctrl-9 was not used. Setting it to enclose () works great. One more thing. Maybe I messed up but I thought I had set my account to send an email when a question of my had activity. I didn't receive an email which accounts for my delay in checking your answer as a solution.

agent_15x's avatar agent_15x (2020-10-07 11:53:35 -0500) edit

As far as I can tell, you should have received notice but I also don't see the above answer under the Notifications tab for your account so I think something malfunctioned. We'll try to look into that. Thanks for letting us know.

Wingware Support's avatar Wingware Support (2020-10-07 12:11:01 -0500) 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