helm-swoop icon indicating copy to clipboard operation
helm-swoop copied to clipboard

Change default keybindings in edit mode

Open floli opened this issue 9 years ago • 0 comments

The keybindings in edit mode are C-x C-s to complete the edit and C-c C-g to cancel. I suggest changing the defaults to C-c C-c for complete and C-c C-k for cancel. Both are not defined in that mode and free to use.

Rationale

In my perception these are the standards keybindings.

  • Dired with its very similiar wdired functionality (which is invoked with C-x C-q) uses C-c C-c and C-c C-k.
  • Confirming or aborting a commit when writing a commit message uses these keybindings
  • Confirming or closing a org capture uses these keybindings

I changed the keymap accordingly and it works, however in the headline of the edit buffer there is still the hardcoded old keybinding

(define-key helm-swoop-edit-map (kbd "C-c C-c") 'helm-swoop--edit-complete)
(define-key helm-swoop-edit-map (kbd "C-c C-k") 'helm-swoop--edit-cancel)

floli avatar Aug 27 '15 07:08 floli