shichongrui / obsidian-reveal-active-file

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

Plugin breaks ability to title a new note immediately after creation #15

Open chrisweis opened 2 years ago

chrisweis commented 2 years ago

When this plugin is enabled...

Expected behavior:

  1. Right-click a folder in a vault and choose "New Note"
  2. Start typing any note title (such as "test 123")
  3. Note title is updated (the note is now named "test 123")

Behavior after installing this plugin:

  1. Right-click a folder in a vault and choose "New Note"
  2. Start typing any note title (such as "test 123")
  3. Nothing happens. To enter the note title you need to first click within the note title.

Would be awesome if you could confirm and fix this bug in this otherwise awesome plugin. Thanks!

pjeby commented 2 years ago

If this is on Obsidian 0.15+, it's due to the problem discussed in #11 - you can fix it using Pane Relief (0.2.7)'s "focus lock" feature, that keeps the file explorer and other sidebar views from stealing focus away.