maaslalani / slides

Terminal based presentation tool
http://maaslalani.com/slides/
MIT License
10.06k stars 277 forks source link

Add option to open slide in editor #314

Open waelmahrous opened 1 month ago

waelmahrous commented 1 month ago

This allows the user to edit the currently open slide with the command ctrl+o. Must be a session in tmux. Currently only opens it in vim, but I'll add more so that you can change to an editor of choice in a config file.

Fixes #264

pomdtr commented 1 month ago

I'm not sure adding a requirement on termux is the right way to go.

You could use https://pkg.go.dev/github.com/charmbracelet/bubbletea#ExecProcess to spawn the editor from the bubbletea app

waelmahrous commented 1 month ago

Ah that's much cleaner.

pomdtr commented 4 weeks ago

You should probably also respect the EDITOR env variable by default.

waelmahrous commented 4 weeks ago

You should probably also respect the EDITOR env variable by default.

Good idea! It now also jumps to the correct line in vim/nvim/vscode.