feat: API to change config.view.is_hidden_file at runtime (#69)

This commit is contained in:
Steven Arcangeli 2023-03-12 12:48:59 -07:00
parent 33d5701a8d
commit 12bea0f646
5 changed files with 53 additions and 6 deletions

View file

@ -234,6 +234,21 @@ Change the display columns for oil
| ----- | ------------------ | ---- |
| cols | `oil.ColumnSpec[]` | |
### set_is_hidden_file(is_hidden_file)
`set_is_hidden_file(is_hidden_file)` \
Change how oil determines if the file is hidden
| Param | Type | Desc |
| -------------- | ----------------------------------------------------- | -------------------------------------------- |
| is_hidden_file | `fun(filename: string, bufnr: nil\|integer): boolean` | Return true if the file/dir should be hidden |
### toggle_hidden()
`toggle_hidden()` \
Toggle hidden files and directories
### get_current_dir()
`get_current_dir(): nil|string` \