wez / wezterm

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

Search does not search new text #1205

Closed shaozi closed 3 years ago

shaozi commented 3 years ago

What Operating System(s) are you seeing this problem on?

macOS

WezTerm version

20211004-231321-49d77138

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

When searching, it does not search new appeared text in the terminal until you change the search phrase.

To Reproduce

Use this shell script to continuously generate text:

while true
  do
    echo aaabbbccc
    sleep 1
  done

When the text is generating, search for aaabbbccc. After you stop typing in the search field, it stops searching. New appeared text is not searched and highlighted.

Configuration

local wezterm = require 'wezterm';
return {
  font_size = 15,
  -- use_ime = true,
  enable_scroll_bar = true,
  window_padding = {
    left = 2,
    -- This will become the scrollbar width if you have enabled the scrollbar!
    right = 8,
    top = 4,
    bottom = 0,
  },
  color = {
    scrollbar_thumb = "white",
  },
  inactive_pane_hsb = {
    saturation = 0.9,
    brightness = 0.8,
  },
  launch_menu = {
    {
      label = "Bash",
      args = {"bash", "-l"},
    },
  },

  keys = {
    {
     key = "d", mods="CMD",
     action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}
    },
    {
     key = "D", mods="CMD",
     action=wezterm.action{SplitVertical={domain="CurrentPaneDomain"}}
    },
    {
     key="w", mods="CMD",
     action=wezterm.action{CloseCurrentPane={confirm=true}}
    }
  }
}

Expected Behavior

search should update search counter and highlight new found phrase when terminal text are updated.

Logs

No response

Anything else?

No response

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.