[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-superstar 3efb5f76cb 146/162: Allow hiding leading bul
From: |
Stefan Kangas |
Subject: |
[nongnu] elpa/org-superstar 3efb5f76cb 146/162: Allow hiding leading bullet for all todo keywords |
Date: |
Fri, 31 Dec 2021 19:35:39 -0500 (EST) |
branch: elpa/org-superstar
commit 3efb5f76cb9f45c54ed7e72a06b7138bb7b89e80
Author: Anders Johansson <mejlaandersj@gmail.com>
Commit: Anders Johansson <mejlaandersj@gmail.com>
Allow hiding leading bullet for all todo keywords
The previous implementation only hid the bullet for todo keywords that were
mapped to a bullet in org-superstar-todo-bullet-alist.
---
org-superstar.el | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/org-superstar.el b/org-superstar.el
index 8f661af836..0f1eaeea88 100644
--- a/org-superstar.el
+++ b/org-superstar.el
@@ -490,8 +490,11 @@ If no TODO property is found, return nil."
(defun org-superstar--todo-bullet ()
"Return the desired TODO item bullet, if defined.
-If no entry can be found in ‘org-superstar-todo-bullet-alist’ for
-the current keyword, return nil."
+
+If we have are in a TODO entry and
+‘org-superstar-special-todo-items’ is hide return hide. Else, if no
+entry can be found in ‘org-superstar-todo-bullet-alist’ for the
+current keyword, return nil."
(let* ((todo-kw
(org-superstar--get-todo (match-beginning 0)))
(todo-bullet
@@ -500,6 +503,8 @@ the current keyword, return nil."
(todo-bullet (cdr todo-bullet))
(todo-fallback nil))
(cond
+ ((and todo-kw (eq org-superstar-special-todo-items 'hide))
+ 'hide)
((characterp todo-bullet)
todo-bullet)
((listp todo-bullet)
@@ -535,7 +540,7 @@ See also ‘org-superstar-cycle-headline-bullets’."
(todo-bullet (when org-superstar-special-todo-items
(org-superstar--todo-bullet))))
(cond (todo-bullet
- (unless (eq org-superstar-special-todo-items 'hide)
+ (unless (eq todo-bullet 'hide)
todo-bullet))
((integerp max-bullets)
(org-superstar--nth-headline-bullet (% n max-bullets)))
- [nongnu] elpa/org-superstar 930a887430 111/162: Add support for extra-wide headline bullets + terminal fallback., (continued)
- [nongnu] elpa/org-superstar 930a887430 111/162: Add support for extra-wide headline bullets + terminal fallback., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 66e593a8b7 102/162: Support advanced composition for TODO item bullets., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 27e90eece5 124/162: Implement org-indent compatibility, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 48660e9269 120/162: Updated news regarding Doom and Spacemacs, updated FAQ., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar cfb98c0de6 123/162: updating .gitignore, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 6673412725 132/162: Updating README to signify changes, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 2800b83e88 133/162: Version Bump., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 7f83636db2 136/162: Update README for absolutely astonishing 33k+ dls on MELPA, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar a5af8b6ddf 141/162: Remove example files from #21., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 417b81772a 147/162: Support defining a default TODO bullet, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 3efb5f76cb 146/162: Allow hiding leading bullet for all todo keywords,
Stefan Kangas <=
- [nongnu] elpa/org-superstar 6cdb79e5fa 148/162: Bugfix: Stop interpreting normal headings as TODO items., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 806b699b7d 149/162: Merge branch 'master' into volatile, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 251b203b58 153/162: Update (C)opyright., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 9ac640d620 154/162: Avoid positional args in define-minor-mode, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 82440ccda4 155/162: Avoid empty font-lock keyword if inlinetask first bullet is not used, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 8077107c9f 157/162: improve code of disabling org-superstar in source code block, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 1bd93f9382 158/162: Merge pull request #30 from leungbk/define-minor-mode, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar c81cf4b8ec 050/162: added a minor sample file for new TODO key feature, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar d52497056f 118/162: Update issue templates: add feature related templates, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 3c973ce35d 145/162: Remove spurious package versioning info., Stefan Kangas, 2021/12/31