doc: improve documentation for set_sort (#401)
This commit is contained in:
parent
15e071f203
commit
d3a365c950
3 changed files with 17 additions and 5 deletions
11
doc/api.md
11
doc/api.md
|
|
@ -59,9 +59,14 @@ Change the display columns for oil
|
|||
`set_sort(sort)` \
|
||||
Change the sort order for oil
|
||||
|
||||
| Param | Type | Desc |
|
||||
| ----- | ---------- | ---- |
|
||||
| sort | `string[]` | [] |
|
||||
| Param | Type | Desc |
|
||||
| ----- | ---------------- | ------------------------------------------------------------------------------------- |
|
||||
| sort | `oil.SortSpec[]` | List of columns plus direction. See :help oil-columns to see which ones are sortable. |
|
||||
|
||||
**Examples:**
|
||||
```lua
|
||||
require("oil").set_sort({ { "type", "asc" }, { "size", "desc" } })
|
||||
```
|
||||
|
||||
## set_is_hidden_file(is_hidden_file)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue