-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the ability to display line mode on the left side of the pane. #1656
Comments
With #1667, you can achieve it by overwriting the -- ~/.config/yazi/init.lua
local current_render = Current.render
function Current:render()
local t = current_render(self)
if #t < 2 then
return t
end
local area, width = t[1]:area(), t[2]:max_width()
t[1] = t[1]:area(ui.Rect { x = area.x + width, y = area.y, w = math.max(0, area.w - width), h = area.h })
t[2] = t[2]:align(ui.Paragraph.LEFT)
return t
end Set Set Set |
It's possible, just a small change based on #1656 (comment) - t[2] = t[2]:align(ui.Paragraph.LEFT)
+ t[2] = t[2]:area(ui.Rect { x = area.x, y = area.y, w = math.min(width, area.w), h = area.h }) Yazi offers a rich layout API, allowing you to implement just about any functionality you want. Check out the layout API doc here: https://yazi-rs.github.io/docs/plugins/layout |
I'm going to lock this issue because it has been closed for 30 days. ⏳ |
yazi --debug
outputPlease describe the problem you're trying to solve
The current layout for displaying filenames with corresponding information on the opposite side of the pane may not be optimal on large, high res screens and tilling window managers.
Would you be willing to contribute this feature?
Describe the solution you'd like
The ability to display line mode to the left of the filename would make eye tracking much easier in the above cases.
Additional context
Validations
The text was updated successfully, but these errors were encountered: