a better way to realize neoterm ID
Closed this issue · 1 comments
Since multiple terminal management is a critical feature for neoterm, I would suggest to make neoterm-ID easier to be realized. I learned that currently neoterm will set b:term-title to reflect the id but this solution is not ideal.
Firstly, there are many things can change b:term-title, just simple example, zsh will change title based on current running process, and some zsh prompt theme will change title to the current working directory.
Secondly, Vim status line doesn't alway show the value of b:term-title, for instance, airline doesn't show this value by default.
I like to quickly send buffer content to a specific REPL by command 1T or 2T etc, this is very elegant implementation, given that we can easily spot the right ID of each terminal.
Hi, Thanks for your suggestion.
Actually, the id is determined by b:neoterm_id
for the reasons described above. The b:neoterm_title
just uses the id
on it, but it's not the id
source.