Comments (12)
同意 1.
狹義的按鍵綁定,由 key_binder 完成,可將指定按鍵解釋爲以下動作:
發送另一按鍵,以完成另一按鍵的功能,如將 , . 綁定到 Page_Up Page_Down
切換狀態選項
必換輸入方案
程序對按鍵的處理,如 a 鍵產生輸入碼 “a”,Page_Down 鍵產生翻頁動作,一般不理解爲綁定按鍵到對應的功能。
改變VIM的狀態,無法通過簡單的配置實現,需要針對VIM編程。
from weasel.
2 能不能加个开关,让用户来设定是否始终显示。
from weasel.
关于 按键 绑定, 可不可以做的更有扩展性些,
比如
让以下配置实现 按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.
- YAML 的 map 不允許重複的 key。
- 這個邏輯首先要判斷在 vim 裏面。
- 沒有必要爲了實現一個複雜邏輯做大量腳本化的工作,因爲腳本化的開發成本遠遠高於開發功能本身。
from weasel.
2 可以加個開關,但我懷疑會成爲干擾。
from weasel.
进展怎么样了, 有没有计划,迫切等待中。。。
from weasel.
樓主說了太多東西,最後結論是「加个开关,让用户来设定是否始终显示」嗎?
支持這個想法。
from weasel.
第1 条 第2 条 最好都实现一下 ,我看了下 mac 上 "A" 和“中” 图标太大,且不透明, 估计会影响阅读图标下的内容,
from weasel.
第1 条 第2 条 最好都实现一下 ,我看了下 mac 上 "A" 和“中” 图标太大,且不透明, 估计会影响阅读图标下的内容,
from weasel.
为什么不能默认输入英文,shift切换到中文,或者直接字母上屏,还得改配置文件?
配置程序应该加上这个选择;
而且选择多个输入方式,也只有第一个有效,这是不是太复杂了,限选一个不好么?
from weasel.
同求这个功能啊!
from weasel.
針對 gvim 的處理只在IME接口的前端實現了(吧?)。現在大多數場合用的是TSF接口的前端。
不知道這個辦法是否可行。
這裏討論的問題似乎是與本題不同的輸入法狀態管理機制: #232
from weasel.
Related Issues (20)
- 默认英文模式在 firefox 上无效 HOT 3
- border 为 0 和 1 导致 notification tip 残缺;border 大于等于 3 时额外边框渲染 bug HOT 7
- 「功能询问/请求」如何关闭输入法自带的英文输入,实现只有中文输入。 HOT 4
- 在自动插入空格的网页上输入时重复上屏 HOT 8
- 方案补丁里的配色指令失效 HOT 2
- Firefox 下部分网页中候选框無法正确定位 HOT 2
- 根据install md 步骤,build fail 但是无法翻译 error 意义 HOT 2
- show_notifications_when 选项在最新 CI 构建版本中失效 HOT 2
- 在注册表中使用,会导致注册表闪退 HOT 1
- 在OneNote中使用有bug HOT 1
- build成功,安装成功,但是无法打中文. 新手求助怎样解决 HOT 10
- 無法打出「祕」 HOT 2
- 默认是中文输出,设置weasel.custom.yaml的cmd为ascii_mode: true,cmd无法自动切换英文 HOT 10
- Snippet not Work based on TextMate syntax HOT 5
- Link error for some unresolved symbols when linking library HOT 2
- Crash caused by NULL pointer dereference, probably in `CInsertTextEditSession::DoEditSession()` HOT 4
- 注音輸入中該如何設定默認英文 HOT 1
- 将 WeaselServer.exe 编译为64位版本后,服务可以启动,但是无法打字 HOT 19
- Apex legends自带的EasyAntiCheat 误报 HOT 3
- 在这个https://youtrack.jetbrains.com/网址中,部分输入框 中文无法输入 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weasel.