feat: add toggle_float function (#94)

This commit is contained in:
Steven Arcangeli 2023-04-29 08:16:18 -07:00
parent 4738d08a5f
commit 82c706822b
3 changed files with 27 additions and 0 deletions

View file

@ -321,6 +321,15 @@ Open oil browser in a floating window
| ----- | ------------- | ------------------------------------------------------------------------------------------- |
| dir | `nil\|string` | When nil, open the parent of the current buffer, or the cwd if current buffer is not a file |
### toggle_float(dir)
`toggle_float(dir)` \
Open oil browser in a floating window, or close it if open
| Param | Type | Desc |
| ----- | ------------- | ------------------------------------------------------------------------------------------- |
| dir | `nil\|string` | When nil, open the parent of the current buffer, or the cwd if current buffer is not a file |
### open(dir)
`open(dir)` \