Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Multi-window hop commands do not appear to work when a terminal buffer has focus. #332

Open
samjwill opened this issue Oct 13, 2022 · 2 comments

Comments

@samjwill
Copy link

samjwill commented Oct 13, 2022

Apologies if there's some unique quirk on my machine that is causing this, or if I've missed something.

Platform/Version:

  • Ubuntu 22.04
  • Neovim v0.8.0-1210-gd367ed9b2
  • LuaJIT 2.1.0-beta3

The issue:

  • Multiple window hops (denoted by commands ending in MW) do not appear to behave as expected when terminal buffers have focus in normal mode.

To reproduce:

  • Install hop.nvim.
  • Open some populated file in a buffer.
  • Split the buffer.
  • Open a terminal buffer in one of the splits with :ter. You should now have a visible window with a terminal one one side, and a visible window with some file's contents on the other.
  • Ensure the terminal buffer is in normal mode (<C-\><C-n>)
  • Enter a hop command ending in MW, (e.g. :HopWordMW)

Expected behavior:

  • All visible buffers are highlighted and can be jumped to with a key sequence. (Something similar to this screenshot).

image

Actual behavior:

  • Only the buffer under the cursor receives highlighting and can be jumped to with a key sequence. No other visible windows can be jumped to, despite a MW command being entered.

image

Any help on this would be great. Thanks!

@samjwill samjwill changed the title Multiple window hops do not appear to work in terminal buffers. Multiple window hop commands do not appear to work in terminal buffers. Oct 13, 2022
@samjwill samjwill changed the title Multiple window hop commands do not appear to work in terminal buffers. Multi-window hop commands do not appear to work in terminal buffers. Oct 13, 2022
@samjwill samjwill changed the title Multi-window hop commands do not appear to work in terminal buffers. Multi-window hop commands do not appear to work when terminal buffer has focus. Oct 13, 2022
@samjwill samjwill changed the title Multi-window hop commands do not appear to work when terminal buffer has focus. Multi-window hop commands do not appear to work when a terminal buffer has focus. Oct 14, 2022
@back2childhood
Copy link

I have the same question, do u have any idea now?
I even find my lspsaga rename can't change other the variable name in other file, I guess maybe it is the same question.

@back2childhood
Copy link

I remember it working normally at beginning, but suddenly it doesn't work.

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

No branches or pull requests

2 participants