Replies: 2 comments 2 replies
-
edit: update code to Yazi 0.3 This is not exactly what you are asking for, but I created a custom plugin for myself for cases like this. It will hide the first column and resize the other two: Here's how you can achieve it:
local function entry(st)
if st.old then
Tab.layout, st.old = st.old, nil
else
st.old = Tab.layout
Tab.layout = function(self)
self._chunks = ui.Layout()
:direction(ui.Layout.HORIZONTAL)
:constraints({
ui.Constraint.Percentage(0),
ui.Constraint.Percentage(25),
ui.Constraint.Percentage(75),
})
:split(self._area)
end
end
ya.app_emit("resize", {})
end
return { entry = entry }
That's it. You can further modify the columns ratio by changing the
The inspiration for this came from the |
Beta Was this translation helpful? Give feedback.
-
Maybe you could also try setting |
Beta Was this translation helpful? Give feedback.
-
First, thank you for great app.
I am thinking, it would be great if I can change layout a bit if I need to. I am using tiling WM and sometime need to explore files in one of terminal window, which may accommodate 1/4 of the screen area. While yazi resource-wise is small enough not to think twice to fire it up as other tools from standard unix toolbox, it's standard 3 columns use of screen area in certain circumstances is far from optimum. If, say, left two columns can form a stack, placing section with lower dir content below the section with content of parent dir?
Beta Was this translation helpful? Give feedback.
All reactions