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
First time here? Check out the FAQ!
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.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2020-10-05 21:17:08 -0500
Seen: 2,629 times
Last updated: Oct 06 '20
Tab-completion only available when entering the debug mode for some python packages.
Let the space keystroke invoking the drop-down completion window if possible.
Why don't get I get a dropbox with methods on QMainWindow?
How to automatically generate function comments
How to change line interval in Wing IDE?
The tool bar does not appear in ubuntu
Edit behaviour under mac OS X =, WING 6.1.2-1
Enclosing inner parens produces unwanted grab of outer parens