From e9352389644eb388dc7cfee0b2514a61ce8862c2 Mon Sep 17 00:00:00 2001 From: elgiano Date: Tue, 30 Sep 2025 21:33:39 +0200 Subject: [PATCH] Document.sc: support string.openDocument --- scide_scnvim/Classes/Document.sc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scide_scnvim/Classes/Document.sc b/scide_scnvim/Classes/Document.sc index d9be2cf8..92b9a83b 100644 --- a/scide_scnvim/Classes/Document.sc +++ b/scide_scnvim/Classes/Document.sc @@ -31,4 +31,10 @@ Document { var path = this.path; ^path !? { path.dirname } } + + // needed for string.openDocument + *implementationClass { ^this } + *open { |path| + SCNvim.luaeval("vim.cmd'edit %'".format(path)) + } }