Closed ragu-manjegowda closed 1 year ago
Thanks for reporting, I'll look into this soon!
Sorry for taking so long on this - to be clear, you want the window number of the terminal to be passed as well? I'm a bit unclear on the use case here as I don't really use tabs.
you want the window number of the terminal to be passed as well
If you can provide that why not? However, what I was looking for is window number of the newly opened file.
Lets say I have a tab with file A
currently focused and I try to open file B
in new tab from floating terminal, in post_open hook I would like to see the window number of the tab with file B
.
It turns out this was what we were supposed to be doing the whole time, and this was definitely a bug. That's why I was initially confused. Will be fixed shortly.
Describe the bug If we want to do something in the call back that moves the focus to different tab, it is not possible to shift the focus back to newly opened tab.
To Reproduce Steps to reproduce the behavior:
config
-- Setup toggle terminal
-- Hide the terminal before jumping to new tab so that it opens in current tab next time.
With toggle terminal (fterm)
Open a file
Expected behavior Focus should be on newly opened file
Screenshots n/a
Desktop (please complete the following information):
Additional context It helps users to provide both current and new win/buf numbers to customize based on the use case. Let me know if you need more information or context.