5 ms·
Looks exciting! Does it have proper support for opening an external editor (via $EDITOR like nano, vim, etc?)? I ran into issues with that in Ink and had to sw
by pythonaut_16 8mo ago
Looks exciting!
Does it have proper support for opening an external editor (via $EDITOR like nano, vim, etc?)? I ran into issues with that in Ink and had to switch over to Bubbletea, but I'd love to use Ruby instead of Go
- riffraff 8mo agoI know nothing about this, but bubbletea-ruby was in the news recently https://github.com/marcoroth/bubbletea-ruby https://github.com/marcoroth/bubbletea-ruby
- Kerrick 8mo agoYes! While there's nothing built-in for that, you have full control over when you enter or exit raw mode, so your TUI can support opening an external editor. The TL;DR is you need to call `RatatuiRuby.restore_terminal` before handing off to $EDITOR, and you can call `RatatuiRuby.init_terminal` again to re-enter your TUI. Here's an example: https://www.ratatui-ruby.dev/docs/trunk/examples/app_external_editor/README_md.html https://www.ratatui-ruby.dev/docs/trunk/examples/app_externa... Also, if you enjoy Ink and Bubbletea, you probably enjoy MVU. If that's the case, check out the upcoming Rooibos framework I'm building on RatatuiRuby: https://rooibos.run https://rooibos.run. (Caveat: it doesn't yet have a way to restore/init the terminal, but I clearly need to make that happen.)