Replies: 3 comments 1 reply
-
what is the answer to this question? this ought to be straightforward to answer. |
Beta Was this translation helpful? Give feedback.
1 reply
-
when i look at the docs, it seems to give the total length of the line, not just the preview area. I want yo get the width, in characters, of the preview area only. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I don't think so. According to the docs, this seems to be the line width. Somehow you have to get the 3rd element of the horizontal layout and then get the width of that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What system are you running Yazi on?
Linux X11
What terminal are you running Yazi in?
wezterm
yazi --debug
outputtmux in wezterm on latest nightly and released 3.3
Describe the bug
I've tried a couple of the markdown previewers and none seem to pass the correct width value to the app they invoke for previews. They all seem to use self.area.w but is that the correct way to get the width of the preview pane? If not can you add something to the doc or an example?
Minimal reproducer
install the glow plugin for previewing markdown
Anything else?
No response
Validations
yazi --debug
) input box to the nightly that I triedmv ~/.config/yazi ~/.config/yazi-backup
)Beta Was this translation helpful? Give feedback.
All reactions