mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 22:30:25 +01:00
feat: refactor codes
feat: custom rime - disable full_shape punctuations feat: remap capslock key
This commit is contained in:
@@ -24,41 +24,7 @@ menu:
|
||||
page_size: 5
|
||||
|
||||
punctuator:
|
||||
full_shape:
|
||||
' ' : { commit: ' ' }
|
||||
',' : { commit: , }
|
||||
'.' : { commit: 。 }
|
||||
'<' : [ 《, 〈, «, ‹ ]
|
||||
'>' : [ 》, 〉, », › ]
|
||||
'/' : { commit: 、 }
|
||||
'?' : { commit: ? }
|
||||
';' : { commit: ; }
|
||||
':' : { commit: : }
|
||||
'''' : { pair: [ '‘', '’' ] }
|
||||
'"' : { pair: [ '“', '”' ] }
|
||||
'\' : { commit: 、 }
|
||||
'|' : '|'
|
||||
'`' : `
|
||||
'~' : ~
|
||||
'!' : { commit: ! }
|
||||
'@' : '@'
|
||||
'#' : '#'
|
||||
'%' : '%'
|
||||
'$' : [ ¥, '$', '€', '£', '¥', '¢', '¤' ]
|
||||
'^' : { commit: …… }
|
||||
'&' : &
|
||||
'*' : '*'
|
||||
'(' : (
|
||||
')' : )
|
||||
'-' : -
|
||||
'_' : ——
|
||||
'+' : +
|
||||
'=' : =
|
||||
'[' : [ 「, 【, 〔, [ ]
|
||||
']' : [ 」, 】, 〕, ] ]
|
||||
'{' : [ 『, 〖, { ]
|
||||
'}' : [ 』, 〗, } ]
|
||||
half_shape:
|
||||
half_shape: &half_shape
|
||||
',' : { commit: , }
|
||||
'.' : { commit: 。 }
|
||||
'<' : [ 《, 〈, «, ‹ ]
|
||||
@@ -91,10 +57,13 @@ punctuator:
|
||||
# ']' : { commit: '】' }
|
||||
# '{' : { commit: '{' }
|
||||
# '}' : { commit: '}' }
|
||||
# 直角空格更好看,改成它
|
||||
'[' : { commit: '「' }
|
||||
']' : { commit: '」' }
|
||||
'{' : { commit: '『' }
|
||||
'}' : { commit: '』' }
|
||||
# 这个全宽字符非常恶心, 没啥用,老搞出全宽空格,禁用掉!
|
||||
full_shape: *half_shape
|
||||
|
||||
key_binder:
|
||||
bindings:
|
||||
@@ -132,7 +101,7 @@ key_binder:
|
||||
- { when: always, accept: Control+Shift+numbersign, toggle: full_shape }
|
||||
- { when: always, accept: Control+Shift+dollar, toggle: simplification }
|
||||
- { when: always, accept: Control+Shift+percent, toggle: extended_charset }
|
||||
- { when: always, accept: Shift+space, toggle: full_shape }
|
||||
- { when: always, accept: Shift+space, toggle: full_shape }
|
||||
- { when: always, accept: Control+period, toggle: ascii_punct }
|
||||
|
||||
recognizer:
|
||||
|
||||
@@ -160,4 +160,4 @@ menu:
|
||||
|
||||
style:
|
||||
horizontal: true #竖排为false
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user