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

CTRL-N is not work inside terminal #782

Open
cowboysss opened this issue May 24, 2022 · 2 comments
Open

CTRL-N is not work inside terminal #782

cowboysss opened this issue May 24, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@cowboysss
Copy link

I'm a heavy user for VIM.
VIM has a shortcut CTRL-N to find next match for words that start with the keyword in front of the cursor, looking in places specified with the 'complete' option.
When I use ctrl-N in WindTerm,a session creation windown pop up,and CTRL-N seems not work inside terminal.

In this case, I think CTRL-N is a global shortcut to create new session.
So could you please give a solution to work at this case?
Thank you!

PS: I really like windterm because it fits my requirements perfectly.

WindTerm Version: 2.4.1 windowns 64-bit
Terminal: WSL2 Ubuntu20.04, not ssh terminal. Just wsl
VIM version: Verion 8.1 (Included patches: 1-2269)

@kingToolbox
Copy link
Owner

Welcome.

In a terminal, the shortcut keys are always easy to conflict with the shortcut keys of the server-side application. I have changed the default shortcut key Ctrl+N to Alt+N. And you can wait for the next prerelease version, or modify it yourself:

  • Open the file WindTerm_install_path/global/wind.keymaps
  • modify:
  { "keys": "<Ctrl+N>",
    "modes": "remote, widget",
    "when": "window.isScope('terminal.*')",
    "action": "Terminal.NewSession"
  },

to:

  { "keys": "<Alt+N>",
    "modes": "remote, widget",
    "when": "window.isScope('terminal.*')",
    "action": "Terminal.NewSession"
  },

@kingToolbox kingToolbox self-assigned this May 25, 2022
@kingToolbox kingToolbox added the enhancement New feature or request label May 25, 2022
@cowboysss
Copy link
Author

Thank you very much!
And it's really a nice design.

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

No branches or pull requests

2 participants