Skip to content

Commit

Permalink
edit: change "C-w" and "M-w" to operate on backward words
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jul 9, 2022
1 parent d19ab29 commit 787ff57
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ble-edit.sh
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions keymap/emacs.sh
Expand Up @@ -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)

#------------------------------------------------------------------------------

Expand Down
3 changes: 3 additions & 0 deletions keymap/vi.sh
Expand Up @@ -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
Expand Down

0 comments on commit 787ff57

Please sign in to comment.