(Emacs/config)~Modified org-heading regexp so it doesn't match bold items
This commit is contained in:
@@ -2747,19 +2747,21 @@ them. This allows me to search my configuration pretty quickly.
|
|||||||
:keymaps 'org-mode-map
|
:keymaps 'org-mode-map
|
||||||
[remap imenu] #'+org/swiper-goto)
|
[remap imenu] #'+org/swiper-goto)
|
||||||
:config
|
:config
|
||||||
|
(defvar +org/heading-regexp "^[\\*]+[ ] ")
|
||||||
|
|
||||||
(defun +org/swiper-goto ()
|
(defun +org/swiper-goto ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(counsel-grep-or-swiper "^\\* "))
|
(counsel-grep-or-swiper +org/heading-regexp))
|
||||||
|
|
||||||
(defun +org/search-headings ()
|
(defun +org/search-headings ()
|
||||||
"Searches directory (of buffer) for org headings via counsel-rg"
|
"Searches directory (of buffer) for org headings via counsel-rg"
|
||||||
(interactive)
|
(interactive)
|
||||||
(counsel-rg "^\\* " (file-name-directory (buffer-file-name))))
|
(counsel-rg +org/heading-regexp (file-name-directory (buffer-file-name))))
|
||||||
|
|
||||||
(defun +org/search-config-headings ()
|
(defun +org/search-config-headings ()
|
||||||
"Searches config.org for org headings via +org/swiper-goto"
|
"Searches config.org for org headings via +org/swiper-goto"
|
||||||
(interactive)
|
(interactive)
|
||||||
(counsel-rg "^\\* " (file-name-directory user-emacs-directory) "--max-depth=1")))
|
(counsel-rg +org/heading-regexp (file-name-directory user-emacs-directory) "--max-depth=1")))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Org Agenda
|
** Org Agenda
|
||||||
Org agenda provides a nice viewing for schedules. With org mode it's
|
Org agenda provides a nice viewing for schedules. With org mode it's
|
||||||
|
|||||||
Reference in New Issue
Block a user