You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should add copy and paste key bindings as ctrl+c/v in the settings.json file so people can see them and have the option to remove them.
Additionally, there should be a comment in the file explaining that ctrl+shift+c/v are still shipped by default so they have a backup key binding if they choose to remove the above bindings.
Kayla Cinnamon (@cinnamon-msft) In Windows Terminal Version 1.7.1033.0 I don't have any keybindings in settings.json for copy and paste. Moreover, under Settings -> Actions, defaults are shown as copy being ctrl+insert, and paste being shift+insert.
I might have had an existing settings json without keybindings before installing the Windows Terminal.
From the bug reports here it is unclear to me what behavior is expected and what should the actual defaults for copy and paste be. I have the following questions:
Was WT supposed to update the existing settings.json to add keybindings for copy and paste or at least add commented out example?
Are copy and paste default bindings decided and if so what they are?
I am aware of the challanges with ctrl+c and ctrl+v and that we cannot please everyone, but as a longtime Windows cmd.exe user and occasional Linux user, I would prefer if a core Windows application such as WT (which is seemingly supposed to replace the old conhost?) provides default Windows experience out of the box with the ability to change it to something else.
Igor Levicki (@levicki) Would you mind filing a new issue to track your problem? This issue's over a year old, and specifically was used to track adding ctrl+c/ctrl+v to the default settings.json file back in 2020. If you're not seeing those keybindings, then it's likely that you're running into something entirely else. Screenshots of the settings UI, and your entire settings.json file would be appreciated as well. Thanks!
Mike Griese (@zadjii-msft) I asked here intentionally because description of this fix does not reflect reality.
It says:
Additionally, there should be a comment in the file explaining that ctrl+shift+c/v are still shipped by default...
My settings show different defaults when keybindings are empty.
All I wanted is to be pointed to some place where current behavior is documented so I can determine whether I am having a problem or not before eventually submitting an issue.
Igor Levicki (@levicki) so, this is one of those annoying things we chose to do to preserve our userbase's sanity.
We added the key bindings for people who first launch the terminal, or delete their settings, after 4/9/2020. It's part of the template settings file that is put on disk during startup if you don't already have settings.
If we had added them to the set of default key bindings in the application settings (the immutable ones), all the users who had installed and launched Terminal before 4/9/2020 would have suddenly lost ctrl+c/ctrl+v as verbatims.
We place a reasonably high value on not breaking existing users¹, so this was the compromise we came to.
¹ we have done this before, and it tastes bad. Especially considering the input service discussion 😄
Frankly, I was expecting from a Windows application that ctrl+c and ctrl+v are the built-in defaults for copy and paste even in the absence of keybindings in settings.json (of course with the ability to override them), but the graphical settings page is showing different defaults which also differ from the ones mentioned here. I sincerely doubt many Windows users know about and use those other key combos.
Activity
Update default settings.json experience (#5217)
levicki commentedon May 12, 2021
Kayla Cinnamon (@cinnamon-msft) In Windows Terminal Version 1.7.1033.0 I don't have any keybindings in settings.json for copy and paste. Moreover, under Settings -> Actions, defaults are shown as copy being
ctrl+insert, and paste beingshift+insert.I might have had an existing settings json without keybindings before installing the Windows Terminal.
From the bug reports here it is unclear to me what behavior is expected and what should the actual defaults for copy and paste be. I have the following questions:
zadjii-msft commentedon May 12, 2021
Igor Levicki (@levicki) Would you mind filing a new issue to track your problem? This issue's over a year old, and specifically was used to track adding ctrl+c/ctrl+v to the default
settings.jsonfile back in 2020. If you're not seeing those keybindings, then it's likely that you're running into something entirely else. Screenshots of the settings UI, and your entiresettings.jsonfile would be appreciated as well. Thanks!levicki commentedon May 12, 2021
Mike Griese (@zadjii-msft) I asked here intentionally because description of this fix does not reflect reality.
It says:
My settings show different defaults when keybindings are empty.
All I wanted is to be pointed to some place where current behavior is documented so I can determine whether I am having a problem or not before eventually submitting an issue.
DHowett commentedon May 12, 2021
Igor Levicki (@levicki) so, this is one of those annoying things we chose to do to preserve our userbase's sanity.
We added the key bindings for people who first launch the terminal, or delete their settings, after 4/9/2020. It's part of the template settings file that is put on disk during startup if you don't already have settings.
That template data is here-
terminal/src/cascadia/TerminalSettingsModel/userDefaults.json
Lines 60 to 64 in 8661dc5
If we had added them to the set of default key bindings in the application settings (the immutable ones), all the users who had installed and launched Terminal before 4/9/2020 would have suddenly lost ctrl+c/ctrl+v as verbatims.
We place a reasonably high value on not breaking existing users¹, so this was the compromise we came to.
¹ we have done this before, and it tastes bad. Especially considering the input service discussion 😄
levicki commentedon May 13, 2021
Dustin L. Howett (@DHowett) Thanks for clarifying that part and linking to the template.
Frankly, I was expecting from a Windows application that ctrl+c and ctrl+v are the built-in defaults for copy and paste even in the absence of keybindings in settings.json (of course with the ability to override them), but the graphical settings page is showing different defaults which also differ from the ones mentioned here. I sincerely doubt many Windows users know about and use those other key combos.
fix(windows-terminal): Ctrl+V をペーストに割り当てる