Keep ~C-h~ binding in =counsel-find-file-map= only for hjkl navigation

It has already been bound to <kbd>C-backspace</kbd> and
<kbd>C-delete</kbd>. Such an
additional binding is redundant (if hjkl navigation is not used) and
makes the original <kbd>C-h</kbd> binding
(help) unavailable.
This commit is contained in:
Hong Xu 2019-10-28 22:59:39 -07:00 committed by duianto
parent f19d57eb57
commit 383da46e38
3 changed files with 3 additions and 1 deletions

View File

@ -1872,6 +1872,8 @@ Other:
of =counsel-find-file= (thanks to Hong Xu)
- Fixed broken =ivy-occur= (thanks to Carlos Ibáñez)
- Fixed =counsel-git-grep= with input ~SPC s g P~ (thanks to Carlos Ibáñez)
- Keep ~C-h~ binding in =counsel-find-file-map= only for hjkl navigation
(thanks to Hong Xu)
**** Imenu-list
- Changed ~SPC b i~ to ~SPC b t~ for =imenu= tree view
(thansk to Sylvain Benner)

View File

@ -131,7 +131,6 @@
'counsel-find-file
spacemacs--ivy-file-actions)
(define-key counsel-find-file-map (kbd "C-h") 'counsel-up-directory)
(define-key read-expression-map (kbd "C-r") 'counsel-minibuffer-history)
;; remaps built-in commands that have a counsel replacement
(counsel-mode 1)

View File

@ -199,6 +199,7 @@ See https://github.com/syl20bnr/spacemacs/issues/3700"
ivy-switch-buffer-map))
(define-key map (kbd "C-j") 'ivy-next-line)
(define-key map (kbd "C-k") 'ivy-previous-line))
(define-key counsel-find-file-map (kbd "C-h") 'counsel-up-directory)
(define-key ivy-minibuffer-map (kbd "C-h") (kbd "DEL"))
;; Move C-h to C-S-h
(define-key ivy-minibuffer-map (kbd "C-S-h") help-map)