wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
18.05k stars 807 forks source link

Support macOS keyboard shortcuts in search mode #6420

Open nauxliu opened 5 days ago

nauxliu commented 5 days ago

Is your feature request related to a problem? Please describe.

In WezTerm's search mode, the standard macOS keyboard shortcuts (Control-A, Control-E, etc.) are not supported. These shortcuts are deeply ingrained in macOS users' muscle memory and are supported by almost all text input fields across the system. The lack of support in WezTerm's search mode disrupts the user experience and workflow for macOS users.

The specific shortcuts that should work but currently don't include:

Describe the solution you'd like

Add support for standard macOS text navigation shortcuts in WezTerm's search mode. While WezTerm does support custom key assignments in search mode, these specific shortcuts should work out of the box on macOS, similar to how they work in Terminal.app and other macOS applications.

The implementation should respect the platform-specific expectations, making these shortcuts work naturally for macOS users while maintaining the ability to customize them if needed.

Describe alternatives you've considered

I've looked into using custom search mode key assignments through WezTerm's configuration, but it appears this approach doesn't fully support replicating these shortcuts. If I'm mistaken about this limitation, please let me know.

Additional context

These shortcuts are part of the macOS text system and are supported system-wide, from simple text inputs to complex editors. https://support.apple.com/en-us/102650