Ask Your Question

What is the key binding for enclosing ()

asked 2020-10-05 21:17:08 -0500

agent_15x's avatar

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

Regards, Jim

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-10-06 08:17:05 -0500

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.

edit flag offensive delete link more



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

Your Answer

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

Add Answer

Question Tools



Asked: 2020-10-05 21:17:08 -0500

Seen: 2,629 times

Last updated: Oct 06 '20