diff options
| author | Franck Cuny <franck@fcuny.net> | 2021-02-12 17:17:42 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2021-02-12 17:17:42 -0800 |
| commit | 37bcd39becdd9ad1bd908bce38277cb0aeed5b67 (patch) | |
| tree | 9b84b9790dc96f0773d9f8dfe4d79dd7a1814e33 /emacs/custom/fcuny-navigation.el | |
| parent | emacs: set proper font size for linux (diff) | |
| parent | emacs: some updates to org's ui (diff) | |
| download | emacs.d-37bcd39becdd9ad1bd908bce38277cb0aeed5b67.tar.gz | |
Merge branch 'master' of ssh://git.fcuny.net:222/fcuny/dotfiles
Diffstat (limited to 'emacs/custom/fcuny-navigation.el')
| -rw-r--r-- | emacs/custom/fcuny-navigation.el | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/emacs/custom/fcuny-navigation.el b/emacs/custom/fcuny-navigation.el index 49309a5..42027fd 100644 --- a/emacs/custom/fcuny-navigation.el +++ b/emacs/custom/fcuny-navigation.el @@ -70,6 +70,29 @@ (use-package rg :ensure t + :config + (rg-define-search fcuny/grep-git-or-dir + :query ask + :format regexp + :files "everything" + :confirm prefix + :flags ("--hidden -g !.git") + :dir (let ((vc (magit-toplevel))) + (if vc + vc + default-directory))) + (rg-define-search fcuny/grep-git-or-dir-todos + :query "TODO\|FIXME\|XXX" + :format regexp + :files "everything" + :confirm prefix + :flags ("--hidden -g !.git") + :dir (let ((vc (magit-toplevel))) + (if vc + vc + default-directory))) + :bind (("M-s g" . fcuny/grep-git-or-dir) + ("M-s t" . fcuny/grep-git-or-dir-todos)) :custom (rg-group-result t) (rg-show-columns t) |
