Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Bullets for TODOs #14

Closed
ghost opened this issue Oct 28, 2015 · 4 comments
Closed

[Feature Request] Bullets for TODOs #14

ghost opened this issue Oct 28, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 28, 2015

I want to suggest something like this:

Suppose we have ('*' represents unicode bullet from this package):

* Heading 1
* Heading 2

Now, setting a TODO on a heading should result in:

☐ Heading 1 # TODO, using a unicode "ballot box"
☑ Heading 2 # DONE, using a unicode "ballot box with check"
@ghost
Copy link
Author

ghost commented Oct 28, 2015

Possible characters can be:

  • U+2714 ✔ heavy check mark
  • U+2717 ✗ ballot x
  • U+2611 ☑ ballot box with check
  • U+2610 ☐ ballot box

Users can be provided options to use other symbols, such as smileys etc.

Still, this is all hypothetical, as I don't know if this can (and will be) implemented or not.

@theophilusx
Copy link

There is an alternative way to achieve something similar. If you define your toto keyword sequences so that they include a leading UTF8 charcter, you can get similar look. i.e.

(sequence " ☐ TODO(t)" " ☑ DONE(d)")

The limitation of this is that it isn't backwards compatible i.e. old todo sequences won't work and I don't know what impact this might have on export backends.

@msanders
Copy link

msanders commented Jun 3, 2018

Here's another workaround that preserves existing text while allowing for unicode checklists in org mode:

(font-lock-add-keywords 'org-mode
                        '(("\\(?:\\(?:- \\)?\\[ ]\\)"
                           (0 (prog1 () (compose-region
                                         (match-beginning 0)
                                         (match-end 0) ""))))))

(font-lock-add-keywords 'org-mode
                        '(("\\(?:\\(?:- \\)?\\[X]\\)"
                           (0 (prog1 () (compose-region
                                         (match-beginning 0)
                                         (match-end 0) ""))))))

;; From http://www.howardism.org/Technical/Emacs/orgmode-wordprocessor.html
(font-lock-add-keywords 'org-mode
                        '(("^ +\\([-*]\\) "
                           (0 (prog1 () (compose-region (match-beginning 1)
                                                        (match-end 1)
                                                        ""))))))

It might be worth building this into org-bullets, though it seems like it might be unmaintained.

@ppareit
Copy link

ppareit commented Feb 5, 2020

@msanders it seems like the following fork takes pull requests and is also the one that is used on melpa:
https://github.com/emacsorphanage/org-bullets

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants