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
I am evaluating wing persoanl7 on Linux Mint 20. I have found key bindings for enclosing {}, [], '', and "" but not (). Is there one?
Regards, Jim
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.
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.
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.
To enter a block of code:
Comments