Skip to content

Commit

Permalink
Merge pull request #6 from fruchtblase/fix_reveal_active_file
Browse files Browse the repository at this point in the history
fix to make the plugin work again
  • Loading branch information
shichongrui authored Sep 9, 2021
2 parents 9788bb7 + 4b20d85 commit bef22c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { App, Modal, Notice, Plugin, PluginSettingTab, Setting } from 'obsidian'
export default class MyPlugin extends Plugin {
onload() {
this.app.workspace.on('file-open', () => {
this.app.commands.executeCommandById('explorer:reveal-active-file');
this.app.commands.executeCommandById('file-explorer:reveal-active-file');
})
}
}

0 comments on commit bef22c9

Please sign in to comment.