Git Product home page Git Product logo

Comments (12)

lotem avatar lotem commented on June 15, 2024

同意 1.

狹義的按鍵綁定,由 key_binder 完成,可將指定按鍵解釋爲以下動作:
發送另一按鍵,以完成另一按鍵的功能,如將 , . 綁定到 Page_Up Page_Down
切換狀態選項
必換輸入方案

程序對按鍵的處理,如 a 鍵產生輸入碼 “a”,Page_Down 鍵產生翻頁動作,一般不理解爲綁定按鍵到對應的功能。

改變VIM的狀態,無法通過簡單的配置實現,需要針對VIM編程。

from weasel.

zcunlin avatar zcunlin commented on June 15, 2024

2 能不能加个开关,让用户来设定是否始终显示。

from weasel.

jixiuf avatar jixiuf commented on June 15, 2024

关于 按键 绑定, 可不可以做的更有扩展性些,
比如
让以下配置实现 按excape 键时
依次 执行rime_quit ,toggle_to_ascii_mode ,两个函数,而第3个函数just_send_key_to_program 的意思是 直接让程序接收escape按键 执行它本身 escape原来绑定的功能,
- { when: composing, accept:Escape, call:rime_quit call:toggle_to_ascii_mode,call:just_send_key_to_program }

这样就可以做到rime 将输入法状态转化到 英文模式, 让vim 自己接收到escape 按键时做相应的处理(转到Normal模式)

just_send_key_to_program 的功能类似于autohotkey 里的 ~
http://www.autohotkey.com/docs/Hotkeys.htm
When the hotkey fires, its key's native function will not be blocked (hidden from the system).

from weasel.

lotem avatar lotem commented on June 15, 2024
  • YAML 的 map 不允許重複的 key。
  • 這個邏輯首先要判斷在 vim 裏面。
  • 沒有必要爲了實現一個複雜邏輯做大量腳本化的工作,因爲腳本化的開發成本遠遠高於開發功能本身。

from weasel.

lotem avatar lotem commented on June 15, 2024

2 可以加個開關,但我懷疑會成爲干擾。

from weasel.

jixiuf avatar jixiuf commented on June 15, 2024

进展怎么样了, 有没有计划,迫切等待中。。。

from weasel.

lotem avatar lotem commented on June 15, 2024

樓主說了太多東西,最後結論是「加个开关,让用户来设定是否始终显示」嗎?
支持這個想法。

from weasel.

jixiuf avatar jixiuf commented on June 15, 2024

第1 条 第2 条 最好都实现一下 ,我看了下 mac 上 "A" 和“中” 图标太大,且不透明, 估计会影响阅读图标下的内容,

from weasel.

jixiuf avatar jixiuf commented on June 15, 2024

第1 条 第2 条 最好都实现一下 ,我看了下 mac 上 "A" 和“中” 图标太大,且不透明, 估计会影响阅读图标下的内容,

from weasel.

walker-zheng avatar walker-zheng commented on June 15, 2024

为什么不能默认输入英文,shift切换到中文,或者直接字母上屏,还得改配置文件?
配置程序应该加上这个选择;
而且选择多个输入方式,也只有第一个有效,这是不是太复杂了,限选一个不好么?

from weasel.

gttiankai avatar gttiankai commented on June 15, 2024

同求这个功能啊!

from weasel.

lotem avatar lotem commented on June 15, 2024

針對 gvim 的處理只在IME接口的前端實現了(吧?)。現在大多數場合用的是TSF接口的前端。
不知道這個辦法是否可行。
這裏討論的問題似乎是與本題不同的輸入法狀態管理機制: #232

from weasel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.