Compare commits

...

2 Commits

Author SHA1 Message Date
KJ
c97b3a974e Change to use isearch by default and consult-line with C-S-s. 2024-09-12 22:16:06 -04:00
KJ
9b1bd93ceb Remove unused shortcuts. 2024-09-12 22:15:43 -04:00

View File

@ -31,10 +31,10 @@
(use-package consult
:defer t
:bind (;; C-c bindings in `mode-specific-map'
("C-s" . consult-line)
("C-S-s" . consult-line)
("C-c r g" . consult-ripgrep)
("C-S-s" . isearch-forward)
("C-S-r" . isearch-backward)
("C-S-r" . consult-ripgrep)
;; ("C-S-s" . isearch-forward)
("M-m" . consult-mode-command)
("C-c h" . consult-history)
("C-c k" . consult-kmacro)
@ -75,14 +75,13 @@
:map minibuffer-local-map
("<escape>" . minibuffer-keyboard-quit) ;; Cacelar minibuffer con escape (más rápido que C-g)
("C-<return>" . newline) ;; Insertar nueva línea estando en el minibufer (Mas rápido que C-q C-j)
("C-s" . (lambda ()
("C-S-s" . (lambda ()
"Insert the current symbol."
(interactive)
(insert (save-excursion
(set-buffer (window-buffer (minibuffer-selected-window)))
(or (thing-at-point 'symbol t) ""))))) ;; Al presionar por segunda ves C-s busca el símbolo actual.
("M-s" . consult-history) ;; orig. historial de búsqueda
("M-r" . consult-history)) ;; orig. historual de búsqueda
)
;; Enable automatic preview at point in the *Completions* buffer. This is
;; relevant when you use the default completion UI.