Skip to content

remove escape characters from the logs #831

@teto

Description

@teto

Please describe the problem you're trying to solve

hi,

as excited as the first time for yazi, clearly the best out there. So I decided for fun and convenience to try implementing a lua previewer for some files.
Of course it doesn't work so I tried looking at the logs to have more details:

  �[2m2024-02-18T22:48:47.999790Z�[0m �[31mERROR�[0m �[1;31myazi_scheduler::preload::preload�[0m�[31m: �[31mPreload task `mime` returned 2�[0m
    �[2;3mat�[0m yazi-scheduler/src/preload/preload.rs:42

  �[2m2024-02-20T13:43:47.320860Z�[0m �[31mERROR�[0m �[1;31myazi_scheduler::preload::preload�[0m�[31m: �[31mPreload task `pdf` returned 0�[0m
    �[2;3mat�[0m yazi-scheduler/src/preload/preload.rs:42

  �[2m2024-02-26T17:44:33.538746Z�[0m �[31mERROR�[0m �[1;31myazi_scheduler::preload::preload�[0m�[31m: �[31mPreload task `mime` returned 2�[0m
    �[2;3mat�[0m yazi-scheduler/src/preload/preload.rs:42

First of all I think yazi shouldn't use those escape charaters or is it intended ?
And I found no information about my plugins.
I tried yazi --debug with no more information.

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

Would be nice to list the plugins in the log at startup, or in --debug. Or even add subcommands like yazi plugin list or yazi config previewers

Additional context

version 0.2.4
No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions