omp packages

@muzi3/type-easier0.2.0

Pi extension bundle: /exit command (alias for /quit), Chinese「、」slash-command completion, and double-Enter on an empty editor to send「继续」.

muzi3 Published 10 days ago MIT ~29 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

@muzi3/type-easier

Pi 扩展整合包,让输入更省事,包含三个能力:

  1. /exit 命令 —— 退出 Pi(等价于 /quit)
  2. 顿号「、」slash 补全 —— 输入「、」触发 slash 指令补全,行为与「/」完全一致,适配中文输入习惯
  3. 空输入框双击回车 = 发「继续」 —— 编辑器为空时连按两次回车,直接发送「继续」开新一回合

安装

pi install npm:@muzi3/type-easier

用法

/exit

/exit

退出当前 Pi 会话,等价于 /quit。

顿号 slash 补全

在输入框行首输入顿号「、」,即可触发与「/」一致的 slash 指令补全。选择补全项后自动替换为 /command 。

例如:

、exit   →   补全为 /exit

空输入框双击回车 = 发「继续」

编辑器里没有内容时,连按两次回车(间隔 ≤ 500ms)就会直接发送「继续」:

  • 空闲时立刻开新一回合;智能体还在跑时按编辑器提交的语义走 steer。
  • 只在编辑器为空时生效:有草稿(哪怕是刚打的字删空前的回车)不会误发。
  • 用全局终端输入监听实现,不接管编辑器,因此和 pi-ui 这类替换编辑器的扩展共存。
  • 副作用:在输入框以外的弹窗里连按两次回车也可能触发,按一次回车后马上补一次回车时才需要注意。

许可

MIT