feat: implement modular modal editor and isolated Ruby plugins

This commit is contained in:
Valdemar Lorenzen
2026-10-05 13:48:01 +02:00
parent 6e1de421f1
commit 396ffc4f3a
11 changed files with 3450 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
Vamp.plugin "greeting", requires: ["text"]
Vamp.command "greet" do |editor, args|
name = args.empty? ? "world" : args
editor.insert "Hello, #{name}!\n"
editor.message "Greeting inserted by Ruby"
end
Vamp.command "upper" do |editor, _args|
editor.replace editor.text.upcase
editor.message "Buffer uppercased by Ruby"
end