From fe2fd08cfb88eecb221da0e9397e7833402cbe61 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 18 Apr 2024 15:41:23 +0630 Subject: (Emacs/config)+argument to restrict search-headings to only first level --- Emacs/.config/emacs/config.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Emacs/.config') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index f6c7697..9219e66 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1237,7 +1237,9 @@ Some bindings for org mode. "Searches USER-EMACS-DIRECTORY for org headings via counsel-rg" (interactive) (counsel-rg "^\\* " - (cl-subseq user-emacs-directory 0 (- (length user-emacs-directory) 1)))) + (substring user-emacs-directory 0 + (- (length user-emacs-directory) 1)) + "--max-depth=1")) :general (file-leader "l" #'org-store-link -- cgit v1.2.3-13-gbd6f