Skip to content

Commit

Permalink
fix: 打开到新浮窗和跳到上一个的功能冲突
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyloong committed Dec 25, 2023
1 parent c2a073d commit 3394901
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"author": "lazyloong",

"minAppVersion": "1.0.0",
"version": "2.11.0"
"version": "2.11.1"
}
4 changes: 2 additions & 2 deletions src/fuzzyFileModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class FuzzyFileModal extends FuzzyModal<Item> {
];
if (app.plugins.plugins["obsidian-hover-editor"])
prompt.push({
command: "ctrl p",
command: "ctrl o",
purpose: "打开到新浮窗",
});

Expand Down Expand Up @@ -105,7 +105,7 @@ export default class FuzzyFileModal extends FuzzyModal<Item> {
getNewOrAdjacentLeaf(app.workspace.getMostRecentLeaf()).openFile(file);
});
if (app.plugins.plugins["obsidian-hover-editor"])
this.scope.register(["Mod"], "p", (event: KeyboardEvent) => {
this.scope.register(["Mod"], "o", (event: KeyboardEvent) => {
this.close();
let item = this.chooser.values[this.chooser.selectedItem];
const newLeaf = app.plugins.plugins["obsidian-hover-editor"].spawnPopover(
Expand Down

0 comments on commit 3394901

Please sign in to comment.