[docgen] Update docs
skip-checks: true
This commit is contained in:
parent
dfb09e87bf
commit
64dbcaa91d
2 changed files with 14 additions and 9 deletions
19
doc/api.md
19
doc/api.md
|
|
@ -159,15 +159,16 @@ Preview the entry under the cursor in a split
|
||||||
`select(opts, callback)` \
|
`select(opts, callback)` \
|
||||||
Select the entry under the cursor
|
Select the entry under the cursor
|
||||||
|
|
||||||
| Param | Type | Desc |
|
| Param | Type | Desc |
|
||||||
| ----------- | ------------------------------------------------------- | ---------------------------------------------------- |
|
| ----------------------- | ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| opts | `nil\|oil.SelectOpts` | |
|
| opts | `nil\|oil.SelectOpts` | |
|
||||||
| >vertical | `nil\|boolean` | Open the buffer in a vertical split |
|
| >vertical | `nil\|boolean` | Open the buffer in a vertical split |
|
||||||
| >horizontal | `nil\|boolean` | Open the buffer in a horizontal split |
|
| >horizontal | `nil\|boolean` | Open the buffer in a horizontal split |
|
||||||
| >split | `nil\|"aboveleft"\|"belowright"\|"topleft"\|"botright"` | Split modifier |
|
| >split | `nil\|"aboveleft"\|"belowright"\|"topleft"\|"botright"` | Split modifier |
|
||||||
| >tab | `nil\|boolean` | Open the buffer in a new tab |
|
| >tab | `nil\|boolean` | Open the buffer in a new tab |
|
||||||
| >close | `nil\|boolean` | Close the original oil buffer once selection is made |
|
| >close | `nil\|boolean` | Close the original oil buffer once selection is made |
|
||||||
| callback | `nil\|fun(err: nil\|string)` | Called once all entries have been opened |
|
| >handle_buffer_callback | `nil\|fun(buf_id: integer)` | If defined, all other buffer related options here would be ignored. This callback allows you to take over the process of opening the buffer yourself. |
|
||||||
|
| callback | `nil\|fun(err: nil\|string)` | Called once all entries have been opened |
|
||||||
|
|
||||||
## save(opts, cb)
|
## save(opts, cb)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -373,6 +373,10 @@ select({opts}, {callback}) *oil.selec
|
||||||
{tab} `nil|boolean` Open the buffer in a new tab
|
{tab} `nil|boolean` Open the buffer in a new tab
|
||||||
{close} `nil|boolean` Close the original oil buffer once
|
{close} `nil|boolean` Close the original oil buffer once
|
||||||
selection is made
|
selection is made
|
||||||
|
{handle_buffer_callback} `nil|fun(buf_id: integer)` If defined, all
|
||||||
|
other buffer related options here would be ignored. This
|
||||||
|
callback allows you to take over the process of opening
|
||||||
|
the buffer yourself.
|
||||||
{callback} `nil|fun(err: nil|string)` Called once all entries have been
|
{callback} `nil|fun(err: nil|string)` Called once all entries have been
|
||||||
opened
|
opened
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue