nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.12k stars 105 forks source link

[BUG] Doing `gF` inside `neotest-output` floating window opens the file in same float #387

Open lawrence-laz opened 2 months ago

lawrence-laz commented 2 months ago

NeoVim Version NVIM v0.10.0-dev-35f475d

Describe the bug Neotest output usually contains useful messages regarding compilation errors, which usually include the exact file path, line and column numbers. Moving the cursor on such file path and pressing gF opens the file in that exact position. The problem is that doing this in a neotest-output floating window opens the file inside the floating window, which is inconvenient to edit.

To Reproduce

Steps to reproduce the behavior:

  1. Go to neotest-summary

  2. Run any test that contains a file path with line numbers and column in the output

  3. Open neotest-output for that test

    image
  4. Move cursor to the file path

  5. Press gF

  6. The file opens in a floating window

image

Expected behavior I would like the file to open in main window where other source files are edited, same as with pressing i (jumpto) in neotest-summary window.