antonmedv / walk

Terminal file manager
MIT License
3.22k stars 89 forks source link

Preview mode trims off file content in view #78

Closed iddev5 closed 1 year ago

iddev5 commented 1 year ago

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

antonmedv commented 1 year ago

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.

iddev5 commented 1 year ago

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

antonmedv commented 1 year ago

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

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

iddev5 commented 1 year ago

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

antonmedv commented 1 year ago

Fixed.