Skip to content

Instantly share code, notes, and snippets.

@feilongfl
Created June 6, 2025 13:03
Show Gist options
  • Save feilongfl/493f69e83008da85b295cf748b448c28 to your computer and use it in GitHub Desktop.
Save feilongfl/493f69e83008da85b295cf748b448c28 to your computer and use it in GitHub Desktop.
rime-feilong
# Feilong rime config
based on https://github.com/LufsX/rime.git
默认英文,英文标点,启用emoji
逗号 & 句号换页
每页五个候选
# default.custom.yaml
patch:
# 1. 方案列表 —— 只保留朙月拼音
schema_list:
- schema: lufs_pinyin # 朙月拼音
# 2. 方案切换器
switcher:
hotkeys: # 用 Control+` 呼出菜单
- "Control+grave"
# 3. 候选菜单
menu:
page_size: 5 # 每页 5 个候选
# 4. 识别器 —— 关闭 URL 正则(避免 . , 翻页冲突)
recognizer:
patterns:
url: "" # 设为空字符串等同于禁用
url_plus: ""
# 5. 英文/中文切换键
ascii_composer:
switch_key:
Shift_L: commit_code # 左 Shift 直接上屏并保持英文
# 6. 翻页与选词快捷键
key_binder:
bindings:
# 只保留句号/逗号翻页
- { when: has_menu, accept: period, send: Page_Down } # 句号向下翻页
- { when: has_menu, accept: comma, send: Page_Up } # 逗号向上翻页
# 英文输入补丁
#
# 使用方法
#
# 将本文件复制到「用户文件夹」根目录中,并重命名为你需要的方案对应的名字(包括后缀名)
# 全拼: lufs_pinyin.custom.yaml
# 小鹤双拼: lufs_flypy.custom.yaml
# 自然码双拼: lufs_dpy.custom.yaml
# 微软双拼: lufs_mspy.custom.yaml
# 拼音加加双拼: lufs_pyjj.custom.yaml
patch:
engine/processors/@before 0: ascii_composer
engine/segmentors/@before 0: ascii_segmentor
switches/@before 0:
name: ascii_mode
reset: 1 # 默认状态: 0 中文输入 1 英文输入
states: [中文, 西文]
switches/@before 3:
name: emoji_suggestion
reset: 1 # 默认状态: 0 关闭 1 开启
states: [🈚️️, 🈶️]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment