maaslalani / slides

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

Feature Request: Open current slide in editor #264

Open pomdtr opened 1 year ago

pomdtr commented 1 year ago

Is your feature request related to a problem? Please describe.

Beeing able to switch between a previewing and editing quickly would be nice.

Describe the solution you'd like

When I type e, the current document is opened in my editor, and the cursor row is set to the start of the current slide.

XiaoPengYouCode commented 10 months ago

nice idae

MrJeremyKhoo commented 8 months ago

it supports hot reload.

  1. open your slides in another terminal
  2. save in your editing file the slides in the other terminal should update
waelmahrous commented 1 month ago

I added a small change that splits your current window and opens the markdown file in vim/nvim if tmux session, or open a vscode window. This works very nicely with the hot reload as you save your changes :)

use (vscode): slides somefile.md --editor code

open editor: ctrl+o

ill look into the cursor jumping to the right place as well

waelmahrous commented 1 month ago

So no more dependency on tmux and it uses the bubbletea library to execute in the same instance. Also jumps to the correct line in vim/nvim.