grosser / ruco

Desktop-style, Intuitive, Commandline Editor in Ruby. "Better than nano, simpler than vim."
MIT License
129 stars 10 forks source link

Interactive ruby scripting support (like vim :ruby/:rubydo) #15

Open ghost opened 10 years ago

ghost commented 10 years ago

Hello, It would be nice if you could add interactive ruby scripting support (like vim :ruby/:rubydo). I mean, you type a line of ruby code and ruco evaluates it over the current buffer/text. Thank you for ruco!

grosser commented 10 years ago

you can build it in your .ruco.rb and when your happy with it open a PR :)

something like store editor content in variable, eval code with variable (maybe as self ?) then overwrite complete content