antonmedv / walk

Terminal file manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preview mode trims off file content in view

iddev5 opened this issue · comments

commented

Best explained by this screenshot. It is the standard license file in a directory called ~/Projects/llama

Observed on master, only in preview mode. To replicate just do llama . and then

Terminal: GNOME Terminal
Go version: 1.20.1

llama

Llama tries to show as much content as possible in preview mode - trims path.

But why does it trims content in preview - it is strange.

Please share the file.

commented

It is llama's license file. I can show more examples in a bit. If you notice carefully not only it is trimming the content but also replacing the top part with something present at the bottom part of the license text.

Also I believed path trimming should have some better strategy, something like shortening it to single letters? ~/P/l

something like shortening it to single letters? ~/P/l

Will be cool to have. Will you send a pr?)

commented

Some more screenshots of the original issue (Couldn't find why its happening):
llama-2
llama-3

Fixed.