summary refs log tree commit diff stats
path: root/doc/pydoc/ranger.gui.widgets.html
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-02-15 22:02:32 +0100
committerhut <hut@lavabit.com>2010-02-15 22:02:32 +0100
commit9c27c9626a44d19276a2e03ca907a4a159cd464f (patch)
tree64e30d0e1582ec1f767b38c65c880d177b904233 /doc/pydoc/ranger.gui.widgets.html
parentf6ae504ca793efddde036a4d486c81cbc03f3662 (diff)
downloadranger-9c27c9626a44d19276a2e03ca907a4a159cd464f.tar.gz
data/generate.py: allow spaces as seperators in mimetypes
Diffstat (limited to 'doc/pydoc/ranger.gui.widgets.html')
0 files changed, 0 insertions, 0 deletions
Morgan <djm_uk@protonmail.com> 2022-10-11 13:33:54 +0100 committer David Morgan <djm_uk@protonmail.com> 2022-10-11 13:33:54 +0100 Try deadgrep + re-organise a little' href='/djm/dotfiles/commit/.emacs.d/lisp/init-search.el?id=447465edb1c26bc8e3906ffae851f8d1f53f8e09'>447465e ^
5c5f41f ^

447465e ^

57288a4 ^

447465e ^
57288a4 ^




5c5f41f ^

57288a4 ^
a3d03d9 ^
57288a4 ^
447465e ^
9018001 ^
9018001 ^


















5c5f41f ^

37e88d0 ^

9018001 ^





bc63e2e ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92



                                                                           
                    



                                    
                               
                        












                                                                                      
















                                                                                    
               

                                 

                           

                    
 




                                        

                                                       
       
                                      
                         
 
                 


















                                                                                      

                                                           

                                                           





                                          

                            
;;; init-search.el --- Search Configuration File -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:

(use-feature isearch
  :custom
  (search-whitespace-regexp ".*\\b")
  (isearch-lax-whitespace t)
  (isearch-allow-scroll t)
  (isearch-yank-on-move 'shift)
  (isearch-lazy-count t)
  :bind-keymap ("C-c s" . search-map) ;; M-s clashes with paredit/smartparens bindings
  :bind
  ("C-*" . isearch-forward-symbol-at-point)
  (:map search-map
   ("M-s M-<" . isearch-beginning-of-buffer)
   ("M-s M->" . isearch-end-of-buffer)
   ("C-c s M-<" . isearch-beginning-of-buffer)
   ("C-c s M->" . isearch-end-of-buffer)))

(use-package isearch-dabbrev
  :after isearch
  :bind (:map isearch-mode-map ("M-/" . isearch-dabbrev-expand)))

(use-package anzu
  :diminish
  :config
  (global-anzu-mode)
  (set-face-attribute 'anzu-mode-line nil :foreground "yellow" :weight 'bold)
  :custom
  (anzu-deactivate-region t)
  (anzu-search-threshold 1000)
  (anzu-replace-threshold 100)
  (anzu-replace-to-string-separator " => ")
  :bind
  ([remap query-replace] . anzu-query-replace)
  ([remap query-replace-regexp] . anzu-query-replace-regexp)
  (:map isearch-mode-map
        ([remap isearch-query-replace] . anzu-isearch-query-replace)
        ([remap isearch-query-replace-regexp] . anzu-isearch-query-replace-regexp)))

(use-package rg
  :config
  (define-key search-map "s" 'rg)
  :bind
  ("C-c C-M-S-r" . rg-menu)
  ("C-c C-M-r" . rg)
  ("C-z" . rg-dwim))

(use-package deadgrep
  :config
  (defun deadgrep-symbol-at-point ()
    (interactive)
    (deadgrep (thing-at-point 'symbol)))
  (define-key search-map "d" 'deadgrep)
  (define-key search-map "D" 'deadgrep-symbol-at-point)
  :bind
  ("C-S-z" . deadgrep-symbol-at-point)
  ("C-c c d" . deadgrep))

(use-package affe
  :config
  (setq affe-grep-command (replace-regexp-in-string "\\." "-Suu ." affe-grep-command))
  ;; Configure Orderless
  (defun affe-orderless-regexp-compiler (input _type _ignorecase)
    (setq input (orderless-pattern-compiler input))
    (cons input (lambda (str) (orderless--highlight input str))))
  (setq affe-regexp-compiler #'affe-orderless-regexp-compiler)
  ;; Manual preview key for `affe-grep'
  (consult-customize affe-grep :preview-key (kbd "M-."))
  (defun my/affe-grep-symbol-at-point (&optional dir initial)
    (interactive
     (list prefix-arg (when-let ((s (symbol-at-point)))
                        (symbol-name s))))
    (affe-grep dir initial))
  (defun my/affe-find-symbol-at-point (&optional dir initial)
    (interactive
     (list prefix-arg (when-let ((s (symbol-at-point)))
                        (symbol-name s))))
    (affe-find dir initial))
  (define-key search-map "#" 'affe-grep)
  (define-key search-map "~" 'my/affe-grep-symbol-at-point)
  (define-key search-map "a" 'affe-find)
  (define-key search-map "A" 'my/affe-find-symbol-at-point)
  :bind
  ("C-#" . affe-grep)
  ("C-c z" . affe-find)
  ("C-c Z" . my/affe-find-symbol-at-point)
  ("C-~" . my/affe-grep-symbol-at-point))

(provide 'init-search)
;;; init-search.el ends here