Skip to content

How to hide terminal title bar #1996

Answered by AnirudhG07
domi413 asked this question in 1. Q&A
Discussion options

You must be logged in to vote

Here you go. (inspiration is no-status.yazi).
This is no-header.yazi plugin you can add, with init.lua being -

local function setup()
	local old_layout = Tab.layout

	-- TODO: remove this check once v0.4 is released
	if Header.redraw then
		Header.redraw = function()
			return {}
		end
	else
		Header.render = function()
			return {}
		end
	end

	Tab.layout = function(self, ...)
		self._area = ui.Rect({ x = self._area.x, y = self._area.y - 1, w = self._area.w, h = self._area.h + 1 })
		return old_layout(self, ...)
	end
end

return { setup = setup }

And then add this to yazi's init.lua -

require("no-header"):setup()

It will look like this -

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@domi413
Comment options

@AnirudhG07
Comment options

Answer selected by domi413
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants