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

"Start presentation" command #158

Open
Angush opened this issue Oct 26, 2022 · 2 comments
Open

"Start presentation" command #158

Angush opened this issue Oct 26, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@Angush
Copy link

Angush commented Oct 26, 2022

Is your feature request related to a problem? Please describe.
The slides plugin built-in to Obsidian has a "Start presentation" command, allowing one to easily begin a presentation from their slides note. Switching to this plugin adds lots of other handy features, but makes presenting a multi-step process by forcing users to open the preview and then wrangle it into presentation mode.

Describe the solution you'd like.
A "Start presentation" or "Present slides" command. It'd be nice if it opened the presentation full-screen in Obsidian itself, like the vanilla slides plugin does. But I imagine it would be simpler to have the "Start presentation" command just work identically to the "Open in browser" button in the preview mode.

The latter is all I personally need, but I imagine others would find the former to be a nice option; could be implemented later? Perhaps as two distinct commands: "Start presentation in Obsidian" vs. "Start presentation in browser"?

Other solutions.

Some other options that could serve a similar purpose:

  • A context menu command (under the "More options" overflow menu, top right in the toolbar of Obsidian 1.0), which the vanilla slides plugin also offers
  • A context menu command when right clicking files? Ehh
  • A toolbar button? (not sure if Obsidian lets you do this)

Those could be nice options too, but I think a command is the best option. Integrates nicely with the Buttons plugin, for instance.

@Angush Angush added the enhancement New feature or request label Oct 26, 2022
@Angush
Copy link
Author

Angush commented Oct 26, 2022

In the meantime, I did a build of the plugin for myself that implements this in an admittedly hacky manner:

this.addCommand({
  id: 'present-advanced-slides-in-browser',
  name: 'Start Presentation in Browser',
  hotkeys: [{ modifiers: ['Mod', 'Shift'], key: 'P' }],
  callback: async () => {
    await this.toggleView()
    window.open(this.revealServer.getUrl())
    setTimeout(() => {
      this.toggleView()
    }, 50)
  }
})

@MSzturc
Copy link
Owner

MSzturc commented Nov 3, 2022

Nice idea, i will look into it after 1.19

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

No branches or pull requests

2 participants