shichongrui / obsidian-reveal-active-file

Obsidian plugin to reveal the active file automatically when you open a file
93 stars 11 forks source link

Unfortunately does not work anymore #5

Closed cocoonkid closed 3 years ago

cocoonkid commented 3 years ago

Unfortunately does not work anymore

tabdulradi commented 3 years ago

I can see it highlights the open file, but it doesn't scroll to it.

cocoonkid commented 3 years ago

yes. I noticed that now too.

I will investigate further.

I also found that it does not automatically open collapsed folders.

Maybe the issues is somewhere hidden there.

ngirard commented 3 years ago

This is indeed annoying.

The file-explorer:reveal-active-file command does exactly that, so I'd suggest that the extension calls it.

WhiteMac commented 3 years ago

The developer seems unresponsive, but here is how you fix the plugin.

Instructions hopefully simple enough for even non-developers.

  1. Open your Obsidian plugin folder.

You can do this from Obsidian > Settings > Community Plugins > Click the folder icon to the right of "Installed Plugins".

  1. Quit Obsidian.

  2. Back in your Obsidian plugin folder, open the folder obsidian-reveal-active-file.

  3. Open the file main.js with a plain text editor like VSCode.

  4. Find the line:

_this.app.commands.executeCommandById('explorer:reveal-active-file');

As at the time of my comment, this is on line 42.

  1. Replace with:

_this.app.commands.executeCommandById('file-explorer:reveal-active-file');

  1. Save.

You're done. Plugin should work fine when you start Obsidian back up.

tyf2018 commented 3 years ago

The developer seems unresponsive, but here is how you fix the plugin.

Instructions hopefully simple enough for even non-developers.

  1. Open your Obsidian plugin folder.

You can do this from Obsidian > Settings > Community Plugins > Click the folder icon to the right of "Installed Plugins".

  1. Quit Obsidian.
  2. Back in your Obsidian plugin folder, open the folder obsidian-reveal-active-file.
  3. Open the file main.js with a plain text editor like VSCode.
  4. Find the line:

_this.app.commands.executeCommandById('explorer:reveal-active-file');

As at the time of my comment, this is on line 42.

  1. Replace with:

_this.app.commands.executeCommandById('file-explorer:reveal-active-file');

  1. Save.

You're done. Plugin should work fine when you start Obsidian back up.

The developer seems unresponsive, but here is how you fix the plugin.

Instructions hopefully simple enough for even non-developers.

  1. Open your Obsidian plugin folder.

You can do this from Obsidian > Settings > Community Plugins > Click the folder icon to the right of "Installed Plugins".

  1. Quit Obsidian.
  2. Back in your Obsidian plugin folder, open the folder obsidian-reveal-active-file.
  3. Open the file main.js with a plain text editor like VSCode.
  4. Find the line:

_this.app.commands.executeCommandById('explorer:reveal-active-file');

As at the time of my comment, this is on line 42.

  1. Replace with:

_this.app.commands.executeCommandById('file-explorer:reveal-active-file');

  1. Save.

You're done. Plugin should work fine when you start Obsidian back up.

After the modification, the situation has improved a lot and it is basically usable. Thank you very much.

shichongrui commented 3 years ago

The developer seems unresponsive, but here is how you fix the plugin.

Sorry, life is busy. PRs are welcome and I can do a new release.

fruchtblase commented 3 years ago

hey everyone, I made a pull request out of the solution posted by @WhiteMac

cocoonkid commented 3 years ago

:heart: for everyone here!

ramisedhom commented 3 years ago

I'll wait the new version to re-install it again.

shichongrui commented 3 years ago

Merged #6 and published new release 1.0.1