pwntester / octo.nvim

Edit and review GitHub issues and pull requests from the comfort of your favorite editor
MIT License
2.25k stars 124 forks source link

Hide virtual text on review panel #445

Open proivk opened 8 months ago

proivk commented 8 months ago

Discussed in https://github.com/pwntester/octo.nvim/discussions/438

Originally posted by **proivk** October 20, 2023 Hello community! Didn't find a way to hide virtual text (see picture) on a review panel. Is there any way to do this or suggest the best way to see what's behind it. Screenshot 2023-10-20 at 18 51 16

Would be nice to have functionality and hotkeys to hide/unhide virtual text in review panel. Otherwise it hides text need to be reviewed.

Eryx5502 commented 7 months ago

I'm facing the same issue. Any idea on how to avoid it would be appreciated!

pwntester commented 6 months ago

This is implemented in place_signs which gets called when loading the buffer here. You can add an additional mapping for the diff mapping that controls a flag to prevent placing the signs (or at least the VT). Mappings for the diff buffers are defined here. Cant work on this right now, but it should be an easy first PR if any of you have some time for this