This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- most of the heavy lifting provided by https://gist.github.com/gsuuon/5511f0aa10c10c6cbd762e0b3e596b71 | |
-- here is my only adaptation to add the active pane emoji to the tab bar: | |
local function tab_title(tab_info) | |
local title = tab_info.tab_title | |
local icon = tab_info.active_pane.user_vars.ICON | |
if icon then | |
return icon .. ' ' .. tab_info.active_pane.title:gsub("%.exe", "") | |
else | |
return tab_info.active_pane.title:gsub("%.exe", "") |