Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,20 @@ export default class VimImPlugin extends Plugin {
}
this.currentInsertIM = stdout;
console.debug(`obtain im: ${this.currentInsertIM}`);
});
}
//[1]: Switch to default im
if (typeof switchFromInsert != 'undefined' && switchFromInsert) {
exec(switchFromInsert, (error: any, stdout: any, stderr: any) => {
if (error) {
console.error(`switch error: ${error}`);
return;

//[1]: Switch to default im
if (typeof switchFromInsert != 'undefined' && switchFromInsert) {
exec(switchFromInsert, (error: any, stdout: any, stderr: any) => {
if (error) {
console.error(`switch error: ${error}`);
return;
}
console.debug(`switch im: ${switchFromInsert}`);
});
}
console.debug(`switch im: ${switchFromInsert}`);
this.previousMode = "normal"
});
}

this.previousMode = "normal"
}

Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "vim-im-select",
"name": "Vim IM Select",
"version": "0.1.3",
"version": "0.1.4",
"minAppVersion": "0.12.0",
"description": "Support auto select the apposite input method in different vim mode",
"author": "Alonelur",
"authorUrl": "https://github.com/ALONELUR",
"isDesktopOnly": true
}
}
5 changes: 3 additions & 2 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"0.0.2": "0.12.0",
"0.1.0": "0.12.0",
"0.1.1": "0.12.0",
"0.1.3": "0.12.0"
}
"0.1.3": "0.12.0",
"0.1.4": "0.12.0"
}