From 787ff57f1679b38f83eaa693196fee9d2f1655f1 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Mon, 25 Jan 2021 23:08:03 +0800 Subject: [PATCH] edit: change "C-w" and "M-w" to operate on backward words --- ble-edit.sh | 4 ++-- keymap/emacs.sh | 3 +++ keymap/vi.sh | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ble-edit.sh b/ble-edit.sh index 501a7213..07f86fe6 100644 --- a/ble-edit.sh +++ b/ble-edit.sh @@ -6342,8 +6342,8 @@ function ble-decode/keymap:safe/bind-common { ble-decode/keymap:safe/.bind 'C-@' 'set-mark' ble-decode/keymap:safe/.bind 'M-SP' 'set-mark' ble-decode/keymap:safe/.bind 'C-x C-x' 'exchange-point-and-mark' - ble-decode/keymap:safe/.bind 'C-w' 'kill-region-or uword' - ble-decode/keymap:safe/.bind 'M-w' 'copy-region-or uword' + ble-decode/keymap:safe/.bind 'C-w' 'kill-region-or backward-uword' + ble-decode/keymap:safe/.bind 'M-w' 'copy-region-or backward-uword' ble-decode/keymap:safe/.bind 'C-y' 'yank' # spaces diff --git a/keymap/emacs.sh b/keymap/emacs.sh index 34be9164..e9cc4d62 100644 --- a/keymap/emacs.sh +++ b/keymap/emacs.sh @@ -5,6 +5,9 @@ ble/util/isfunction ble-edit/bind/load-keymap-definition:emacs && return function ble-edit/bind/load-keymap-definition:emacs { :; } # 2015-12-09 keymap cache should be updated due to the refactoring. +# 2019-01-18 keymap cache should be updated for recent changes +# 2019-04-01 keymap cache should be updated for adding __error__ +# 2021-01-25 force update (change mapping of C-w and M-w) #------------------------------------------------------------------------------ diff --git a/keymap/vi.sh b/keymap/vi.sh index 463abfef..2e6e684d 100644 --- a/keymap/vi.sh +++ b/keymap/vi.sh @@ -5,6 +5,9 @@ ble/util/isfunction ble-edit/bind/load-keymap-definition:vi && return function ble-edit/bind/load-keymap-definition:vi { :; } +# 2019-04-01 keymap cache should be updated for adding __error__ +# 2021-01-25 force update (change mapping of C-w and M-w) + source "$_ble_base/keymap/vi_digraph.sh" ## オプション keymap_vi_macro_depth