update at 2025-11-04 20:46:31

This commit is contained in:
douboer
2025-11-04 20:46:31 +08:00
parent 777c625411
commit 39feb2dde5
5 changed files with 19 additions and 10 deletions

View File

@@ -65,10 +65,13 @@ sudo pacman -S fcitx
### Obsidian 插件安装
1. 下载插件文件到 Obsidian 插件目录:
- 方法一:
```bash
cd /path/to/your/vault/.obsidian/plugins/
git clone https://github.com/yourusername/vim-im-switch.git
git clone https://biboer.cn/gitea/gavin/vim-im-switch
```
- 方法二(简单):
把 vim-im-switch 目录复制到/path/to/your/vault/.obsidian/plugins/目录下。
2. 在 Obsidian 中启用插件:
- 打开设置 → 社区插件 → 浏览

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

View File

@@ -37,9 +37,10 @@ else
exit 1
fi
# 检查编译产物
if [ ! -f "main.js" ]; then
echo -e "${RED}❌ 编译产物 main.js 不存在${NC}"
# 检查编译产物(构建产物位于项目根,确保 main.js manifest.json styles.css 可用)
if [ ! -f "main.js" ] || [ ! -f "manifest.json" ] || [ ! -f "styles.css" ]; then
echo -e "${RED}❌ 编译产物缺失: 期待 main.js, manifest.json, styles.css 在项目根目录下${NC}"
ls -la | sed -n '1,200p'
exit 1
fi
@@ -50,22 +51,26 @@ mkdir -p "$TARGET_DIR"
# 复制文件
echo -e "${YELLOW}📋 复制插件文件...${NC}"
# 复制必需的文件
# 复制必需的文件到 Obsidian 插件目录
cp -f main.js "$TARGET_DIR/"
cp -f manifest.json "$TARGET_DIR/"
cp -f styles.css "$TARGET_DIR/"
echo -e "${GREEN}✅ Obsidian 插件文件复制完成:${NC}"
echo -e " • main.js"
echo -e " • manifest.json"
echo -e " • manifest.json"
echo -e " • styles.css"
# 复制 Vim 插件
# 复制 Vim 插件fcitx-osx.vim
echo -e "${YELLOW}📋 复制 Vim 插件...${NC}"
mkdir -p ~/.vim/plugin
cp -f vim-im-switch.vim ~/.vim/plugin/
echo -e "${GREEN}✅ Vim 插件复制完成:${NC}"
echo -e " • vim-im-switch.vim → ~/.vim/plugin/"
if [ -f "fcitx-osx.vim" ]; then
cp -f fcitx-osx.vim ~/.vim/plugin/
echo -e "${GREEN}✅ Vim 插件复制完成:${NC}"
echo -e " • fcitx-osx.vim → ~/.vim/plugin/"
else
echo -e "${YELLOW}⚠️ 未找到 fcitx-osx.vim跳过 Vim 插件复制(确定文件存在于仓库根)${NC}"
fi
# 验证文件
echo -e "${YELLOW}🔍 验证复制的文件...${NC}"

View File

@@ -1,4 +1,5 @@
{
"2.0.0": "0.9.12",
"1.0.2": "0.9.12",
"1.0.1": "0.9.12",
"1.0.0": "0.9.7"