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

Update the list of Recent Files Tab after renaming a file #1

Closed
icr1001 opened this issue Jan 11, 2021 · 5 comments
Closed

Update the list of Recent Files Tab after renaming a file #1

icr1001 opened this issue Jan 11, 2021 · 5 comments

Comments

@icr1001
Copy link

@icr1001 icr1001 commented Jan 11, 2021

Issue: It does not update the file name at the Recent Files tab after renaming a file.

Other suggestions:

  • Have the option to set the number of recent files in the Recent Files Tab.
  • Have the option to clean the Recent Files‘ list.

Thanks for this plugin, it is amazing!

@tgrosinger
Copy link
Owner

@tgrosinger tgrosinger commented Jan 11, 2021

Yeah, I have not found a good way to detect what a file is renamed to. Hopefully I can find that, but in the mean time you can work around this by just clicking on the invalid file in the list. It should disappear 🙂

Thanks for the other suggestions. I created new issues for them (#2 & #3)

@luckman212
Copy link
Contributor

@luckman212 luckman212 commented Jan 13, 2021

@tgrosinger
Copy link
Owner

@tgrosinger tgrosinger commented Jan 16, 2021

A suggestion from the forum:

I don’t know how officially supported this is, but app.vault.on("rename", function(file, oldname) {}) will notify you of renames done from Obsidian’s file manager or pane title fields. It does not notify about renames initiated from outside of Obsidian.

@pjeby
Copy link
Contributor

@pjeby pjeby commented Jan 17, 2021

You probably also want app.vault.on("delete", function(file){}) to remove deleted files. ;-)

@tgrosinger
Copy link
Owner

@tgrosinger tgrosinger commented Jan 18, 2021

Also a great suggestion. I will put that in a separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants