Is your feature request about something that is currently impossible or hard to do? Please describe the problem.
It is impossible to get an ID of the new window when WinNew
is triggered, <amatch>
expands to an empty string.
Describe the solution you'd like
Allow expanding <amatch>
to window-ID during WinNew
, similar to how WinClosed
works.
Describe alternatives you've considered
Iterating through all windows and sorting by window ID. The largest ID supposedly belongs the new window.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
You can get the Window ID with win_getid():
au WinNew * echomsg win_getid()
Is there a reason you cannot use that?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Closed #10633 as completed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Yes, win_getid()
works.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.