update at 2026-01-22 09:34:21
This commit is contained in:
@@ -9,7 +9,7 @@ YELLOW='\033[1;33m'
|
|||||||
BLUE='\033[0;34m'
|
BLUE='\033[0;34m'
|
||||||
NC='\033[0m'
|
NC='\033[0m'
|
||||||
|
|
||||||
SOURCE_DIR="/Users/gavin/vim-im-switch"
|
SOURCE_DIR="/Users/gavin/obsidian-plugins/vim-im-switch"
|
||||||
TARGET_DIR="/Users/gavin/myweb/.obsidian/plugins/vim-im-switch"
|
TARGET_DIR="/Users/gavin/myweb/.obsidian/plugins/vim-im-switch"
|
||||||
|
|
||||||
echo -e "${BLUE}🚀 Start deploy...${NC}"
|
echo -e "${BLUE}🚀 Start deploy...${NC}"
|
||||||
|
|||||||
4
main.ts
4
main.ts
@@ -309,10 +309,10 @@ export default class VimIMSwitchPlugin extends Plugin {
|
|||||||
currentName.includes('baidu')) {
|
currentName.includes('baidu')) {
|
||||||
this.settings.chineseInputMethod = currentName;
|
this.settings.chineseInputMethod = currentName;
|
||||||
} else {
|
} else {
|
||||||
this.settings.chineseInputMethod = 'com.tencent.inputmethod.wetype.pinyin';
|
this.settings.chineseInputMethod = 'com.apple.inputmethod.SCIM.ITABC'
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.settings.chineseInputMethod = 'com.tencent.inputmethod.wetype.pinyin';
|
this.settings.chineseInputMethod = 'com.apple.inputmethod.SCIM.ITABC'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user