Skip to content

Commit

Permalink
decode (ble-bind): fix the printed definition of "-c"/"-x" bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jun 19, 2022
1 parent 65c4138 commit 94de078
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions docs/ChangeLog.md
Expand Up @@ -261,6 +261,7 @@
- history: fix the unsaved history in the detached state `#D1795` 344168e
- edit: fix an unexpected leave from the command layout on `read` `#D1800` 4dbf16f
- history: work around possible dirty prefix `*` in the history output `#D1808` 64a740d
- decode (`ble-bind`): fix the printed definition of `-c`/`-x` bindings `#D1821` XXXXXXX

## Documentation

Expand Down
12 changes: 6 additions & 6 deletions note.txt
Expand Up @@ -1816,12 +1816,6 @@ bash_tips
- Acknowledgments
- keymap の移動 (これは別 commit にする?)

2022-06-19

* ble-bind -P の出力で -c binding が変だ。引用符が余分についている

ble-bind -m 'vi_nmap' -c C-z \'fg\'

2022-06-18

* erasedups を制限する機能 (motivated by SuperSandro2000)
Expand Down Expand Up @@ -6431,6 +6425,12 @@ bash_tips

2022-06-19

* decode: ble-bind -P の出力で -c binding が変だ。引用符が余分についている [#D1821]

ble-bind -m 'vi_nmap' -c C-z \'fg\'

v0.3 では特に問題はない様だ。修正した。

* decode (bind): inputrc に含まれる # の処理 [#D1820]

% 変数によって処理したり処理しなかったりの様だ。特に文字列を受け取るオプショ
Expand Down
4 changes: 2 additions & 2 deletions src/decode.sh
Expand Up @@ -1739,8 +1739,8 @@ function ble/decode/keymap#print {

local o v
case "$cmd" in
('ble/widget/.SHELL_COMMAND '*) o=c v=${cmd#'ble/widget/.SHELL_COMMAND '} ;;
('ble/widget/.EDIT_COMMAND '*) o=x v=${cmd#'ble/widget/.EDIT_COMMAND '} ;;
('ble/widget/.SHELL_COMMAND '*) o=c v=${cmd#'ble/widget/.SHELL_COMMAND '}; builtin eval "v=$v" ;;
('ble/widget/.EDIT_COMMAND '*) o=x v=${cmd#'ble/widget/.EDIT_COMMAND '} ; builtin eval "v=$v" ;;
('ble/widget/.MACRO '*) o=s; ble/util/chars2keyseq ${cmd#*' '}; v=$ret ;;
('ble/widget/'*) o=f v=${cmd#ble/widget/} ;;
(*) o=@ v=$cmd ;;
Expand Down

0 comments on commit 94de078

Please sign in to comment.