Skip to content

Commit

Permalink
cmap: freeze the internal codes of "find"/"select" and kitty special …
Browse files Browse the repository at this point in the history
…keys
  • Loading branch information
akinomyoga committed Oct 4, 2021
1 parent 9033f29 commit fdfe62a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
- term: disable `modifyOtherKeys` and do not send `DA2` for `st` (requested by Shahabaz-Bagwan) `#D1632` 92c7b26
- cmap: add `st`-specific escape sequences for cursor keys `#D1633` acfb879
- cmap: distinguish <kbd>find</kbd>/<kbd>select</kbd> from <kbd>home</kbd>/<kbd>end</kbd> for openSUSE `inputrc.keys` (reported by cornfeedhobo) `#D1648` c4d28f4
- cmap: freeze the internal codes of <kbd>find</kbd>/<kbd>select</kbd> and kitty special keys `#D1674` 0000000
- main: work around self-modifying `PROMPT_COMMAND` by `bash-preexec` (reported by cornfeedhobo) `#D1650` 39ebf53
- decode: work around openSUSE broken `/etc/inputrc` `#D1662` e5b0c86

Expand Down
6 changes: 6 additions & 0 deletions lib/init-cmap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ function ble/init:cmap/initialize {
ble-decode-kbd/generate-keycode delete
ble-decode-kbd/generate-keycode end
ble-decode-kbd/generate-keycode next
ble-decode-kbd/generate-keycode find
ble-decode-kbd/generate-keycode select

local kend; ble/util/assign kend 'tput @7 2>/dev/null || tput kend 2>/dev/null'
if [[ $kend == $'\e[5~' ]]; then
Expand Down Expand Up @@ -331,6 +333,10 @@ function ble/init:cmap/initialize {
[57447]=rshift [57448]=rcontrol [57449]=ralter [57450]=rsuper [57451]=rhyper [57452]=rmeta
[57453]=iso_shift3 [57454]=iso_shift5
)
local keyname
for keyname in "${_ble_decode_csimap_kitty_u[@]}"; do
ble-decode-kbd/generate-keycode "$keyname"
done

ble/edit/info/immediate-show text "ble/lib/init-cmap.sh: updating key sequences... done"
}
Expand Down
9 changes: 9 additions & 0 deletions note.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5393,6 +5393,15 @@ bash_tips

2021-10-04

* cmap: find/select が TERM によって定義されていたりいなかったりする [#D1674]

今思ったのだが TERM によって find/select が存在したりしなかったりする事によって、
keymap.emacs や keymap.vi のキャッシュに不整合が生じるのではないか。うーん。

これによって keycode が不整合を起こすのではないか。
$_ble_base_cache/keymap.{emacs,vi} は特に TERM に依存せずに共通の物を用いて
いるので問題が発生する筈である。

* prompt: prompt_ruler で空文字列に展開される文字列を指定すると無限ループになる? [#D1673]

これは直ぐに直った。
Expand Down

0 comments on commit fdfe62a

Please sign in to comment.