Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Open current slide in editor #264

Open
pomdtr opened this issue Oct 5, 2023 · 3 comments · May be fixed by #314
Open

Feature Request: Open current slide in editor #264

pomdtr opened this issue Oct 5, 2023 · 3 comments · May be fixed by #314

Comments

@pomdtr
Copy link

pomdtr commented Oct 5, 2023

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
Copy link

nice idae

@MrJeremyKhoo
Copy link

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 waelmahrous linked a pull request Oct 30, 2024 that will close this issue
@waelmahrous
Copy link

waelmahrous commented Oct 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants