diff --git a/README.md b/README.md index 4e6a4b4..1d5fcff 100644 --- a/README.md +++ b/README.md @@ -345,7 +345,7 @@ Note that at the moment the ssh adapter does not support Windows machines, and i - [set_sort(sort)](doc/api.md#set_sortsort) - [set_is_hidden_file(is_hidden_file)](doc/api.md#set_is_hidden_fileis_hidden_file) - [toggle_hidden()](doc/api.md#toggle_hidden) -- [get_current_dir()](doc/api.md#get_current_dir) +- [get_current_dir(bufnr)](doc/api.md#get_current_dirbufnr) - [open_float(dir)](doc/api.md#open_floatdir) - [toggle_float(dir)](doc/api.md#toggle_floatdir) - [open(dir)](doc/api.md#opendir) diff --git a/doc/api.md b/doc/api.md index 411c252..0018d5c 100644 --- a/doc/api.md +++ b/doc/api.md @@ -9,7 +9,7 @@ - [set_sort(sort)](#set_sortsort) - [set_is_hidden_file(is_hidden_file)](#set_is_hidden_fileis_hidden_file) - [toggle_hidden()](#toggle_hidden) -- [get_current_dir()](#get_current_dir) +- [get_current_dir(bufnr)](#get_current_dirbufnr) - [open_float(dir)](#open_floatdir) - [toggle_float(dir)](#toggle_floatdir) - [open(dir)](#opendir) @@ -88,10 +88,9 @@ Toggle hidden files and directories `get_current_dir(bufnr): nil|string` \ Get the current directory -| Param | Type | Desc | -| ----- | -------------- | --------------------------------------------- | -| bufnr | `nil\|integer` | When nil, get directory of the current buffer | - +| Param | Type | Desc | +| ----- | -------------- | ---- | +| bufnr | `nil\|integer` | | ## open_float(dir) diff --git a/doc/oil.txt b/doc/oil.txt index 1329871..9582cab 100644 --- a/doc/oil.txt +++ b/doc/oil.txt @@ -281,7 +281,7 @@ get_current_dir({bufnr}): nil|string *oil.get_current_di Get the current directory Parameters: - {bufnr} `integer` When nil, get directory of the current buffer + {bufnr} `nil|integer` open_float({dir}) *oil.open_float* Open oil browser in a floating window