[docgen] Update docs

skip-checks: true
This commit is contained in:
Github Actions 2023-06-25 06:30:09 +00:00
parent 61f8655e03
commit db60c32d93
3 changed files with 18 additions and 15 deletions

View file

@ -278,7 +278,7 @@ Note that at the moment the ssh adapter does not support Windows machines, and i
- [toggle_float(dir)](doc/api.md#toggle_floatdir) - [toggle_float(dir)](doc/api.md#toggle_floatdir)
- [open(dir)](doc/api.md#opendir) - [open(dir)](doc/api.md#opendir)
- [close()](doc/api.md#close) - [close()](doc/api.md#close)
- [select(opts)](doc/api.md#selectopts) - [select(opts, callback)](doc/api.md#selectopts-callback)
- [save(opts)](doc/api.md#saveopts) - [save(opts)](doc/api.md#saveopts)
- [setup(opts)](doc/api.md#setupopts) - [setup(opts)](doc/api.md#setupopts)

View file

@ -13,7 +13,7 @@
- [toggle_float(dir)](#toggle_floatdir) - [toggle_float(dir)](#toggle_floatdir)
- [open(dir)](#opendir) - [open(dir)](#opendir)
- [close()](#close) - [close()](#close)
- [select(opts)](#selectopts) - [select(opts, callback)](#selectopts-callback)
- [save(opts)](#saveopts) - [save(opts)](#saveopts)
- [setup(opts)](#setupopts) - [setup(opts)](#setupopts)
@ -106,13 +106,13 @@ Open oil browser for a directory
Restore the buffer that was present when oil was opened Restore the buffer that was present when oil was opened
## select(opts) ## select(opts, callback)
`select(opts)` \ `select(opts, callback)` \
Select the entry under the cursor Select the entry under the cursor
| Param | Type | Desc | | | Param | Type | Desc | |
| ----- | ------------ | -------------------------------------------------- | ---------------------------------------------------- | | -------- | ---------------------------- | -------------------------------------------------- | ---------------------------------------------------- |
| opts | `nil\|table` | | | | opts | `nil\|table` | | |
| | vertical | `boolean` | Open the buffer in a vertical split | | | vertical | `boolean` | Open the buffer in a vertical split |
| | horizontal | `boolean` | Open the buffer in a horizontal split | | | horizontal | `boolean` | Open the buffer in a horizontal split |
@ -120,6 +120,7 @@ Select the entry under the cursor
| | preview | `boolean` | Open the buffer in a preview window | | | preview | `boolean` | Open the buffer in a preview window |
| | tab | `boolean` | Open the buffer in a new tab | | | tab | `boolean` | Open the buffer in a new tab |
| | close | `boolean` | Close the original oil buffer once selection is made | | | close | `boolean` | Close the original oil buffer once selection is made |
| callback | `nil\|fun(err: nil\|string)` | Called once all entries have been opened | |
## save(opts) ## save(opts)

View file

@ -200,7 +200,7 @@ close() *oil.clos
Restore the buffer that was present when oil was opened Restore the buffer that was present when oil was opened
select({opts}) *oil.select* select({opts}, {callback}) *oil.select*
Select the entry under the cursor Select the entry under the cursor
Parameters: Parameters:
@ -213,6 +213,8 @@ select({opts}) *oil.selec
{tab} `boolean` Open the buffer in a new tab {tab} `boolean` Open the buffer in a new tab
{close} `boolean` Close the original oil buffer once selection is {close} `boolean` Close the original oil buffer once selection is
made made
{callback} `nil|fun(err: nil|string)` Called once all entries have been
opened
save({opts}) *oil.save* save({opts}) *oil.save*
Save all changes Save all changes