commit 7b4295390f951d902ebc34012729e92904d4c1ee
parent 86046c5a31034af65f128626103526269cf1bc49
Author: Luca Saccarola <96259932+saccarosium@users.noreply.github.com>
Date: Sat, 1 Mar 2025 00:14:01 +0100
docs(Open): add reference in documentation (#32678)
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
@@ -2638,6 +2638,8 @@ vim.ui.open({path}, {opt}) *vim.ui.open()*
`explorer.exe`, Linux `xdg-open`, …), or returns (but does not show) an
error message on failure.
+ Can also be invoked with `:Open`. *:Open*
+
Expands "~/" and environment variables in filesystem paths.
Examples: >lua
diff --git a/runtime/lua/vim/ui.lua b/runtime/lua/vim/ui.lua
@@ -108,6 +108,8 @@ end
--- Opens `path` with the system default handler (macOS `open`, Windows `explorer.exe`, Linux
--- `xdg-open`, …), or returns (but does not show) an error message on failure.
---
+--- Can also be invoked with `:Open`. [:Open]()
+---
--- Expands "~/" and environment variables in filesystem paths.
---
--- Examples: