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

Include a default set of tags #11

Open
justinbarclay opened this issue Jan 5, 2021 · 11 comments
Open

Include a default set of tags #11

justinbarclay opened this issue Jan 5, 2021 · 11 comments

Comments

@justinbarclay
Copy link

I think it would be worthwhile, as a user onboarding experience, for this package to include a default set of tags bindings that they can enable.

One of the use cases I'm thinking of is If someone downloads this from MELPA, they won't have access to example1.el or example2.el to be able to be able to use at their discretion.

@rougier
Copy link
Owner

rougier commented Jan 13, 2021

Make sense. Would you have some suggestiosn based on the examples ? We could sure at least add the TODO, but what else?

@justinbarclay
Copy link
Author

I think restricting these customizations to Org makes sense, it's the only base install that changing the iconography to highlight specific parts makes sense. So like you I think the TODO keywords are sane defaults. After that tags could be nice, but I don't really use tags that much so I don't have a strong inclination on that. However, I do think priorities could be another nice surprise. I currently use org-fancy-priorities for this.

@rougier
Copy link
Owner

rougier commented Jan 20, 2021

Makes sense. The default would thus be "TODO", "DONE", "#A", "#B", "#C". Coudl you make a PR?

@japhir
Copy link

japhir commented Aug 30, 2021

Having it depend on org-todo-keywords would be even better :). I.e. I use the below with some further face customizations in my config

(setq org-todo-keywords
   '((sequence "NEXT(n)" "WAIT(w!/!)" "TICK(t)" "SOME(s!/!)" "|"
               "DONE(d)" "CANC(c)")))

@rougier
Copy link
Owner

rougier commented Aug 31, 2021

Good point. Do you know how can we extract keywords and priorities text only?

@japhir
Copy link

japhir commented Aug 31, 2021

I'm an absolute elisp beginner, but just calling (print org-todo-keywords) already gives something to work with ;-)
EDIT: wow I learned something by reading the manual!

(symbol-value 'org-todo-keywords)
> ((sequence "NEXT(n)" "WAIT(w!/!)" "TICK(t)" "SOME(s!/!)" "|" "DONE(d)" "CANC(c)"))

(symbol-value 'org-todo-keyword-faces)
> (("NEXT" :family "Iosevka" :foreground "light goldenrod yellow" :background "red" :weight bold) ("WAIT" :family "Iosevka" :foreground "dim gray" :background "yellow") ("TICK" :family "Iosevka" :background "light slate blue") ("SOME" :family "Iosevka" :foreground "ghost white" :background "deep sky blue") ("DONE" :family "Iosevka" :foreground "green4" :background "pale green") ("CANC" :family "Iosevka" :foreground "dim gray" :background "gray"))

@rougier
Copy link
Owner

rougier commented Sep 6, 2021

@japhir Thanks for the hint. I woudl prefer to avoid parsing this list to only extract the keywords. I guess there might be some way but I need to search.

@mwsundberg
Copy link

Another good set of defaults might be for key chords in Help buffers. They might be a bit harder to match with regex, yet that was the first use case I thought of after seeing this (and what I plan to try to use it for).

@rougier
Copy link
Owner

rougier commented Dec 15, 2021

By the way, there's now a svg-lib that is available on ELPA. I'm not sure to add the default tags inside, but we could consider a dedicated package for common tags.

@Kazark
Copy link

Kazark commented Jan 20, 2022

I think trying to make this "just work" with existing org stuff would be really cool---I kind of DWIM default setup out of the box. org-todo-keywords is definitely a disappointment of a data structure, though. :/

@rougier
Copy link
Owner

rougier commented Jan 31, 2022

So I think solution woudl be to add dedicated examples (e.g. one for org mode)

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

5 participants