diff --git a/doc/api.md b/doc/api.md index 0bf6de1..8d9d87a 100644 --- a/doc/api.md +++ b/doc/api.md @@ -111,14 +111,15 @@ Restore the buffer that was present when oil was opened `select(opts)` \ Select the entry under the cursor -| Param | Type | Desc | | -| ----- | ------------ | -------------------------------------------------- | ------------------------------------- | -| opts | `nil\|table` | | | -| | vertical | `boolean` | Open the buffer in a vertical split | -| | horizontal | `boolean` | Open the buffer in a horizontal split | -| | split | `"aboveleft"\|"belowright"\|"topleft"\|"botright"` | Split modifier | -| | preview | `boolean` | Open the buffer in a preview window | -| | tab | `boolean` | Open the buffer in a new tab | +| Param | Type | Desc | | +| ----- | ------------ | -------------------------------------------------- | ---------------------------------------------------- | +| opts | `nil\|table` | | | +| | vertical | `boolean` | Open the buffer in a vertical split | +| | horizontal | `boolean` | Open the buffer in a horizontal split | +| | split | `"aboveleft"\|"belowright"\|"topleft"\|"botright"` | Split modifier | +| | preview | `boolean` | Open the buffer in a preview window | +| | tab | `boolean` | Open the buffer in a new tab | +| | close | `boolean` | Close the original oil buffer once selection is made | ## save(opts) diff --git a/doc/oil.txt b/doc/oil.txt index 67ac793..d960a47 100644 --- a/doc/oil.txt +++ b/doc/oil.txt @@ -211,6 +211,8 @@ select({opts}) *oil.selec modifier {preview} `boolean` Open the buffer in a preview window {tab} `boolean` Open the buffer in a new tab + {close} `boolean` Close the original oil buffer once selection is + made save({opts}) *oil.save* Save all changes @@ -317,7 +319,7 @@ close *actions.clos Close oil and restore original buffer copy_entry_path *actions.copy_entry_path* - Copy the filepath of the entry under the cursor to the + register + Yank the filepath of the entry under the cursor to a register open_cmdline *actions.open_cmdline* Open vim cmdline with current entry as an argument