Robin-Haupt-1 / Obsidian-Map-of-Content

Generate and display a Map of Content for your Obsidian vault that gets updated with any changes, based on the links in your vault
GNU General Public License v3.0
171 stars 5 forks source link

Add command to re-open the widget #80

Closed areshytko closed 2 years ago

areshytko commented 2 years ago

There's no command in a command palette to open a widget. So If I closed it I don't know how to open it again

Robin-Haupt-1 commented 2 years ago

You can disable the plugin in Obsidian settings and enable it again, that will open a new view.

Thanks for the suggestion of using a command to do that though, i hadn't thought of that. Maybe i'll do that.

areshytko commented 2 years ago

Yes, thank you. But it smells more like a hack. Plus, personally, for me it's inconvenient to look at the map at the sidebar, It's much better to look at it in a horizontal split. And this scenario requires having a command in a command palette to invoke a map view.

If you look at the other native functionality - backlinks for example. It's done that way - they have a command to invoke them. So it's good also for UX consistency.

Please consider implementing it. And thank you for the great plugin!

Robin-Haupt-1 commented 2 years ago

Thanks for the information that this resembles native functionality. I will probably add this soon.

If you use the plugin in split view, do you also experience that the view will say 'No file is open' once you click on it? You're the first to have mentioned they use it that way, but i think it's a good idea to do that. I could make this annoying behavior go away by making the view stay on the last opened file if no file is opened. Does that sound useful to you?

areshytko commented 2 years ago

Yes, very! Thank you so much. A🍺 from me

Robin-Haupt-1 commented 2 years ago

I've added this issue, i'll work on it soon: https://github.com/Robin-Haupt-1/Obsidian-Map-of-Content/issues/81

Robin-Haupt-1 commented 2 years ago

@areshytko

The latest release should function much better with split mode. I'm sorry i couldn't fix this sooner.