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

FR: Add option to automatically hide a note that's closed #20

Open
Gewerd-Strauss opened this issue Nov 28, 2022 · 4 comments
Open

FR: Add option to automatically hide a note that's closed #20

Gewerd-Strauss opened this issue Nov 28, 2022 · 4 comments

Comments

@Gewerd-Strauss
Copy link

Hello,

The idea behind this plugin is quite useful in theory, but it creates an additional issue:
Every time an active note is revealed, its corresponding folder tree up to the root directory is expanded - obviously.

However, I think that this makes it even harder to use the Files-pane because finding anything in it now involves scrolling and manually re-folding any and all folders previously unfolded.

Instead, I'd suggest that the plugin does the following:

  1. Whenever a note is opened - by whatever means, focus on it in the Files-pane. This expands the respective notes' folder structure down to the level of the note.
  2. (Re-)Fold all other currently unfolded folders in the Files-pane, thus keeping the file overview clean.

I hope the idea I want to put forth here is clear.

Thank you.
Sincerely,
~Gw

@kazerniel
Copy link

+1 vote for this, especially now that the only plugin with that feature was deleted from Github 🙁

https://web.archive.org/web/20230721020232/https://github.com/1C0D/Obsidian-Reveal-File-in-explorer

@Gewerd-Strauss
Copy link
Author

A bit late, but here is a hotfix that might be useful to others, leveraging the plugins Collapse All by Nathonius and Commander by jsmorabitoo and phibr0:

  1. Create a macro with Commander:
    grafik

  2. Assign it to a hothey:
    grafik

This macro will first collapse the entire file-tree, and then expand the path to the currently focused file.

@kazerniel
Copy link

Thank you, it works! :)

@Gewerd-Strauss
Copy link
Author

I mean it is not exactly what this FR would accomplish, but I find myself rarely having to use the file-explorer itself to open something - and for those times this is a completely suitable solution.

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

No branches or pull requests

2 participants