Skip to content

Commit

Permalink
docs: add clearer instructions for reading yazi.nvim logs (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas authored Jul 13, 2024
1 parent c706fee commit 9981b78
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ You can optionally configure yazi.nvim by setting any of the options below.

-- the log level to use. Off by default, but can be used to diagnose
-- issues. You can find the location of the log file by running
-- `:checkhealth yazi` in Neovim.
-- `:checkhealth yazi` in Neovim. Also check out the "reproducing issues"
-- section below
log_level = vim.log.levels.OFF,

-- what Neovim should do a when a file was opened (selected) in yazi.
Expand Down Expand Up @@ -218,3 +219,7 @@ I like.
## Contributing

Please see [COMMUNITY.md](./COMMUNITY.md) for more information on the project!

## In case there are issues

See [reproducing-issues.md](./documentation/reproducing-issues.md).
20 changes: 20 additions & 0 deletions documentation/reproducing-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,23 @@ provide a fix. To help us diagnose the issue, please follow these steps:
similar to your configuration until you can reproduce it.
4. when reporting the issue, attach the contents of your `repro.lua` file to the
issue report.

## Logging

You can find out a lot of details about what is going on in yazi.nvim by reading
the log file. To find the log file, execute

```vim
:checkhealth yazi
```

It will show where your log file is. It's recommended to "tail" the log file to
see any new messages as soon as they arrive:

```sh
tail -F /path/to/logfile
```

If you want to get fancy, you can use the command line program
[bat's custom tailing](https://github.com/sharkdp/bat?tab=readme-ov-file#tail--f)
instructions to get colored output.

0 comments on commit 9981b78

Please sign in to comment.