Giter Club home page Giter Club logo

Comments (11)

rougier avatar rougier commented on May 30, 2024

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

from svg-tag-mode.

justinbarclay avatar justinbarclay commented on May 30, 2024

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.

from svg-tag-mode.

rougier avatar rougier commented on May 30, 2024

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

from svg-tag-mode.

japhir avatar japhir commented on May 30, 2024

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)")))

from svg-tag-mode.

rougier avatar rougier commented on May 30, 2024

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

from svg-tag-mode.

japhir avatar japhir commented on May 30, 2024

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"))

from svg-tag-mode.

rougier avatar rougier commented on May 30, 2024

@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.

from svg-tag-mode.

mwsundberg avatar mwsundberg commented on May 30, 2024

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).

from svg-tag-mode.

rougier avatar rougier commented on May 30, 2024

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.

from svg-tag-mode.

Kazark avatar Kazark commented on May 30, 2024

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. :/

from svg-tag-mode.

rougier avatar rougier commented on May 30, 2024

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

from svg-tag-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.