feat: API to change config.view.is_hidden_file at runtime (#69)
This commit is contained in:
parent
33d5701a8d
commit
12bea0f646
5 changed files with 53 additions and 6 deletions
15
README.md
15
README.md
|
|
@ -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` \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue