diff --git a/.github/workflows/luarocks-tag-release.yml b/.github/workflows/luarocks-tag-release.yml index 2b6932e..f400823 100644 --- a/.github/workflows/luarocks-tag-release.yml +++ b/.github/workflows/luarocks-tag-release.yml @@ -23,7 +23,6 @@ jobs: detailed_description: | This plugin aims to decrease the difficulties of path management across mutliple OSs in neovim. The plugin API is heavily inspired by Python's `pathlib.Path` with tweaks to fit neovim usage. - It is mainly used in neo-tree.nvim but it is so simple that you can use it in your own configs! version: ${{ env.LUAROCKS_VERSION }} dependencies: | nvim-nio >= 1.8.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index ad7c5f2..61004c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.2.3](https://github.com/pysan3/pathlib.nvim/compare/v2.2.2...v2.2.3) (2024-08-29) + + +### Bug Fixes + +* **base:** `Path:tostring` `sep` argument is not longer ignored ([0e98cef](https://github.com/pysan3/pathlib.nvim/commit/0e98cef8b722eb596a357f282127cc185932dd78)) + ## [2.2.2](https://github.com/pysan3/pathlib.nvim/compare/v2.2.1...v2.2.2) (2024-04-26) diff --git a/README.md b/README.md index b76a68e..1f5835a 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ # 🐍 `pathlib.nvim` -This plugin aims to decrease the difficulties of path management across mutliple OSs in neovim. The plugin API is heavily inspired by Python's `pathlib.Path` with tweaks to fit neovim usage. It is mainly used in [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) but it is very simple and portable to be used in any plugin. +This plugin aims to decrease the difficulties of path management across mutliple OSs in neovim. The plugin API is heavily inspired by Python's `pathlib.Path` with tweaks to fit neovim usage. - [Documentation](https://pysan3.github.io/pathlib.nvim/) - Module References diff --git a/README.norg b/README.norg index 9338875..e57c2ad 100644 --- a/README.norg +++ b/README.norg @@ -30,8 +30,6 @@ version: 1.1.1 * 🐍 `pathlib.nvim` This plugin aims to decrease the difficulties of path management across mutliple OSs in neovim. The plugin API is heavily inspired by Python's `pathlib.Path` with tweaks to fit neovim usage. - It is mainly used in {https://github.com/nvim-neo-tree/neo-tree.nvim}[neo-tree.nvim] - but it is very simple and portable to be used in any plugin. - {https://pysan3.github.io/pathlib.nvim/}[Documentation] - Module References diff --git a/conf.py b/conf.py index f522ccb..e987b90 100644 --- a/conf.py +++ b/conf.py @@ -9,7 +9,7 @@ project = 'pathlib.nvim' copyright = '2023, pysan3' author = 'pysan3' -release = '2.2.2' # x-release-please-version +release = '2.2.3' # x-release-please-version # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/index.rst b/index.rst index 4763531..e8e0d09 100644 --- a/index.rst +++ b/index.rst @@ -12,8 +12,6 @@ This plugin aims to decrease the difficulties of path management across mutliple OSs in neovim. The plugin API is heavily inspired by Python's `pathlib.Path` with tweaks to fit neovim usage. -It is mainly used in `neo-tree.nvim `_ -but it is very simple and portable to be used in any plugin. Pathlib Module Reference ======================== diff --git a/lua/pathlib/base.lua b/lua/pathlib/base.lua index 0763c9a..7f21c23 100644 --- a/lua/pathlib/base.lua +++ b/lua/pathlib/base.lua @@ -1186,10 +1186,11 @@ end function Path:tostring(sep) local nocache = sep and sep ~= self.sep_str if nocache or not self.__string_cache then - local s = table.concat(self._raw_paths, self.sep_str) + sep = sep or self.sep_str + local s = table.concat(self._raw_paths, sep) if self:is_absolute() then if #self._raw_paths == 1 then - s = self.sep_str + s = sep end if self._drive_name:len() > 0 then s = self._drive_name .. s