mirror of
https://github.com/fbarrca/obsidian-inlineAI.git
synced 2026-07-22 11:50:24 +00:00
Fix select text bug
This commit is contained in:
parent
c5a83110d4
commit
a1cd524b15
1 changed files with 11 additions and 0 deletions
|
|
@ -148,6 +148,17 @@ class FloatingWidget extends WidgetType {
|
|||
},
|
||||
preventDefault: true,
|
||||
},
|
||||
{
|
||||
key: "Mod-a",
|
||||
run: (view) => {
|
||||
const doc = view.state.doc;
|
||||
view.dispatch({
|
||||
selection: { anchor: 0, head: doc.length },
|
||||
});
|
||||
return true;
|
||||
},
|
||||
preventDefault: true,
|
||||
},
|
||||
]),
|
||||
// 3) Enable slash-command autocompletion
|
||||
slashCommandAutocompletion({
|
||||
|
|
|
|||
Loading…
Reference in a new issue