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 May 18, 2021
1 parent 3e648a9 commit b1fd84a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions keymap/emacs.sh
Expand Up @@ -7,6 +7,7 @@ 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
1 change: 1 addition & 0 deletions keymap/vi.sh
Expand Up @@ -6,6 +6,7 @@ ble/is-function 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"

Expand Down
4 changes: 2 additions & 2 deletions src/edit.sh
Expand Up @@ -6332,8 +6332,8 @@ function ble-decode/keymap:safe/bind-common {
ble-decode/keymap:safe/.bind 'NUL' '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

0 comments on commit b1fd84a

Please sign in to comment.