wez / wezterm

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

iTerm2 "Smart selection" support #2603

Open themadsens opened 1 year ago

themadsens commented 1 year ago

First of all: a big thank you for all the hard work! I have been looking high and low for an iTerm2 replacement for Linux and WezTerm looks promising to even surpass it

Is your feature request related to a problem? Please describe. One iTerm2 feature I use all the time is quad-click "Smart selection" of paths etc. This is not quite posssible in WezTerm

Describe the solution you'd like This would be readily available if wezterm.action.SelectTextAtMouseCursor() took a pattern or boundary set (or a list of these) beside the predefined "Word" "Line" etc.

Describe alternatives you've considered The patterns for "Smart selection" can conveniently be configured with WezTerm "Quick Select Mode" but these can not be selected with the mouse. This would be an easy win no?

Additional context ITerm2 "Smart selection": https://iterm2.com/documentation-smart-selection.html

dsully commented 1 year ago

+1 - I'm missing this from Kitty, where a triple mouse click will select the line, but at the word boundaries. ie; Not including the white spaces at the beginning or end of a line.