Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the shortcut for copy view (copy current session)? #770

Closed
galam-lee opened this issue May 18, 2022 · 2 comments
Closed

How to set the shortcut for copy view (copy current session)? #770

galam-lee opened this issue May 18, 2022 · 2 comments

Comments

@galam-lee
Copy link

WindTerm experience is very good, but there is a shortcut that can't be set, how to set the shortcut for copy view (copy current session)?

@kingToolbox
Copy link
Owner

In WindTerm, you can customize the shortcut keys for any menu item. Please follow the steps below:

  • Open the file WindTerm_install_path/global/king.actions and find the corresponding action Window.DuplicateView according to the text Duplicate View in the menu.
  • Open the file WindTerm_install_path/global/king.keymaps and add a configuration item:
 { "keys": "<Ctrl+Shift+D>",
    "modes": "local, remote",
    "when": "window.isScope('terminal.*')",
    "action": "Window.DuplicateView"
  },

You can use any key you like instead of Ctrl+Shift+D.

  • Restart to take effect.

Please read this comment to learn more, thank you.

BTW:
This shortcut key Ctrl+Shift+D has been officially bound to Window.DuplicateView and will be released in WindTerm_2.5.0_Prerelease_2.

@galam-lee
Copy link
Author

In WindTerm, you can customize the shortcut keys for any menu item. Please follow the steps below:

  • Open the file WindTerm_install_path/global/king.actions and find the corresponding action Window.DuplicateView according to the text Duplicate View in the menu.
  • Open the file WindTerm_install_path/global/king.keymaps and add a configuration item:
 { "keys": "<Ctrl+Shift+D>",
    "modes": "local, remote",
    "when": "window.isScope('terminal.*')",
    "action": "Window.DuplicateView"
  },

You can use any key you like instead of Ctrl+Shift+D.

  • Restart to take effect.

Please read this comment to learn more, thank you.

BTW: This shortcut key Ctrl+Shift+D has been officially bound to Window.DuplicateView and will be released in WindTerm_2.5.0_Prerelease_2.

Thank you for your reply, I don't immediately check your message. Follow your steps, I found the wind.actions and wind.keymaps in WindTerm_install_path/global directory instead of king.actions and king.keymaps. But eventually I was able to modify it and apply my settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants