Keys consistency for winum and file trees
Reinstate `SPC f T` binding, and make `SPC 0` and `M-0` consistent across Neotree and Treemacs.
This commit is contained in:
parent
64cf9f56f6
commit
f3b6a22c05
|
@ -103,6 +103,7 @@ Navigation^^^^ Actions^^ Visual actions/config^^^
|
||||||
|
|
||||||
(spacemacs/set-leader-keys
|
(spacemacs/set-leader-keys
|
||||||
"ft" 'neotree-toggle
|
"ft" 'neotree-toggle
|
||||||
|
"fT" 'neotree-show
|
||||||
"pt" 'neotree-find-project-root))
|
"pt" 'neotree-find-project-root))
|
||||||
:config
|
:config
|
||||||
(spacemacs//neotree-key-bindings)))
|
(spacemacs//neotree-key-bindings)))
|
||||||
|
@ -110,9 +111,7 @@ Navigation^^^^ Actions^^ Visual actions/config^^^
|
||||||
(defun neotree/pre-init-winum ()
|
(defun neotree/pre-init-winum ()
|
||||||
(spacemacs|use-package-add-hook winum
|
(spacemacs|use-package-add-hook winum
|
||||||
:post-config
|
:post-config
|
||||||
(add-to-list 'winum-assign-functions #'spacemacs//winum-neotree-assign-func)))
|
|
||||||
|
|
||||||
(defun neotree/post-init-winum ()
|
|
||||||
(spacemacs/set-leader-keys
|
|
||||||
;; window 0 is reserved for file trees
|
;; window 0 is reserved for file trees
|
||||||
"0" 'neotree-show))
|
(spacemacs/set-leader-keys "0" #'neotree-show)
|
||||||
|
(define-key winum-keymap (kbd "M-0") #'neotree-show)
|
||||||
|
(add-to-list 'winum-assign-functions #'spacemacs//winum-neotree-assign-func)))
|
||||||
|
|
|
@ -24,11 +24,12 @@
|
||||||
|
|
||||||
(defun treemacs/init-treemacs ()
|
(defun treemacs/init-treemacs ()
|
||||||
(use-package treemacs
|
(use-package treemacs
|
||||||
:commands treemacs--window-number-ten
|
:commands (treemacs-select-window treemacs--window-number-ten)
|
||||||
:defer t
|
:defer t
|
||||||
:init
|
:init
|
||||||
(spacemacs/set-leader-keys
|
(spacemacs/set-leader-keys
|
||||||
"ft" #'treemacs-toggle
|
"ft" #'treemacs-toggle
|
||||||
|
"fT" #'treemacs
|
||||||
"fB" #'treemacs-bookmark
|
"fB" #'treemacs-bookmark
|
||||||
"f C-t" #'treemacs-find-file)
|
"f C-t" #'treemacs-find-file)
|
||||||
:config
|
:config
|
||||||
|
@ -76,5 +77,6 @@
|
||||||
(spacemacs|use-package-add-hook winum
|
(spacemacs|use-package-add-hook winum
|
||||||
:post-config
|
:post-config
|
||||||
(progn
|
(progn
|
||||||
(spacemacs/set-leader-keys "0" #'treemacs)
|
;; window 0 is reserved for file trees
|
||||||
|
(spacemacs/set-leader-keys "0" #'treemacs-select-window)
|
||||||
(define-key winum-keymap (kbd "M-0") #'treemacs-select-window))))
|
(define-key winum-keymap (kbd "M-0") #'treemacs-select-window))))
|
||||||
|
|
Loading…
Reference in a new issue