javalent / fantasy-statblocks

Create Dungeons and Dragons style statblocks for Obsidian.md
MIT License
353 stars 71 forks source link

Toggle to open Creature Pane without splitting the pane vertically #342

Closed Pachtjuilaard closed 6 months ago

Pachtjuilaard commented 8 months ago

Check for existing bug reports before submitting.

Expected Behavior

I'd expect the Open Creature Pane command to open the Creature Pane in a full size pane on the right, so I could bind a shortcut to that command to quickly check the current creature I'm using. Creating a toggle for this behaviour, or maybe an extra command (Open Creature Pane in new panel) would help.

Current behaviour

When using the command Open Creature Pane, the right panel always gets split vertically, showing the creature pane simultaneously with other stuff in the right panel. Using this command multiple times creates multiple splits, which makes the panels too small to be usable.

Reproduction

  1. Use the 'Open Creature Pane' command.
  2. Do it again.
  3. Do it again.

Which Operating Systems are you using?

Obsidian Version Check

1.5.3

Plugin Version

3.17.0

Confirmation

Possible solution

A toggle or an extra command would be helpful, so people can choose to keep the current behaviour, or make the command always re-open the currently opened Creature Pane.

natowb commented 6 months ago

I've been working on this @Pachtjuilaard is this the functionality you are expecting image X888lXymzz

@valentine195 ive got a solution for this working, however would you want there to be an option or should this just be standard behavior?

I ask because im not sure how usable this is. image