Comments (11)
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.
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.
Makes sense. The default would thus be "TODO", "DONE", "#A", "#B", "#C". Coudl you make a PR?
from svg-tag-mode.
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.
Good point. Do you know how can we extract keywords and priorities text only?
from svg-tag-mode.
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.
@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.
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.
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.
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.
So I think solution woudl be to add dedicated examples (e.g. one for org mode)
from svg-tag-mode.
Related Issues (20)
- Only progress bars work HOT 4
- How to change SVG Colors HOT 6
- [Feature Request] Disable tags inside org src blocks HOT 10
- Font size messed up HOT 13
- left mouse clicks on svg tags not working as expected (doom emacs / org-mode) HOT 7
- Does not work if tree-sitter is enabled HOT 2
- Question: How to enable in minibuffer? HOT 3
- Change font family with svg-tag-default-face HOT 2
- Question: Tags with spaces between characters HOT 2
- Causing issues with emacs-dashboard HOT 9
- destructive influence of possible recent updates of either org-mode or svg-tag-mode HOT 1
- svg-tag for begin_src destroy the font lock in emacs 29 HOT 23
- Minibuffer constantly has "SVG tag mode on", hides other messages
- svg-tag-mode causing issue with src block on Emacs 29 HOT 1
- Progress bar not working HOT 14
- Strange shift error HOT 1
- Add cache for SVG tags? HOT 2
- Problem with active/inactive date (from example 2) HOT 4
- Square Brackets not matching Correctly HOT 1
- Problem while editing time and date tags in org mode HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svg-tag-mode.